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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp

Issue 1447273003: Make the FloatSize constructor from an IntSize explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/layout/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index bcdfca5f03d94d3f9676d83ab5527d77afded4d0..e460ecc4b0fffcdc670f46ac81b099aee53d8577 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -538,8 +538,8 @@ void PaintLayerCompositor::frameViewDidChangeSize()
{
if (m_containerLayer) {
FrameView* frameView = m_layoutView.frameView();
- m_containerLayer->setSize(frameView->visibleContentSize());
- m_overflowControlsHostLayer->setSize(frameView->visibleContentSize(IncludeScrollbars));
+ m_containerLayer->setSize(FloatSize(frameView->visibleContentSize()));
+ m_overflowControlsHostLayer->setSize(FloatSize(frameView->visibleContentSize(IncludeScrollbars)));
frameViewDidScroll();
updateOverflowControlsLayers();
@@ -739,13 +739,13 @@ void PaintLayerCompositor::updateRootLayerPosition()
{
if (m_rootContentLayer) {
const IntRect& documentRect = m_layoutView.documentRect();
- m_rootContentLayer->setSize(documentRect.size());
+ m_rootContentLayer->setSize(FloatSize(documentRect.size()));
m_rootContentLayer->setPosition(documentRect.location());
}
if (m_containerLayer) {
FrameView* frameView = m_layoutView.frameView();
- m_containerLayer->setSize(frameView->visibleContentSize());
- m_overflowControlsHostLayer->setSize(frameView->visibleContentSize(IncludeScrollbars));
+ m_containerLayer->setSize(FloatSize(frameView->visibleContentSize()));
+ m_overflowControlsHostLayer->setSize(FloatSize(frameView->visibleContentSize(IncludeScrollbars)));
}
}

Powered by Google App Engine
This is Rietveld 408576698