Index: Source/core/layout/LayoutBox.cpp |
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp |
index 84c194359600d3c3c6eae812533825ebcfafd4cc..9fc161bf7016121744e60a642e638e1533c9cb92 100644 |
--- a/Source/core/layout/LayoutBox.cpp |
+++ b/Source/core/layout/LayoutBox.cpp |
@@ -499,7 +499,7 @@ void LayoutBox::scrollRectToVisible(const LayoutRect& rect, const ScrollAlignmen |
if (ownerElement && ownerElement->renderer()) { |
HTMLFrameElementBase* frameElementBase = isHTMLFrameElementBase(*ownerElement) ? toHTMLFrameElementBase(ownerElement) : 0; |
if (frameElementAndViewPermitScroll(frameElementBase, frameView)) { |
- LayoutRect viewRect = frameView->visibleContentRect(); |
+ LayoutRect viewRect(frameView->visibleContentRect()); |
LayoutRect exposeRect = ScrollAlignment::getRectToExpose(viewRect, rect, alignX, alignY); |
double xOffset = exposeRect.x(); |
@@ -1170,7 +1170,7 @@ void LayoutBox::paintBoxDecorationBackground(const PaintInfo& paintInfo, const L |
bool LayoutBox::getBackgroundPaintedExtent(LayoutRect& paintedExtent) |
{ |
ASSERT(hasBackground()); |
- LayoutRect backgroundRect = enclosingIntRect(borderBoxRect()); |
+ LayoutRect backgroundRect(enclosingIntRect(borderBoxRect())); |
Color backgroundColor = resolveColor(CSSPropertyBackgroundColor); |
if (backgroundColor.alpha()) { |