Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutTableCell.h |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.h b/third_party/WebKit/Source/core/layout/LayoutTableCell.h |
| index eb63f020e358aaf53c69e7e1e47922ef0e0c8edb..e1d9e970e49c2a94e7acba2a0c5f789209a7d60f 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutTableCell.h |
| +++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.h |
| @@ -337,7 +337,8 @@ class CORE_EXPORT LayoutTableCell final : public LayoutBlockFlow { |
| return m_collapsedBorderValues.get(); |
| } |
| const DisplayItemClient& backgroundDisplayItemClient() const { |
| - return m_rowBackgroundDisplayItemClient |
| + return (m_rowBackgroundDisplayItemClient && |
| + usesCompositedCellDisplayItemClients()) |
|
Xianzhu
2017/03/29 00:43:53
How about keeping this as-is and changing ensureIs
Xianzhu
2017/03/29 00:58:55
I read your comment in the bug and now think this
|
| ? static_cast<const DisplayItemClient&>( |
| *m_rowBackgroundDisplayItemClient) |
| : *this; |