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

Issue 2257053003: Fix a crash when pseudo elements are used for a shadow host (Closed)

Created:
4 years, 4 months ago by hayato
Modified:
4 years, 3 months ago
Reviewers:
kochi, rune
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a crash when pseudo elements are used for a shadow host LayoutTreeBuilderTraversal should not pass a before/after pseudo element to FlatTreeTraversal because FlatTreeTraversal can not handle it correctly. Because there are still other clients which pass a pseudo element to FlatTreTraversal, we can not update Node::canParticipateInFlatTree()'s condition, which is used in FlatTreeTraversal::assertPreCondition(). That would be done as another task. BUG=637003 Committed: https://crrev.com/66b2cb7e218c15404eced5cab488718b3a0e537d Cr-Commit-Position: refs/heads/master@{#413072}

Patch Set 1 #

Patch Set 2 : Add a test #

Total comments: 2

Patch Set 3 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -9 lines) Patch
A third_party/WebKit/LayoutTests/shadow-dom/host-pseudo-elements.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/shadow-dom/host-pseudo-elements-expected.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.cpp View 1 2 1 chunk +21 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
hayato
Add a test
4 years, 4 months ago (2016-08-18 12:26:34 UTC) #4
hayato
PTAL
4 years, 4 months ago (2016-08-18 12:27:22 UTC) #8
rune
https://codereview.chromium.org/2257053003/diff/20001/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp (right): https://codereview.chromium.org/2257053003/diff/20001/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp#newcode105 third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp:105: return direction == TraversalDirectionForward ? node.nextSibling() : node.previousSibling(); Shouldn't ...
4 years, 4 months ago (2016-08-18 23:54:54 UTC) #11
hayato
update
4 years, 4 months ago (2016-08-19 03:50:35 UTC) #12
hayato
https://codereview.chromium.org/2257053003/diff/20001/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp File third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp (right): https://codereview.chromium.org/2257053003/diff/20001/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp#newcode105 third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp:105: return direction == TraversalDirectionForward ? node.nextSibling() : node.previousSibling(); Good ...
4 years, 4 months ago (2016-08-19 03:58:47 UTC) #18
rune
lgtm
4 years, 4 months ago (2016-08-19 06:53:03 UTC) #21
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/2257053003/40001
4 years, 4 months ago (2016-08-19 06:55:24 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-19 06:58:58 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 07:01:18 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/66b2cb7e218c15404eced5cab488718b3a0e537d
Cr-Commit-Position: refs/heads/master@{#413072}

Powered by Google App Engine
This is Rietveld 408576698