diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2020-05-12 19:23:47 +0300 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-05-20 13:52:15 +0000 |
commit | ad69c023a96f516ae9a0089b1bc6e4c0712dccd3 (patch) | |
tree | 43180802d06e6d42213e133370bfa3889514d895 /layout/tables | |
parent | 206b1af429e247d36677c1f7344d3f73ff391d5a (diff) | |
download | UXP-ad69c023a96f516ae9a0089b1bc6e4c0712dccd3.tar UXP-ad69c023a96f516ae9a0089b1bc6e4c0712dccd3.tar.gz UXP-ad69c023a96f516ae9a0089b1bc6e4c0712dccd3.tar.lz UXP-ad69c023a96f516ae9a0089b1bc6e4c0712dccd3.tar.xz UXP-ad69c023a96f516ae9a0089b1bc6e4c0712dccd3.zip |
Issue #1545 - Fix border-radius on table row groups, rows, column groups, or columns
Before issue #146, border-radius on row groups, rows, column groups, or columns don't apply to the background of each cell, yet the border-radius on the cell itself does.
After issue #146, the behaviors changed. In this patch, I tried to revert the behaviors of border-radius on table row groups, rows, column groups, or columns back to what happened before issue #146.
Also: Don't override GetBorderRadii in nsBCTableCellFrame.
Diffstat (limited to 'layout/tables')
-rw-r--r-- | layout/tables/nsTableCellFrame.cpp | 12 | ||||
-rw-r--r-- | layout/tables/nsTableCellFrame.h | 4 |
2 files changed, 0 insertions, 16 deletions
diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp index 9c715d999..ee05565a9 100644 --- a/layout/tables/nsTableCellFrame.cpp +++ b/layout/tables/nsTableCellFrame.cpp @@ -1108,18 +1108,6 @@ nsBCTableCellFrame::GetUsedBorder() const return GetBorderWidth(wm).GetPhysicalMargin(wm); } -/* virtual */ bool -nsBCTableCellFrame::GetBorderRadii(const nsSize& aFrameSize, - const nsSize& aBorderArea, - Sides aSkipSides, - nscoord aRadii[8]) const -{ - NS_FOR_CSS_HALF_CORNERS(corner) { - aRadii[corner] = 0; - } - return false; -} - #ifdef DEBUG_FRAME_DUMP nsresult nsBCTableCellFrame::GetFrameName(nsAString& aResult) const diff --git a/layout/tables/nsTableCellFrame.h b/layout/tables/nsTableCellFrame.h index a822e309d..2acd59667 100644 --- a/layout/tables/nsTableCellFrame.h +++ b/layout/tables/nsTableCellFrame.h @@ -340,10 +340,6 @@ public: virtual nsIAtom* GetType() const override; virtual nsMargin GetUsedBorder() const override; - virtual bool GetBorderRadii(const nsSize& aFrameSize, - const nsSize& aBorderArea, - Sides aSkipSides, - nscoord aRadii[8]) const override; // Get the *inner half of the border only*, in twips. virtual LogicalMargin GetBorderWidth(WritingMode aWM) const override; |