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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.h

Issue 1781463002: Fix table background painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sample code for improved collapsed border painting Created 3 years, 11 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
Index: third_party/WebKit/Source/core/layout/LayoutTableSection.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.h b/third_party/WebKit/Source/core/layout/LayoutTableSection.h
index bc28e972d5aba743c58880c43cb1d670e0297e5c..08935ce092e82e8db78caa798d0fe2ee7ec1d84a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.h
@@ -313,6 +313,15 @@ public:
bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const override { return false; }
bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { return false; }
+ // Returns cell's position before any transformations are applied.
+ LayoutRect getCellPosition(unsigned row, unsigned effectiveColumn) const;
+
+ // Returns cell's position after transforms.
+ LayoutRect getCellPhysicalPosition(unsigned row, unsigned effectiveColumn) const;
+
+ // Returns table-relative position of the entire section
+ LayoutRect positionByCellSpan() const;
+
protected:
void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
@@ -364,6 +373,8 @@ private:
void setLogicalPositionForCell(LayoutTableCell*, unsigned effectiveColumn) const;
+ LayoutRect transformLogicalToPhysicalPosition(const LayoutRect& position) const;
+
LayoutObjectChildList m_children;
// The representation of the rows and their cells (CellStruct).
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698