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

Issue 317733004: Update an Element's ancestor chain at the end of its activation (Closed)

Created:
6 years, 6 months ago by spartha
Modified:
6 years, 5 months ago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Update an Element's ancestor chain at the end of its activation In the course of the an Element being activated, there is a possiblity of the Element loosing its renderer (display: none being set on :active). At the end of the activation, the element and its ancestor chain need to be updated, so that the styles get reapplied. The current code skips the last part if the active element did not have a renderer. BUG=139660 TEST=fast/css/clear-activechain-list.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177215

Patch Set 1 #

Patch Set 2 : Updated Testexpectations #

Total comments: 6

Patch Set 3 : Review Comments #

Total comments: 3

Patch Set 4 #

Patch Set 5 : Added test for Shadow DOM case #

Patch Set 6 : rebasline #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : Fixed assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -11 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/clear-activechain-list.html View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/clear-activechain-list-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/clear-activechain-list-shadow-dom.html View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/clear-activechain-list-shadow-dom-expected.txt View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 2 chunks +9 lines, -11 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 6 months ago (2014-06-12 14:06:06 UTC) #1
spartha
The CQ bit was unchecked by sudarshan.p@samsung.com
6 years, 6 months ago (2014-06-12 14:06:08 UTC) #2
spartha
PTAL!
6 years, 6 months ago (2014-06-13 09:54:14 UTC) #3
spartha
6 years, 6 months ago (2014-06-13 11:34:34 UTC) #4
Inactive
On 2014/06/13 11:34:34, spartha wrote: Please add a "TEST=fast/css/clear-activechain-list.html" line to your CL description, right ...
6 years, 6 months ago (2014-06-13 13:09:25 UTC) #5
Inactive
https://codereview.chromium.org/317733004/diff/80001/LayoutTests/fast/css/clear-activechain-list.html File LayoutTests/fast/css/clear-activechain-list.html (right): https://codereview.chromium.org/317733004/diff/80001/LayoutTests/fast/css/clear-activechain-list.html#newcode21 LayoutTests/fast/css/clear-activechain-list.html:21: <pre id="description"></div> Why are those 2 <pre>...</pre> needed? AFAIK, ...
6 years, 6 months ago (2014-06-13 13:15:33 UTC) #6
spartha
Thanks! https://codereview.chromium.org/317733004/diff/80001/LayoutTests/fast/css/clear-activechain-list.html File LayoutTests/fast/css/clear-activechain-list.html (right): https://codereview.chromium.org/317733004/diff/80001/LayoutTests/fast/css/clear-activechain-list.html#newcode21 LayoutTests/fast/css/clear-activechain-list.html:21: <pre id="description"></div> On 2014/06/13 13:15:33, Chris Dumez wrote: ...
6 years, 6 months ago (2014-06-13 14:28:14 UTC) #7
esprehn
https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp#newcode5461 Source/core/dom/Document.cpp:5461: for (Node* node = oldActiveElement; node; node = node->parentNode()) ...
6 years, 6 months ago (2014-06-17 08:37:20 UTC) #8
spartha
https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp#newcode5461 Source/core/dom/Document.cpp:5461: for (Node* node = oldActiveElement; node; node = node->parentNode()) ...
6 years, 6 months ago (2014-06-17 15:07:00 UTC) #9
spartha
https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp#newcode5461 Source/core/dom/Document.cpp:5461: for (Node* node = oldActiveElement; node; node = node->parentNode()) ...
6 years, 6 months ago (2014-06-18 12:40:10 UTC) #10
spartha
On 2014/06/18 12:40:10, spartha wrote: > https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp > File Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/317733004/diff/100001/Source/core/dom/Document.cpp#newcode5461 > ...
6 years, 6 months ago (2014-06-23 13:47:29 UTC) #11
esprehn
This looks correct now, but can you add a shadow dom test using createShadowRoot()?
6 years, 6 months ago (2014-06-25 07:47:17 UTC) #12
spartha
On 2014/06/25 at 07:47:17, esprehn wrote: > This looks correct now, but can you add ...
6 years, 6 months ago (2014-06-26 06:04:18 UTC) #13
esprehn
lgtm
6 years, 6 months ago (2014-06-26 06:09:35 UTC) #14
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 6 months ago (2014-06-26 06:14:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/317733004/140001
6 years, 6 months ago (2014-06-26 06:14:40 UTC) #16
spartha
The CQ bit was unchecked by sudarshan.p@samsung.com
6 years, 6 months ago (2014-06-26 06:22:45 UTC) #17
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 6 months ago (2014-06-26 09:58:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/317733004/160001
6 years, 6 months ago (2014-06-26 09:59:19 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-26 11:31:45 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 11:39:51 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/13696)
6 years, 6 months ago (2014-06-26 11:39:52 UTC) #22
spartha
https://codereview.chromium.org/317733004/diff/160001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (left): https://codereview.chromium.org/317733004/diff/160001/Source/core/dom/Document.cpp#oldcode5447 Source/core/dom/Document.cpp:5447: ASSERT(!curr->node()->isTextNode()); @morrita, the assert was added in one of ...
6 years, 6 months ago (2014-06-26 19:01:36 UTC) #23
Hajime Morrita
On 2014/06/26 19:01:36, spartha wrote: > https://codereview.chromium.org/317733004/diff/160001/Source/core/dom/Document.cpp > File Source/core/dom/Document.cpp (left): > > https://codereview.chromium.org/317733004/diff/160001/Source/core/dom/Document.cpp#oldcode5447 > ...
6 years, 6 months ago (2014-06-26 19:37:28 UTC) #24
spartha
On 2014/06/26 19:37:28, morrita wrote: > On 2014/06/26 19:01:36, spartha wrote: > > > https://codereview.chromium.org/317733004/diff/160001/Source/core/dom/Document.cpp ...
6 years, 5 months ago (2014-06-27 05:56:15 UTC) #25
Hajime Morrita
On 2014/06/27 05:56:15, spartha wrote: > On 2014/06/26 19:37:28, morrita wrote: > > On 2014/06/26 ...
6 years, 5 months ago (2014-06-27 17:39:24 UTC) #26
spartha
On 2014/06/27 17:39:24, morrita wrote: > On 2014/06/27 05:56:15, spartha wrote: > > On 2014/06/26 ...
6 years, 5 months ago (2014-06-27 18:33:30 UTC) #27
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 5 months ago (2014-06-30 15:03:50 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/317733004/220001
6 years, 5 months ago (2014-06-30 15:04:32 UTC) #29
commit-bot: I haz the power
6 years, 5 months ago (2014-06-30 16:54:39 UTC) #30
Message was sent while issue was closed.
Change committed as 177215

Powered by Google App Engine
This is Rietveld 408576698