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

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

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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/LayoutSVGImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
index 8e1c323fb74e571ab5ba567be66f959701923e2f..361cb77f230419f626d3ae1edbeaf64edda6b3a8 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
@@ -130,9 +130,8 @@ void LayoutSVGImage::layout() {
}
if (m_needsBoundariesUpdate) {
- m_paintInvalidationBoundingBox = m_objectBoundingBox;
- SVGLayoutSupport::intersectPaintInvalidationRectWithResources(
- this, m_paintInvalidationBoundingBox);
+ m_localVisualRect = m_objectBoundingBox;
+ SVGLayoutSupport::adjustVisualRectWithResources(this, m_localVisualRect);
m_needsBoundariesUpdate = false;
updateParentBoundaries = true;
}
@@ -202,7 +201,7 @@ void LayoutSVGImage::addOutlineRects(Vector<LayoutRect>& rects,
IncludeBlockVisualOverflowOrNot) const {
// this is called from paint() after the localTransform has already been
// applied
- rects.append(LayoutRect(paintInvalidationRectInLocalSVGCoordinates()));
+ rects.append(LayoutRect(visualRectInLocalSVGCoordinates()));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698