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

Issue 2880663002: Fix LayoutTableRow::AddOverflowFromCell() (Closed)

Created:
3 years, 7 months ago by Xianzhu
Modified:
3 years, 7 months ago
Reviewers:
Xianzhu, wkorman
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/branch-heads/3071
Project:
chromium
Visibility:
Public.

Description

Fix LayoutTableRow::AddOverflowFromCell() This fixes the following problems: 1. Incorrect offset of contents overflow from cell: This was changed in https://codereview.chromium.org/2786463004 Both the old version and the new version are incorrect: Should adjust by the difference of locations of row and cell. 2. Missing cell overflow propagating to row when the cell doesn't span rows. 3. Checking of HasBackground made row's visual overflow depend on the existence of background. Just remove the check to avoid tricky logic which otherwise would be required to invalidate row's overflow on background existence change. 4. Cell generates not only visual overflow, but also layout overflow (e.g. when there is a relative-positioned child). This fix doesn't change behavior because row doesn't use the layout overflow. However, this makes it possible to optimize LayoutTableSection:: ComputeOverflowFromCell() to just accumulate overflows from rows instead of all cells. The optimization will be in the next CL. BUG=719106, 603993, 646015 R=wkorman@chromium.org TBR=wangxianzhu@chromium.org NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2861653006 . Cr-Original-Commit-Position: refs/heads/master@{#470166} Review-Url: https://codereview.chromium.org/2880663002 Cr-Commit-Position: refs/branch-heads/3071@{#520} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/00be1dbf48663cdc4d867913f9420d2500c73c10

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -258 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/LayoutTests/paint/invalidation/hover-invalidation-table.html View 1 chunk +0 lines, -49 lines 0 comments Download
D third_party/WebKit/LayoutTests/paint/invalidation/hover-invalidation-table-expected.html View 1 chunk +0 lines, -31 lines 0 comments Download
D third_party/WebKit/LayoutTests/paint/invalidation/hover-invalidation-table-expected.txt View 1 chunk +0 lines, -26 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/table/row-change-background-rowspan-cell.html View 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/table/row-change-background-rowspan-cell-expected.html View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/table/row-change-background-rowspan-cell-expected.txt View 1 chunk +24 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/hover-invalidation-table-expected.txt View 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.11/virtual/disable-spinvalidation/paint/invalidation/hover-invalidation-table-expected.txt View 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-retina/virtual/disable-spinvalidation/paint/invalidation/hover-invalidation-table-expected.txt View 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win7/virtual/disable-spinvalidation/paint/invalidation/hover-invalidation-table-expected.txt View 1 chunk +0 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.cpp View 1 chunk +23 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRowTest.cpp View 1 chunk +75 lines, -27 lines 0 comments Download

Messages

Total messages: 5 (3 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2880663002/1
3 years, 7 months ago (2017-05-11 22:35:33 UTC) #2
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 22:37:54 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/00be1dbf48663cdc4d867913f942...

Powered by Google App Engine
This is Rietveld 408576698