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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (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/html/HTMLSelectElement.cpp ('k') | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
index 17e547ea01811591bc628e3bc35574f5f85617a5..d9dbc930ae692f0c504a091fa05e9359c64250b4 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -1238,8 +1238,8 @@ void CanvasRenderingContext2D::scrollPathIntoView(Path2D* path2d)
void CanvasRenderingContext2D::scrollPathIntoViewInternal(const Path& path)
{
LayoutObject* renderer = canvas()->renderer();
- RenderBox* renderBox = canvas()->renderBox();
- if (!renderer || !renderBox || !state().m_invertibleCTM || path.isEmpty())
+ LayoutBox* layoutBox = canvas()->layoutBox();
+ if (!renderer || !layoutBox || !state().m_invertibleCTM || path.isEmpty())
return;
canvas()->document().updateLayoutIgnorePendingStylesheets();
@@ -1251,7 +1251,7 @@ void CanvasRenderingContext2D::scrollPathIntoViewInternal(const Path& path)
// Offset by the canvas rect
LayoutRect pathRect(boundingRect);
- IntRect canvasRect = renderBox->absoluteContentBox();
+ IntRect canvasRect = layoutBox->absoluteContentBox();
pathRect.move(canvasRect.x(), canvasRect.y());
renderer->scrollRectToVisible(
« no previous file with comments | « Source/core/html/HTMLSelectElement.cpp ('k') | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698