summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/Source/core/layout/LayoutTableCell.cpp')
-rw-r--r--third_party/WebKit/Source/core/layout/LayoutTableCell.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
index fe9d7f0..94c76ba 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
@@ -1011,4 +1011,13 @@ LayoutTableCell* LayoutTableCell::createAnonymousWithParent(const LayoutObject*
return newCell;
}
+bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const
+{
+ // If this object has layer, the area of collapsed borders should be transparent
+ // to expose the collapsed borders painted on the underlying layer.
+ if (hasLayer() && table()->collapseBorders())
+ return false;
+ return LayoutBlockFlow::backgroundIsKnownToBeOpaqueInRect(localRect);
+}
+
} // namespace blink