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:
Emilio Cobos Álvarez
2018-03-20 23:21:28 +01:00
parent 7b56cf8dbc
commit c42ad1a43f
2 changed files with 4 additions and 9 deletions

View File

@@ -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()
{ {

View File

@@ -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,