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

Unified Diff: Source/core/rendering/RenderReplaced.h

Issue 596313004: Move painting code from RenderReplaced to ReplacedPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged Created 6 years, 3 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/paint/ReplacedPainter.cpp ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderReplaced.h
diff --git a/Source/core/rendering/RenderReplaced.h b/Source/core/rendering/RenderReplaced.h
index ba6fb75f3722171e25e65a64beb2183354bb7081..da93291176a6d62d7001f7228548f87272e812d3 100644
--- a/Source/core/rendering/RenderReplaced.h
+++ b/Source/core/rendering/RenderReplaced.h
@@ -44,6 +44,10 @@ public:
// http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width
static const int defaultWidth;
static const int defaultHeight;
+ virtual bool canHaveChildren() const OVERRIDE { return false; }
+ bool shouldPaint(PaintInfo&, const LayoutPoint&);
+ virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { }
+ LayoutRect localSelectionRect(bool checkWhetherSelected = true) const; // This is in local coordinates, but it's a physical rect (so the top left corner is physical top left).
virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
@@ -70,17 +74,12 @@ protected:
void setIntrinsicSize(const LayoutSize& intrinsicSize) { m_intrinsicSize = intrinsicSize; }
virtual void intrinsicSizeChanged();
- bool shouldPaint(PaintInfo&, const LayoutPoint&);
- LayoutRect localSelectionRect(bool checkWhetherSelected = true) const; // This is in local coordinates, but it's a physical rect (so the top left corner is physical top left).
virtual RenderBox* embeddedContentBox() const { return 0; }
private:
virtual const char* renderName() const OVERRIDE { return "RenderReplaced"; }
- virtual bool canHaveChildren() const OVERRIDE { return false; }
-
virtual void computePreferredLogicalWidths() OVERRIDE FINAL;
- virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { }
virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const OVERRIDE;
« no previous file with comments | « Source/core/paint/ReplacedPainter.cpp ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698