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

Issue 1637273003: PageRule should not serialize @page in selectorText (Closed)

Created:
4 years, 11 months ago by rwlbuis
Modified:
4 years, 10 months ago
Reviewers:
Timothy Loh, rune
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PageRule should not serialize @page in selectorText According to the spec [1]: The selectorText attribute, on getting, must return the result of serializing the associated list of CSS page selectors. Behavior matches Firefox. [1] https://drafts.csswg.org/cssom/#dom-csspagerule-selectortext BUG=582098 Committed: https://crrev.com/2947176ac96b969ae7e0f119cc3e082c115d4e4e Cr-Commit-Position: refs/heads/master@{#372355}

Patch Set 1 #

Patch Set 2 : V2 #

Patch Set 3 : V3 #

Patch Set 4 : V4 #

Total comments: 4

Patch Set 5 : V5 #

Patch Set 6 : Fix compile problem #

Patch Set 7 : Fix win build problem #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/css-element-attribute-js-null.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/css-element-attribute-js-null-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPageRule.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPageRule.cpp View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp View 1 2 3 4 5 1 chunk +29 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/css/CSSRule.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSTestHelper.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSTestHelper.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
rwlbuis
PTAL.
4 years, 10 months ago (2016-01-28 16:27:35 UTC) #4
rune
How about adding a CSSPageRuleTest.cpp where you test the selector serialization? https://codereview.chromium.org/1637273003/diff/60001/third_party/WebKit/Source/core/css/CSSPageRule.cpp File third_party/WebKit/Source/core/css/CSSPageRule.cpp (left): ...
4 years, 10 months ago (2016-01-28 18:15:47 UTC) #5
rwlbuis
I added the CSSPageRuleTest.cpp as suggested. https://codereview.chromium.org/1637273003/diff/60001/third_party/WebKit/Source/core/css/CSSPageRule.cpp File third_party/WebKit/Source/core/css/CSSPageRule.cpp (left): https://codereview.chromium.org/1637273003/diff/60001/third_party/WebKit/Source/core/css/CSSPageRule.cpp#oldcode86 third_party/WebKit/Source/core/css/CSSPageRule.cpp:86: result.appendLiteral(" { "); ...
4 years, 10 months ago (2016-01-28 22:27:50 UTC) #6
rune
lgtm
4 years, 10 months ago (2016-01-28 23:04:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637273003/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637273003/90001
4 years, 10 months ago (2016-01-29 10:48:08 UTC) #9
commit-bot: I haz the power
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/138121)
4 years, 10 months ago (2016-01-29 11:57:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637273003/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637273003/110001
4 years, 10 months ago (2016-01-29 14:57:26 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years, 10 months ago (2016-01-29 16:24:41 UTC) #16
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/2947176ac96b969ae7e0f119cc3e082c115d4e4e Cr-Commit-Position: refs/heads/master@{#372355}
4 years, 10 months ago (2016-01-29 16:26:02 UTC) #18
Timothy Loh
4 years, 10 months ago (2016-01-31 23:54:24 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/1637273003/diff/110001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp (right):

https://codereview.chromium.org/1637273003/diff/110001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp:20: if
(helper.cssRules()) {
If this ends up null for some reason, then the test will still pass. You can
ASSERT it isn't null to safely check this (ASSERTs will stop the test if they
fail, while EXPECTs will keep going), although I don't think anyone really pays
much attention to whether people correctly use ASSERT or EXPECT.

I'm not sure the purpose of the if check below either, it seems like you're
already assuming the rule is non-null by dereferencing it before.

Powered by Google App Engine
This is Rietveld 408576698