|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by Xianzhu Modified:
4 years, 4 months ago CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, telemetry-reviews_chromium.org, zoltan1 Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionDon't traverse non-stacked layer under composited child in traverseNonCompositingDescendants
Non-stacked layers under a composited object belong to the object, so
we should not traverse them in traverseNonCompositingDescendants.
BUG=634389
TEST=LayoutObjectTest.TraverseNonCompositingDescendantsInPaintOrder
TBR=nednguyen (for enabling the system health smoke test)
Committed: https://crrev.com/6f716f1637685a30fd65cdec3a6b130690d56dbf
Cr-Commit-Position: refs/heads/master@{#410070}
Patch Set 1 #Patch Set 2 : - #
Total comments: 4
Patch Set 3 : - #Patch Set 4 : Update comments to be more accurate #Patch Set 5 : !hasLayer || !isStacked #
Total comments: 1
Messages
Total messages: 40 (22 generated)
The CQ bit was checked by wangxianzhu@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by wangxianzhu@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
wangxianzhu@chromium.org changed reviewers: + chrishtr@chromium.org, trchen@chromium.org
lgtm
The CQ bit was unchecked by wangxianzhu@chromium.org
The CQ bit was checked by wangxianzhu@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Also, it is not your fault (actually my fault), the four cases are meant to never fall through or overlap, so we should change them to "else if". https://codereview.chromium.org/2214253002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2214253002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutObject.cpp:3505: if (!descendant->hasLayer()) { How about this: // Case 1: If the descendant is not stacked, keep searching until a stacked one is found. if (!descendant->styleRef().isStacked()) { https://codereview.chromium.org/2214253002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutObject.cpp:3510: if (!descendant->isPaintInvalidationContainer()) { // Case 2: The descendant is stacked but not composited. if (!descendant->isPaintInvalidationContainer()) {
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Also changed the if () { ... continue; } statements to if () { } else if ...
which looks clearer.
https://codereview.chromium.org/2214253002/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right):
https://codereview.chromium.org/2214253002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutObject.cpp:3505: if
(!descendant->hasLayer()) {
On 2016/08/04 23:34:55, trchen wrote:
> How about this:
>
> // Case 1: If the descendant is not stacked, keep searching until a stacked
one
> is found.
> if (!descendant->styleRef().isStacked()) {
Done.
https://codereview.chromium.org/2214253002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutObject.cpp:3510: if
(!descendant->isPaintInvalidationContainer()) {
On 2016/08/04 23:34:55, trchen wrote:
> // Case 2: The descendant is stacked but not composited.
> if (!descendant->isPaintInvalidationContainer()) {
Done.
Description was changed from ========== Don't traverse non-stacked layer under composited child in traverseNonCompositingDescendants Non-stacked layers under a composited object belong to the object, so we should not traverse them in traverseNonCompositingDescendants. BUG=634389 TEST=LayoutObjectTest.TraverseNonCompositingDescendantsInPaintOrder ========== to ========== Don't traverse non-stacked layer under composited child in traverseNonCompositingDescendants Non-stacked layers under a composited object belong to the object, so we should not traverse them in traverseNonCompositingDescendants. BUG=634389 TEST=LayoutObjectTest.TraverseNonCompositingDescendantsInPaintOrder TBR=nednguyen (for enabling the system health smoke test) ==========
Thank you for fixing this! lgtm
The CQ bit was checked by wangxianzhu@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from chrishtr@chromium.org Link to the patchset: https://codereview.chromium.org/2214253002/#ps40001 (title: "-")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by wangxianzhu@chromium.org
The CQ bit was checked by wangxianzhu@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from chrishtr@chromium.org, trchen@chromium.org Link to the patchset: https://codereview.chromium.org/2214253002/#ps60001 (title: "Update comments to be more accurate")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...)
The CQ bit was checked by wangxianzhu@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from chrishtr@chromium.org, trchen@chromium.org Link to the patchset: https://codereview.chromium.org/2214253002/#ps80001 (title: "!hasLayer || !isStacked")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by wangxianzhu@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Don't traverse non-stacked layer under composited child in traverseNonCompositingDescendants Non-stacked layers under a composited object belong to the object, so we should not traverse them in traverseNonCompositingDescendants. BUG=634389 TEST=LayoutObjectTest.TraverseNonCompositingDescendantsInPaintOrder TBR=nednguyen (for enabling the system health smoke test) ========== to ========== Don't traverse non-stacked layer under composited child in traverseNonCompositingDescendants Non-stacked layers under a composited object belong to the object, so we should not traverse them in traverseNonCompositingDescendants. BUG=634389 TEST=LayoutObjectTest.TraverseNonCompositingDescendantsInPaintOrder TBR=nednguyen (for enabling the system health smoke test) ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Don't traverse non-stacked layer under composited child in traverseNonCompositingDescendants Non-stacked layers under a composited object belong to the object, so we should not traverse them in traverseNonCompositingDescendants. BUG=634389 TEST=LayoutObjectTest.TraverseNonCompositingDescendantsInPaintOrder TBR=nednguyen (for enabling the system health smoke test) ========== to ========== Don't traverse non-stacked layer under composited child in traverseNonCompositingDescendants Non-stacked layers under a composited object belong to the object, so we should not traverse them in traverseNonCompositingDescendants. BUG=634389 TEST=LayoutObjectTest.TraverseNonCompositingDescendantsInPaintOrder TBR=nednguyen (for enabling the system health smoke test) Committed: https://crrev.com/6f716f1637685a30fd65cdec3a6b130690d56dbf Cr-Commit-Position: refs/heads/master@{#410070} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/6f716f1637685a30fd65cdec3a6b130690d56dbf Cr-Commit-Position: refs/heads/master@{#410070}
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2219903002/ by anthonyvd@chromium.org. The reason for reverting is: Reverting this CL because it appears to be breaking the following bot: https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac%20Builder%....
Message was sent while issue was closed.
FYI: Findit try jobs (rerunning failed compile or tests) identified this CL at revision 410070 as the culprit for failures in the build cycles as shown on: https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...
Message was sent while issue was closed.
iclelland@chromium.org changed reviewers: + iclelland@chromium.org
Message was sent while issue was closed.
https://codereview.chromium.org/2214253002/diff/80001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp (right): https://codereview.chromium.org/2214253002/diff/80001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp:153: RefPtr<JSONArray> invalidations = document().view()->trackedObjectPaintInvalidationsAsJSON(); Drive-by note, because of the revert. This needs to be std::unique_ptr<JSONArray> now (as of https://crrev.com/cc67aa8) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
