Bug 1366544 - stylo: Implement -moz-prefixed linear gradients r?Manishearth draft
authorNazım Can Altınova <canaltinova@gmail.com>
Mon, 19 Jun 2017 00:38:56 -0700
changeset 602929 31a6067b253d0f408e46f8f957f67b3d16f42e44
parent 602698 0b5603017c25e943ba3ab97cb46d88adf1e6a3e4
child 602930 e1bf05914e59acf007bbcc6c0efa0f766aa177d5
push id66618
push userbmo:canaltinova@gmail.com
push dateFri, 30 Jun 2017 22:37:21 +0000
reviewersManishearth
bugs1366544
milestone56.0a1
Bug 1366544 - stylo: Implement -moz-prefixed linear gradients r?Manishearth MozReview-Commit-ID: Hfn5g7ZV51v
layout/style/ServoBindings.cpp
layout/style/ServoBindings.h
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -1430,24 +1430,26 @@ Gecko_SetCounterFunction(nsStyleContentD
   return ptr;
 }
 
 nsStyleGradient*
 Gecko_CreateGradient(uint8_t aShape,
                      uint8_t aSize,
                      bool aRepeating,
                      bool aLegacySyntax,
+                     bool aMozLegacySyntax,
                      uint32_t aStopCount)
 {
   nsStyleGradient* result = new nsStyleGradient();
 
   result->mShape = aShape;
   result->mSize = aSize;
   result->mRepeating = aRepeating;
   result->mLegacySyntax = aLegacySyntax;
+  result->mMozLegacySyntax = aMozLegacySyntax;
 
   result->mAngle.SetNoneValue();
   result->mBgPosX.SetNoneValue();
   result->mBgPosY.SetNoneValue();
   result->mRadiusX.SetNoneValue();
   result->mRadiusY.SetNoneValue();
 
   nsStyleGradientStop dummyStop;
--- a/layout/style/ServoBindings.h
+++ b/layout/style/ServoBindings.h
@@ -307,16 +307,17 @@ void Gecko_SetLayerImageImageValue(nsSty
 void Gecko_SetImageElement(nsStyleImage* image, nsIAtom* atom);
 void Gecko_CopyImageValueFrom(nsStyleImage* image, const nsStyleImage* other);
 void Gecko_InitializeImageCropRect(nsStyleImage* image);
 
 nsStyleGradient* Gecko_CreateGradient(uint8_t shape,
                                       uint8_t size,
                                       bool repeating,
                                       bool legacy_syntax,
+                                      bool moz_legacy_syntax,
                                       uint32_t stops);
 
 // list-style-image style.
 void Gecko_SetListStyleImageNone(nsStyleList* style_struct);
 void Gecko_SetListStyleImageImageValue(nsStyleList* style_struct,
                                   mozilla::css::ImageValue* aImageValue);
 void Gecko_CopyListStyleImageFrom(nsStyleList* dest, const nsStyleList* src);