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

Unified Diff: Source/core/layout/LayoutBlock.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/LayerScrollableArea.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBlock.cpp
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp
index bd2b1e7becf01a4ca2ab2858a8603c2c15cba9dd..5f11dd5e9bd29f1a70d126d594d9bb33f688c228 100644
--- a/Source/core/layout/LayoutBlock.cpp
+++ b/Source/core/layout/LayoutBlock.cpp
@@ -1398,7 +1398,7 @@ bool LayoutBlock::updateImageLoadingPriorities()
return false;
LayoutRect viewBounds = viewRect();
- LayoutRect objectBounds = absoluteContentBox();
+ LayoutRect objectBounds(absoluteContentBox());
// The object bounds might be empty right now, so intersects will fail since it doesn't deal
// with empty rects. Use LayoutRect::contains in that case.
bool isVisible;
@@ -1530,7 +1530,7 @@ void LayoutBlock::addVisualOverflowFromTheme()
IntRect inflatedRect = pixelSnappedBorderBoxRect();
LayoutTheme::theme().adjustPaintInvalidationRect(this, inflatedRect);
- addVisualOverflow(inflatedRect);
+ addVisualOverflow(LayoutRect(inflatedRect));
}
bool LayoutBlock::createsNewFormattingContext() const
@@ -2326,7 +2326,7 @@ bool LayoutBlock::hitTestColumns(const HitTestRequest& request, HitTestResult& r
return false;
for (ColumnRectIterator it(*this); it.hasMore(); it.advance()) {
- LayoutRect hitRect = locationInContainer.boundingBox();
+ LayoutRect hitRect = LayoutRect(locationInContainer.boundingBox());
LayoutRect colRect = it.columnRect();
colRect.moveBy(accumulatedOffset);
if (locationInContainer.intersects(colRect)) {
« no previous file with comments | « Source/core/layout/LayerScrollableArea.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698