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

Unified Diff: Source/core/paint/FramePainter.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/svg/line/SVGInlineTextBox.cpp ('k') | Source/core/paint/InlineFlowBoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/FramePainter.cpp
diff --git a/Source/core/paint/FramePainter.cpp b/Source/core/paint/FramePainter.cpp
index e8a5c1c6b320e9cbc260ab66e7c19317ca226d66..c7bb710269874068761abbf5ad19d9f8292dd460 100644
--- a/Source/core/paint/FramePainter.cpp
+++ b/Source/core/paint/FramePainter.cpp
@@ -103,7 +103,7 @@ void FramePainter::paintContents(GraphicsContext* context, const IntRect& rect)
RELEASE_ASSERT(!m_frameView.needsLayout());
ASSERT(document->lifecycle().state() >= DocumentLifecycle::CompositingClean);
- TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Paint", "data", InspectorPaintEvent::data(layoutView, rect, 0));
+ TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Paint", "data", InspectorPaintEvent::data(layoutView, LayoutRect(rect), 0));
bool isTopLevelPainter = !s_inPaintContents;
s_inPaintContents = true;
@@ -118,7 +118,7 @@ void FramePainter::paintContents(GraphicsContext* context, const IntRect& rect)
}
if (m_frameView.paintBehavior() == PaintBehaviorNormal)
- document->markers().invalidateRenderedRectsForMarkersInRect(rect);
+ document->markers().invalidateRenderedRectsForMarkersInRect(LayoutRect(rect));
if (document->printing())
m_frameView.setPaintBehavior(m_frameView.paintBehavior() | PaintBehaviorFlattenCompositingLayers);
@@ -140,10 +140,10 @@ void FramePainter::paintContents(GraphicsContext* context, const IntRect& rect)
float deviceScaleFactor = blink::deviceScaleFactor(rootLayer->renderer()->frame());
context->setDeviceScaleFactor(deviceScaleFactor);
- layerPainter.paint(context, rect, m_frameView.paintBehavior(), renderer);
+ layerPainter.paint(context, LayoutRect(rect), m_frameView.paintBehavior(), renderer);
if (rootLayer->containsDirtyOverlayScrollbars())
- layerPainter.paintOverlayScrollbars(context, rect, m_frameView.paintBehavior(), renderer);
+ layerPainter.paintOverlayScrollbars(context, LayoutRect(rect), m_frameView.paintBehavior(), renderer);
m_frameView.setIsPainting(false);
@@ -161,7 +161,7 @@ void FramePainter::paintContents(GraphicsContext* context, const IntRect& rect)
s_inPaintContents = false;
}
- InspectorInstrumentation::didPaint(layoutView, 0, context, rect);
+ InspectorInstrumentation::didPaint(layoutView, 0, context, LayoutRect(rect));
}
void FramePainter::paintScrollbars(GraphicsContext* context, const IntRect& rect)
@@ -186,7 +186,7 @@ void FramePainter::paintScrollCorner(GraphicsContext* context, const IntRect& co
bool needsBackground = m_frameView.frame().isMainFrame();
if (needsBackground)
context->fillRect(cornerRect, m_frameView.baseBackgroundColor());
- ScrollbarPainter::paintIntoRect(m_frameView.scrollCorner(), context, cornerRect.location(), cornerRect);
+ ScrollbarPainter::paintIntoRect(m_frameView.scrollCorner(), context, cornerRect.location(), LayoutRect(cornerRect));
return;
}
« no previous file with comments | « Source/core/layout/svg/line/SVGInlineTextBox.cpp ('k') | Source/core/paint/InlineFlowBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698