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

Unified Diff: Source/core/layout/svg/LayoutSVGModelObject.cpp

Issue 1321613002: Refactor ObjectPainter::paintOutline to take a paintOffset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove ObjectPainter::outlineRectForSVG Created 5 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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGModelObject.h ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGModelObject.cpp
diff --git a/Source/core/layout/svg/LayoutSVGModelObject.cpp b/Source/core/layout/svg/LayoutSVGModelObject.cpp
index 7e2300849216be4bf4cea042ed4597ee8f86c1ec..b529531d0bf9860f7f6efa8aadb11bebe6ecc9cf 100644
--- a/Source/core/layout/svg/LayoutSVGModelObject.cpp
+++ b/Source/core/layout/svg/LayoutSVGModelObject.cpp
@@ -142,4 +142,12 @@ void LayoutSVGModelObject::invalidateTreeIfNeeded(PaintInvalidationState& paintI
invalidatePaintOfSubtreesIfNeeded(childPaintInvalidationState);
}
+LayoutRect LayoutSVGModelObject::outlineVisualOverflowRect() const
+{
+ LayoutRect outlineBounds(FloatPoint(), m_paintInvalidationBoundingBox.size());
+ if (int outlineOutset = styleRef().outlineOutsetExtent())
+ outlineBounds.inflate(outlineOutset);
+ return outlineBounds;
+}
+
} // namespace blink
« no previous file with comments | « Source/core/layout/svg/LayoutSVGModelObject.h ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698