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

Unified Diff: third_party/WebKit/Source/core/paint/ClipPathClipper.cpp

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: Created 4 years, 2 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/paint/ClipPathClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp b/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp
index 2ac5397058895c931ea411df4acee50ed5f98d61..d336ac44589121571929396a816a56f036122d0c 100644
--- a/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp
@@ -26,7 +26,8 @@ LayoutSVGResourceClipper* resolveElementReference(
SVGResourcesCache::cachedResourcesForLayoutObject(&layoutObject);
return resources ? resources->clipper() : nullptr;
}
- // TODO(fs): It doesn't work with forward or external SVG references (https://bugs.webkit.org/show_bug.cgi?id=90405)
+ // TODO(fs): It doesn't work with forward or external SVG references
+ // (https://bugs.webkit.org/show_bug.cgi?id=90405)
Element* element = layoutObject.document().getElementById(
referenceClipPathOperation.fragment());
if (!isSVGClipPathElement(element) || !element->layoutObject())
@@ -60,9 +61,10 @@ ClipPathClipper::ClipPathClipper(GraphicsContext& context,
return;
// Compute the (conservative) bounds of the clip-path.
FloatRect clipPathBounds = clipper->resourceBoundingBox(referenceBox);
- // When SVG applies the clip, and the coordinate system is "userspace on use", we must explicitly pass in
- // the offset to have the clip paint in the correct location. When the coordinate system is
- // "object bounding box" the offset should already be accounted for in the reference box.
+ // When SVG applies the clip, and the coordinate system is "userspace on
+ // use", we must explicitly pass in the offset to have the clip paint in the
+ // correct location. When the coordinate system is "object bounding box" the
+ // offset should already be accounted for in the reference box.
FloatPoint originTranslation;
if (clipper->clipPathUnits() == SVGUnitTypes::kSvgUnitTypeUserspaceonuse) {
clipPathBounds.moveBy(origin);
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.cpp ('k') | third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698