Bug 1370501 - stylo: Fix ServoStyleRule::GetSelectorTextFromIndex. r?emilio draft
authorFernando Jimenez Moreno <ferjmoreno@gmail.com>
Mon, 12 Jun 2017 14:54:39 +0200
changeset 592561 5013b05ad735668d055fee91fdd683fbcd6dab78
parent 592464 27cad9749cddf68e11fdd4e5d73dad84a8f8cf23
child 592562 d371e48a79ff40557254631b8bdc2c9cd6c10d91
push id63432
push userferjmoreno@gmail.com
push dateMon, 12 Jun 2017 12:55:06 +0000
reviewersemilio
bugs1370501
milestone55.0a1
Bug 1370501 - stylo: Fix ServoStyleRule::GetSelectorTextFromIndex. r?emilio MozReview-Commit-ID: 6STojaOLggZ
layout/style/ServoBindingList.h
layout/style/ServoStyleRule.cpp
--- a/layout/style/ServoBindingList.h
+++ b/layout/style/ServoBindingList.h
@@ -144,17 +144,17 @@ SERVO_BINDING_FUNC(Servo_CssRules_GetCou
                    ServoCssRulesBorrowed rules, uint32_t index)
 SERVO_BINDING_FUNC(Servo_StyleRule_GetStyle, RawServoDeclarationBlockStrong,
                    RawServoStyleRuleBorrowed rule)
 SERVO_BINDING_FUNC(Servo_StyleRule_SetStyle, void,
                    RawServoStyleRuleBorrowed rule,
                    RawServoDeclarationBlockBorrowed declarations)
 SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorText, void,
                    RawServoStyleRuleBorrowed rule, nsAString* result)
-SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorTextFromIndex, void,
+SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorTextAtIndex, void,
                    RawServoStyleRuleBorrowed rule, uint32_t index,
                    nsAString* result)
 SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorCount, void,
                    RawServoStyleRuleBorrowed rule, uint32_t* count)
 SERVO_BINDING_FUNC(Servo_ImportRule_GetHref, void,
                    RawServoImportRuleBorrowed rule, nsAString* result)
 SERVO_BINDING_FUNC(Servo_ImportRule_GetSheet, const RawServoStyleSheet*,
                    RawServoImportRuleBorrowed rule)
--- a/layout/style/ServoStyleRule.cpp
+++ b/layout/style/ServoStyleRule.cpp
@@ -257,17 +257,17 @@ ServoStyleRule::GetSelectorCount()
   Servo_StyleRule_GetSelectorCount(mRawRule, &aCount);
 
   return aCount;
 }
 
 nsresult
 ServoStyleRule::GetSelectorText(uint32_t aSelectorIndex, nsAString& aText)
 {
-  Servo_StyleRule_GetSelectorTextFromIndex(mRawRule, aSelectorIndex, &aText);
+  Servo_StyleRule_GetSelectorTextAtIndex(mRawRule, aSelectorIndex, &aText);
   return NS_OK;
 }
 
 nsresult
 ServoStyleRule::GetSpecificity(uint32_t aSelectorIndex, uint64_t* aSpecificity)
 {
   // TODO Bug 1370501
   return NS_OK;