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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.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/LayoutSVGModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp
index 2b610f00cf73fb1866b47e76638fbed6665e06d2..2949fb6ab3b220eb19c4ca5bafe7ece82aa56f45 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp
@@ -57,9 +57,8 @@ void LayoutSVGModelObject::mapLocalToAncestor(
SVGLayoutSupport::mapLocalToAncestor(this, ancestor, transformState, flags);
}
-LayoutRect LayoutSVGModelObject::absoluteClippedOverflowRect() const {
- return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this,
- *view());
+LayoutRect LayoutSVGModelObject::absoluteVisualRect() const {
+ return SVGLayoutSupport::visualRectInAncestorSpace(*this, *view());
}
void LayoutSVGModelObject::mapAncestorToLocal(
@@ -144,8 +143,7 @@ bool LayoutSVGModelObject::nodeAtPoint(HitTestResult&,
// default absoluteElementBoundingBoxRect() returns incorrect values for SVG
// objects. Overriding this method provides access to the absolute bounds.
IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const {
- return localToAbsoluteQuad(
- FloatQuad(paintInvalidationRectInLocalSVGCoordinates()))
+ return localToAbsoluteQuad(FloatQuad(visualRectInLocalSVGCoordinates()))
.enclosingBoundingBox();
}

Powered by Google App Engine
This is Rietveld 408576698