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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.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
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 82f1a1ba82046491252f0d0d9b43aab389443983..fe77281ea5f47ce4e10dac35f0bcaed9d8ab42e4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -760,7 +760,7 @@ void PaintLayer::updateLayerPosition()
if (layoutObject()->isInline() && layoutObject()->isLayoutInline()) {
LayoutInline* inlineFlow = toLayoutInline(layoutObject());
- IntRect lineBox = inlineFlow->linesBoundingBox();
+ IntRect lineBox = enclosingIntRect(inlineFlow->linesBoundingBox());
m_size = lineBox.size();
inlineBoundingBoxOffset = lineBox.location();
localPoint.moveBy(inlineBoundingBoxOffset);
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698