Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv
Note that this increases the size of css::Rule by three words, unfortunately.
This commit is contained in:
@@ -104,6 +104,7 @@ ServoStyleRule::ServoStyleRule(already_AddRefed<RawServoStyleRule> aRawRule)
|
||||
, mRawRule(aRawRule)
|
||||
, mDecls(Servo_StyleRule_GetStyle(mRawRule).Consume())
|
||||
{
|
||||
SetIsNotDOMBinding();
|
||||
}
|
||||
|
||||
// QueryInterface implementation for ServoStyleRule
|
||||
@@ -152,6 +153,14 @@ ServoStyleRule::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
|
||||
return aMallocSizeOf(this);
|
||||
}
|
||||
|
||||
/* virtual */ JSObject*
|
||||
ServoStyleRule::WrapObject(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
NS_NOTREACHED("We called SetIsNotDOMBinding() in our constructor");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
ServoStyleRule::List(FILE* out, int32_t aIndent) const
|
||||
|
||||
Reference in New Issue
Block a user