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

Unified Diff: third_party/WebKit/Source/core/dom/ContainerNode.cpp

Issue 1922223003: Change linesBoundingBox to return LayoutRect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/dom/ContainerNode.cpp
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
index 8099f739da783e31233d97e0eb49a6183b592a90..d2f6f61de2a20358f7308038db6dce98e5561523 100644
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
@@ -917,7 +917,7 @@ bool ContainerNode::getLowerRightCorner(FloatPoint& point) const
point = FloatPoint();
if (o->isText()) {
LayoutText* text = toLayoutText(o);
- IntRect linesBox = text->linesBoundingBox();
+ IntRect linesBox = enclosingIntRect(text->linesBoundingBox());
if (!linesBox.maxX() && !linesBox.maxY())
continue;
point.moveBy(linesBox.maxXMaxYCorner());

Powered by Google App Engine
This is Rietveld 408576698