Bug 1370501 - stylo: Fix ServoStyleRule::GetSelectorTextFromIndex. r=emilio

MozReview-Commit-ID: 6STojaOLggZ

--HG--
extra : rebase_source : 39e3949e17c018795e9565124c14f9b7c96f4b53
This commit is contained in:
Fernando Jimenez Moreno 2017-06-12 14:54:39 +02:00
Родитель 9c589731b4
Коммит 1c57cc83d0
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -149,7 +149,7 @@ SERVO_BINDING_FUNC(Servo_StyleRule_SetStyle, void,
RawServoDeclarationBlockBorrowed declarations) RawServoDeclarationBlockBorrowed declarations)
SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorText, void, SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorText, void,
RawServoStyleRuleBorrowed rule, nsAString* result) RawServoStyleRuleBorrowed rule, nsAString* result)
SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorTextFromIndex, void, SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorTextAtIndex, void,
RawServoStyleRuleBorrowed rule, uint32_t index, RawServoStyleRuleBorrowed rule, uint32_t index,
nsAString* result) nsAString* result)
SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorCount, void, SERVO_BINDING_FUNC(Servo_StyleRule_GetSelectorCount, void,

Просмотреть файл

@ -262,7 +262,7 @@ ServoStyleRule::GetSelectorCount()
nsresult nsresult
ServoStyleRule::GetSelectorText(uint32_t aSelectorIndex, nsAString& aText) ServoStyleRule::GetSelectorText(uint32_t aSelectorIndex, nsAString& aText)
{ {
Servo_StyleRule_GetSelectorTextFromIndex(mRawRule, aSelectorIndex, &aText); Servo_StyleRule_GetSelectorTextAtIndex(mRawRule, aSelectorIndex, &aText);
return NS_OK; return NS_OK;
} }