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

Issue 2229503002: Style invalidation support for :first/last/only-child. (Closed)

Created:
4 years, 4 months ago by rune
Modified:
4 years, 4 months ago
Reviewers:
Timothy Loh, esprehn
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, 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

Style invalidation support for :first/last/only-child. Got rid of SubtreeStyleChanges for those pseudo classes. Also fixed issue 245914 by looking at next/previous element, not node, to figure out if we are the first. The code in checkForSiblingStyleChanges could be restructured quite a bit and made simpler now have changedElement (changedNode => changeElement since the input is always an element). BUG=245914 Committed: https://crrev.com/798b5cdff6f50fa0d19a198f5f6e3f57425fbf05 Cr-Commit-Position: refs/heads/master@{#410472}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed review issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -62 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/invalidation/first-last-only-child.html View 1 chunk +168 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleFeature.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.h View 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 1 1 chunk +32 lines, -59 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (9 generated)
rune
ptal
4 years, 4 months ago (2016-08-08 19:52:38 UTC) #6
esprehn
I think you want to call ContainerNode::hasRestyleFlag instead? :) lgtm https://codereview.chromium.org/2229503002/diff/1/third_party/WebKit/Source/core/dom/ContainerNode.cpp File third_party/WebKit/Source/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/2229503002/diff/1/third_party/WebKit/Source/core/dom/ContainerNode.cpp#newcode1229 ...
4 years, 4 months ago (2016-08-08 20:07:53 UTC) #7
rune
https://codereview.chromium.org/2229503002/diff/1/third_party/WebKit/Source/core/dom/ContainerNode.cpp File third_party/WebKit/Source/core/dom/ContainerNode.cpp (right): https://codereview.chromium.org/2229503002/diff/1/third_party/WebKit/Source/core/dom/ContainerNode.cpp#newcode1229 third_party/WebKit/Source/core/dom/ContainerNode.cpp:1229: if (!hasRareData() || !rareData()->hasRestyleFlag(ChildrenAffectedByStructuralRules)) On 2016/08/08 20:07:53, esprehn wrote: ...
4 years, 4 months ago (2016-08-08 20:21:57 UTC) #8
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/2229503002/20001
4 years, 4 months ago (2016-08-08 20:23:21 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-08 22:04:47 UTC) #12
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 22:08:23 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/798b5cdff6f50fa0d19a198f5f6e3f57425fbf05
Cr-Commit-Position: refs/heads/master@{#410472}

Powered by Google App Engine
This is Rietveld 408576698