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

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

Issue 1661983002: Don't propagate bbox for empty <text> to ancestors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/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 49ca3a8d5be6e9f122b066b1aecb50906453c36f..973ba5d3794a2901cd410db73dfbda1a5371133a 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
@@ -497,6 +497,12 @@ FloatRect LayoutSVGText::paintInvalidationRectInLocalCoordinates() const
return paintInvalidationRect;
}
+bool LayoutSVGText::isObjectBoundingBoxValid() const
+{
+ // If we don't have any line boxes, then consider the bbox invalid.
+ return firstLineBox();
+}
+
void LayoutSVGText::addChild(LayoutObject* child, LayoutObject* beforeChild)
{
LayoutSVGBlock::addChild(child, beforeChild);

Powered by Google App Engine
This is Rietveld 408576698