mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #2112 - Part 6: Remove IsStyledByServo function and callers
This commit is contained in:
parent
a93a7bed47
commit
10bf8705d0
13 changed files with 16 additions and 181 deletions
|
|
@ -18,7 +18,6 @@
|
|||
#include "nsWrapperCacheInlines.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "ActiveLayerTracker.h"
|
||||
#include "ServoDeclarationBlock.h"
|
||||
#include "StyleSetHandle.h"
|
||||
#include "DeclarationBlockInlines.h"
|
||||
|
||||
|
|
@ -134,12 +133,8 @@ nsDOMCSSAttributeDeclaration::GetCSSDeclaration(Operation aOperation)
|
|||
|
||||
// cannot fail
|
||||
RefPtr<DeclarationBlock> decl;
|
||||
if (mElement->IsStyledByServo()) {
|
||||
decl = new ServoDeclarationBlock();
|
||||
} else {
|
||||
decl = new css::Declaration();
|
||||
decl->AsGecko()->InitializeEmpty();
|
||||
}
|
||||
decl = new css::Declaration();
|
||||
decl->AsGecko()->InitializeEmpty();
|
||||
|
||||
// this *can* fail (inside SetAttrAndNotify, at least).
|
||||
nsresult rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue