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

Issue 1485973005: Add CSS support for Containment (Closed)

Created:
5 years ago by leviw_travelin_and_unemployed
Modified:
5 years ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CSS support for Containment This patch adds a RuntimeEnabledFeature (experimental, of course) as well as the properties, keywords, parsing, and storing of containment values. Intent to implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/9W80Kw-z3ss BUG=561713 Committed: https://crrev.com/8b73b08d57cf6aa217e050144947e899ff40c3aa Cr-Commit-Position: refs/heads/master@{#363178}

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 8

Patch Set 3 : Address Comments #

Total comments: 1

Patch Set 4 : Address comments #

Patch Set 5 : Add test expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply-expected.txt View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueKeywords.in View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
leviw_travelin_and_unemployed
Round 1!
5 years ago (2015-12-02 00:03:37 UTC) #2
alancutter (OOO until 2018)
https://codereview.chromium.org/1485973005/diff/20001/third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html File third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html (right): https://codereview.chromium.org/1485973005/diff/20001/third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html#newcode7 third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html:7: #strict { contain: strict; } There should be tests ...
5 years ago (2015-12-02 02:48:17 UTC) #3
Timothy Loh
https://codereview.chromium.org/1485973005/diff/20001/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp (right): https://codereview.chromium.org/1485973005/diff/20001/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp#newcode1476 third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp:1476: PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseContain() This parsing code is wrong (accepts "strict ...
5 years ago (2015-12-02 02:49:48 UTC) #4
leviw_travelin_and_unemployed
PTAL https://codereview.chromium.org/1485973005/diff/20001/third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html File third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html (right): https://codereview.chromium.org/1485973005/diff/20001/third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html#newcode7 third_party/WebKit/LayoutTests/fast/css/containment/contain-parse-and-apply.html:7: #strict { contain: strict; } On 2015/12/02 at ...
5 years ago (2015-12-03 00:02:00 UTC) #5
Timothy Loh
lgtm https://codereview.chromium.org/1485973005/diff/40001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1485973005/diff/40001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode1787 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:1787: RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); Can we just handle ...
5 years ago (2015-12-03 05:23:45 UTC) #6
eae
LGTM
5 years ago (2015-12-03 05:31:06 UTC) #7
leviw_travelin_and_unemployed
On 2015/12/03 at 05:23:45, timloh wrote: > lgtm > > https://codereview.chromium.org/1485973005/diff/40001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp > File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): ...
5 years ago (2015-12-03 22:37:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485973005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485973005/60001
5 years ago (2015-12-03 22:39:19 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/149815)
5 years ago (2015-12-04 00:39:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485973005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485973005/80001
5 years ago (2015-12-04 07:18:56 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-04 09:52:11 UTC) #17
commit-bot: I haz the power
5 years ago (2015-12-04 09:53:12 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8b73b08d57cf6aa217e050144947e899ff40c3aa
Cr-Commit-Position: refs/heads/master@{#363178}

Powered by Google App Engine
This is Rietveld 408576698