Bug 1447476: Inline ResolveServoStyle. r=xidorn
We already pay a function call for it, no point in paying two. MozReview-Commit-ID: 4odPqnPfrNF
This commit is contained in:
@@ -1391,14 +1391,6 @@ ServoStyleSet::CompatibilityModeChanged()
|
|||||||
SetStylistStyleSheetsDirty();
|
SetStylistStyleSheetsDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
already_AddRefed<ServoStyleContext>
|
|
||||||
ServoStyleSet::ResolveServoStyle(Element* aElement)
|
|
||||||
{
|
|
||||||
RefPtr<ServoStyleContext> result =
|
|
||||||
Servo_ResolveStyle(aElement, mRawSet.get()).Consume();
|
|
||||||
return result.forget();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ServoStyleSet::ClearNonInheritingStyleContexts()
|
ServoStyleSet::ClearNonInheritingStyleContexts()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -343,7 +343,10 @@ public:
|
|||||||
*
|
*
|
||||||
* FIXME(emilio): Is there a point in this after bug 1367904?
|
* FIXME(emilio): Is there a point in this after bug 1367904?
|
||||||
*/
|
*/
|
||||||
already_AddRefed<ServoStyleContext> ResolveServoStyle(dom::Element* aElement);
|
already_AddRefed<ServoStyleContext> ResolveServoStyle(dom::Element* aElement)
|
||||||
|
{
|
||||||
|
return Servo_ResolveStyle(aElement, mRawSet.get()).Consume();
|
||||||
|
}
|
||||||
|
|
||||||
bool GetKeyframesForName(nsAtom* aName,
|
bool GetKeyframesForName(nsAtom* aName,
|
||||||
const nsTimingFunction& aTimingFunction,
|
const nsTimingFunction& aTimingFunction,
|
||||||
|
|||||||
Reference in New Issue
Block a user