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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.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/LayoutSVGText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
index ae5095b0e063bbea33e1cc7b4bf0c59867ec76e1..7af76e12086d3561393a35335178ce7dd078f866 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
@@ -368,15 +368,14 @@ FloatRect LayoutSVGText::strokeBoundingBox() const {
return strokeBoundaries;
}
-FloatRect LayoutSVGText::paintInvalidationRectInLocalSVGCoordinates() const {
- FloatRect paintInvalidationRect = strokeBoundingBox();
- SVGLayoutSupport::intersectPaintInvalidationRectWithResources(
- this, paintInvalidationRect);
+FloatRect LayoutSVGText::visualRectInLocalSVGCoordinates() const {
+ FloatRect visualRect = strokeBoundingBox();
+ SVGLayoutSupport::adjustVisualRectWithResources(this, visualRect);
if (const ShadowList* textShadow = style()->textShadow())
- textShadow->adjustRectForShadow(paintInvalidationRect);
+ textShadow->adjustRectForShadow(visualRect);
- return paintInvalidationRect;
+ return visualRect;
}
bool LayoutSVGText::isObjectBoundingBoxValid() const {

Powered by Google App Engine
This is Rietveld 408576698