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

Issue 1982943002: Drag images should paint descendants that are painting siblings of the dragged element (Closed)

Created:
4 years, 7 months ago by trchen
Modified:
4 years, 7 months ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drag images should paint descendants that are painting siblings of the dragged element DOM descendant of an element is not necessarily painting descendant of it. For example: <div id="A" style="position:relative; z-index:0;"> <div id="B" style="position:relative;"> <div id="C" style="position:relative;"> Although C is a child of B, C actually gets painted by A because B is not a stacking context. For drag image purposes, when B is dragged, the users expect to see the whole DOM subtree being dragged. In this CL we start painting from the nearest stacking context instead. BUG=605119 Committed: https://crrev.com/40333ebebd01babf43339e66ee470679a9922244 Cr-Commit-Position: refs/heads/master@{#395729}

Patch Set 1 #

Total comments: 1

Patch Set 2 : start paint at parent stacking context & add test #

Total comments: 4

Patch Set 3 : update comments & rebase #

Messages

Total messages: 39 (17 generated)
trchen
It is gross but I'm afraid it has to be this gross. :( https://codereview.chromium.org/1982943002/diff/1/third_party/WebKit/Source/core/frame/LocalFrame.cpp File ...
4 years, 7 months ago (2016-05-17 03:27:58 UTC) #3
chrishtr
How about simply painting from the nearest enclosing stacking context? And actually clipped to the ...
4 years, 7 months ago (2016-05-17 22:21:47 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982943002/20001
4 years, 7 months ago (2016-05-18 01:09:58 UTC) #6
trchen
On 2016/05/17 22:21:47, chrishtr wrote: > How about simply painting from the nearest enclosing stacking ...
4 years, 7 months ago (2016-05-18 01:10:36 UTC) #7
commit-bot: I haz the power
Dry run: Exceeded global retry quota
4 years, 7 months ago (2016-05-18 02:46:35 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982943002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982943002/40001
4 years, 7 months ago (2016-05-18 03:25:31 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/192108)
4 years, 7 months ago (2016-05-18 04:46:27 UTC) #14
chrishtr
On 2016/05/18 at 01:10:36, trchen wrote: > On 2016/05/17 22:21:47, chrishtr wrote: > > How ...
4 years, 7 months ago (2016-05-18 15:48:29 UTC) #15
chrishtr
https://codereview.chromium.org/1982943002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1982943002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode620 third_party/WebKit/Source/core/frame/LocalFrame.cpp:620: // Paint starting at the nearest stacking context, clipped ...
4 years, 7 months ago (2016-05-19 17:45:16 UTC) #16
chrishtr
Please update the CL description also. https://codereview.chromium.org/1982943002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1982943002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode621 third_party/WebKit/Source/core/frame/LocalFrame.cpp:621: // TODO(pdr): This ...
4 years, 7 months ago (2016-05-19 17:46:52 UTC) #17
chrishtr
ping
4 years, 7 months ago (2016-05-23 18:43:41 UTC) #18
trchen
& CL description updated. https://codereview.chromium.org/1982943002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1982943002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode620 third_party/WebKit/Source/core/frame/LocalFrame.cpp:620: // Paint starting at the ...
4 years, 7 months ago (2016-05-23 19:37:53 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982943002/60001
4 years, 7 months ago (2016-05-23 19:38:22 UTC) #22
chrishtr
lgtm
4 years, 7 months ago (2016-05-23 19:39:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982943002/60001
4 years, 7 months ago (2016-05-23 19:40:25 UTC) #26
pdr.
On 2016/05/23 at 19:39:52, chrishtr wrote: > lgtm This seems reasonable to me too.
4 years, 7 months ago (2016-05-23 19:40:32 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/188270)
4 years, 7 months ago (2016-05-23 19:47:25 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982943002/60001
4 years, 7 months ago (2016-05-24 21:06:03 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-24 23:16:58 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982943002/60001
4 years, 7 months ago (2016-05-24 23:17:54 UTC) #35
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 7 months ago (2016-05-24 23:22:59 UTC) #37
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 23:24:28 UTC) #39
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/40333ebebd01babf43339e66ee470679a9922244
Cr-Commit-Position: refs/heads/master@{#395729}

Powered by Google App Engine
This is Rietveld 408576698