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

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

Issue 576823004: Move painting code for tables into *Paint classes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix 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/TableSectionPainter.cpp ('k') | Source/core/rendering/RenderTable.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTable.h
diff --git a/Source/core/rendering/RenderTable.h b/Source/core/rendering/RenderTable.h
index 650c1587797e7e4a40d1c7ee36fc487bd67beffd..62cece692b7145b6a85986850e0eb009b8f49ea1 100644
--- a/Source/core/rendering/RenderTable.h
+++ b/Source/core/rendering/RenderTable.h
@@ -244,7 +244,10 @@ public:
m_collapsedBordersValid = false;
m_collapsedBorders.clear();
}
+
+ // FIXME: This method should be moved into TablePainter.
const CollapsedBorderValue* currentBorderValue() const { return m_currentBorder; }
+ void setCurrentBorderValue(const CollapsedBorderValue* val) { m_currentBorder = val; }
bool hasSections() const { return m_head || m_foot || m_firstBody; }
@@ -268,6 +271,15 @@ public:
void addColumn(const RenderTableCol*);
void removeColumn(const RenderTableCol*);
+ // FIXME: this method should be moved into TablePainter.
+ virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OVERRIDE;
+
+ virtual void paintMask(PaintInfo&, const LayoutPoint&) OVERRIDE;
+
+ const CollapsedBorderValues& collapsedBorders() { return m_collapsedBorders; }
+ void subtractCaptionRect(LayoutRect&) const;
+ void recalcCollapsedBorders();
+
protected:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
virtual void simplifiedNormalFlowLayout() OVERRIDE;
@@ -279,8 +291,6 @@ private:
virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE;
- virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OVERRIDE;
- virtual void paintMask(PaintInfo&, const LayoutPoint&) OVERRIDE;
virtual void layout() OVERRIDE;
virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE;
virtual void computePreferredLogicalWidths() OVERRIDE;
@@ -304,9 +314,6 @@ private:
virtual void addOverflowFromChildren() OVERRIDE;
- void subtractCaptionRect(LayoutRect&) const;
-
- void recalcCollapsedBorders();
void recalcSections() const;
void layoutCaption(RenderTableCaption*);
« no previous file with comments | « Source/core/paint/TableSectionPainter.cpp ('k') | Source/core/rendering/RenderTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698