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

Unified Diff: Source/core/layout/LayoutInline.cpp

Issue 952273006: Make the constructor of a LayoutRect from an IntRect explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutInline.cpp
diff --git a/Source/core/layout/LayoutInline.cpp b/Source/core/layout/LayoutInline.cpp
index 52ddff3daebf574667e6313c78e8802caf494f55..dac69183bfa24e4935a9d41b4aabef0e2cda45b0 100644
--- a/Source/core/layout/LayoutInline.cpp
+++ b/Source/core/layout/LayoutInline.cpp
@@ -1045,7 +1045,7 @@ LayoutRect LayoutInline::absoluteClippedOverflowRect() const
LayoutRect rect = curr->clippedOverflowRectForPaintInvalidation(view());
context(rect);
if (curr == endContinuation)
- return enclosingIntRect(floatResult);
+ return LayoutRect(enclosingIntRect(floatResult));
}
}
return LayoutRect();
@@ -1442,7 +1442,7 @@ void LayoutInline::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions)
AnnotatedRegionValue region;
region.draggable = style()->getDraggableRegionMode() == DraggableRegionDrag;
- region.bounds = linesBoundingBox();
+ region.bounds = LayoutRect(linesBoundingBox());
LayoutObject* container = containingBlock();
if (!container)
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698