| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
|
| index 0c957d3fc891be8cc3d587d7ef5f1389c7e59458..945fb89eb303e6778a1e8026ce78a6a0291d69aa 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
|
| @@ -70,7 +70,7 @@ SVGPaintServer LayoutSVGResourceGradient::preparePaintServer(const LayoutObject&
|
| // Spec: When the geometry of the applicable element has no width or height and objectBoundingBox is specified,
|
| // then the given effect (e.g. a gradient or a filter) will be ignored.
|
| FloatRect objectBoundingBox = object.objectBoundingBox();
|
| - if (gradientUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX && objectBoundingBox.isEmpty())
|
| + if (gradientUnits() == SVGUnitTypes::kSvgUnitTypeObjectboundingbox && objectBoundingBox.isEmpty())
|
| return SVGPaintServer::invalid();
|
|
|
| std::unique_ptr<GradientData>& gradientData = m_gradientMap.add(&object, nullptr).storedValue->value;
|
| @@ -82,7 +82,7 @@ SVGPaintServer LayoutSVGResourceGradient::preparePaintServer(const LayoutObject&
|
| gradientData->gradient = buildGradient();
|
|
|
| // We want the text bounding box applied to the gradient space transform now, so the gradient shader can use it.
|
| - if (gradientUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX && !objectBoundingBox.isEmpty()) {
|
| + if (gradientUnits() == SVGUnitTypes::kSvgUnitTypeObjectboundingbox && !objectBoundingBox.isEmpty()) {
|
| gradientData->userspaceTransform.translate(objectBoundingBox.x(), objectBoundingBox.y());
|
| gradientData->userspaceTransform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.height());
|
| }
|
|
|