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

Unified Diff: Source/core/layout/LayoutHTMLCanvas.cpp

Issue 930833003: Move and rename RenderReplaced and RenderHTMLCanvas to Layout{Replaced,HTMLCanvas}. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No need to declare renderName() at all. 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/LayoutHTMLCanvas.h ('k') | Source/core/layout/LayoutImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutHTMLCanvas.cpp
diff --git a/Source/core/rendering/RenderHTMLCanvas.cpp b/Source/core/layout/LayoutHTMLCanvas.cpp
similarity index 87%
rename from Source/core/rendering/RenderHTMLCanvas.cpp
rename to Source/core/layout/LayoutHTMLCanvas.cpp
index 5247714526c55164914408121a1bffd9e442cfdf..3d3553ce40adbbd2a9ef5a6410884e8629f5a2ac 100644
--- a/Source/core/rendering/RenderHTMLCanvas.cpp
+++ b/Source/core/layout/LayoutHTMLCanvas.cpp
@@ -24,12 +24,12 @@
*/
#include "config.h"
-#include "core/rendering/RenderHTMLCanvas.h"
+#include "core/layout/LayoutHTMLCanvas.h"
-#include "core/html/HTMLCanvasElement.h"
-#include "core/html/canvas/CanvasRenderingContext.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
+#include "core/html/HTMLCanvasElement.h"
+#include "core/html/canvas/CanvasRenderingContext.h"
#include "core/layout/PaintInfo.h"
#include "core/page/Page.h"
#include "core/paint/HTMLCanvasPainter.h"
@@ -39,23 +39,23 @@ namespace blink {
using namespace HTMLNames;
-RenderHTMLCanvas::RenderHTMLCanvas(HTMLCanvasElement* element)
- : RenderReplaced(element, LayoutSize(element->size()))
+LayoutHTMLCanvas::LayoutHTMLCanvas(HTMLCanvasElement* element)
+ : LayoutReplaced(element, LayoutSize(element->size()))
{
view()->frameView()->setIsVisuallyNonEmpty();
}
-LayerType RenderHTMLCanvas::layerTypeRequired() const
+LayerType LayoutHTMLCanvas::layerTypeRequired() const
{
return NormalLayer;
}
-void RenderHTMLCanvas::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
+void LayoutHTMLCanvas::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
HTMLCanvasPainter(*this).paintReplaced(paintInfo, paintOffset);
}
-void RenderHTMLCanvas::canvasSizeChanged()
+void LayoutHTMLCanvas::canvasSizeChanged()
{
IntSize canvasSize = toHTMLCanvasElement(node())->size();
LayoutSize zoomedSize(canvasSize.width() * style()->effectiveZoom(), canvasSize.height() * style()->effectiveZoom());
@@ -81,7 +81,7 @@ void RenderHTMLCanvas::canvasSizeChanged()
setNeedsLayout();
}
-PaintInvalidationReason RenderHTMLCanvas::invalidatePaintIfNeeded(const PaintInvalidationState& paintInvalidationState, const LayoutLayerModelObject& paintInvalidationContainer)
+PaintInvalidationReason LayoutHTMLCanvas::invalidatePaintIfNeeded(const PaintInvalidationState& paintInvalidationState, const LayoutLayerModelObject& paintInvalidationContainer)
{
PaintInvalidationReason reason = RenderBox::invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationContainer);
HTMLCanvasElement* element = toHTMLCanvasElement(node());
@@ -93,7 +93,7 @@ PaintInvalidationReason RenderHTMLCanvas::invalidatePaintIfNeeded(const PaintInv
return reason;
}
-CompositingReasons RenderHTMLCanvas::additionalCompositingReasons() const
+CompositingReasons LayoutHTMLCanvas::additionalCompositingReasons() const
{
HTMLCanvasElement* canvas = toHTMLCanvasElement(node());
if (canvas->renderingContext() && canvas->renderingContext()->isAccelerated())
« no previous file with comments | « Source/core/layout/LayoutHTMLCanvas.h ('k') | Source/core/layout/LayoutImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698