Bug 1287383 - Support style="" attributes longer than 255 characters when using the Servo style backend. r?emilio
MozReview-Commit-ID: 9o5Go7lnAhG
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -679,17 +679,17 @@ Servo_InitStyleSet()
void
Servo_DropStyleSet(RawServoStyleSet* set)
{
MOZ_CRASH("stylo: shouldn't be calling Servo_DropStyleSet in a "
"non-MOZ_STYLO build");
}
ServoDeclarationBlock*
-Servo_ParseStyleAttribute(const uint8_t* bytes, uint8_t length,
+Servo_ParseStyleAttribute(const uint8_t* bytes, uint32_t length,
nsHTMLCSSStyleSheet* cache)
{
MOZ_CRASH("stylo: shouldn't be calling Servo_ParseStyleAttribute in a "
"non-MOZ_STYLO build");
}
void
Servo_DropDeclarationBlock(ServoDeclarationBlock* declarations)
--- a/layout/style/ServoBindings.h
+++ b/layout/style/ServoBindings.h
@@ -212,17 +212,17 @@ void Servo_InsertStyleSheetBefore(RawSer
RawServoStyleSheet* reference,
RawServoStyleSet* set);
bool Servo_StyleSheetHasRules(RawServoStyleSheet* sheet);
RawServoStyleSet* Servo_InitStyleSet();
void Servo_DropStyleSet(RawServoStyleSet* set);
// Style attributes.
ServoDeclarationBlock* Servo_ParseStyleAttribute(const uint8_t* bytes,
- uint8_t length,
+ uint32_t length,
nsHTMLCSSStyleSheet* cache);
void Servo_DropDeclarationBlock(ServoDeclarationBlock* declarations);
nsHTMLCSSStyleSheet* Servo_GetDeclarationBlockCache(
ServoDeclarationBlock* declarations);
void Servo_SetDeclarationBlockImmutable(ServoDeclarationBlock* declarations);
void Servo_ClearDeclarationBlockCachePointer(ServoDeclarationBlock* declarations);
// Computed style data.