Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
index 3b9d2ebfe2483e9ccaeccb4c2cefb28c3aa646c2..f43d55a8522e69edf5f8ae1fd5bad554d20d2a50 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
@@ -105,7 +105,7 @@ std::unique_ptr<PatternData> LayoutSVGResourcePattern::buildPatternData(const La
attributes.preserveAspectRatio(), tileBounds.width(), tileBounds.height());
} else {
// A viewbox overrides patternContentUnits, per spec.
- if (attributes.patternContentUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)
+ if (attributes.patternContentUnits() == SVGUnitTypes::kSvgUnitTypeObjectboundingbox)
tileTransform.scale(clientBoundingBox.width(), clientBoundingBox.height());
}
@@ -138,7 +138,7 @@ SVGPaintServer LayoutSVGResourcePattern::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 (attributes().patternUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX && objectBoundingBox.isEmpty())
+ if (attributes().patternUnits() == SVGUnitTypes::kSvgUnitTypeObjectboundingbox && objectBoundingBox.isEmpty())
return SVGPaintServer::invalid();
PatternData* patternData = patternForLayoutObject(object);
@@ -179,7 +179,7 @@ PassRefPtr<SkPicture> LayoutSVGResourcePattern::asPicture(const FloatRect& tileB
ASSERT(!m_shouldCollectPatternAttributes);
AffineTransform contentTransform;
- if (attributes().patternContentUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)
+ if (attributes().patternContentUnits() == SVGUnitTypes::kSvgUnitTypeObjectboundingbox)
contentTransform = tileTransform;
FloatRect bounds(FloatPoint(), tileBounds.size());

Powered by Google App Engine
This is Rietveld 408576698