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

Issue 1475903002: Don't handle unitless length quirk in CSS parser fast path (Closed)

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

Don't handle unitless length quirk in CSS parser fast path This patch makes the CSS parser fast path reject unitless length (aside from 0 and presentational svg attributes). The quirks mode spec allows unitless lengths on a fixed set of CSS properties, which we correctly handle inside the (full) property parser. Currently we will allow any unitless lengths for any fast path length property when quirks mode is enabled, instead of the smaller set where it is supposed to apply. As quirks-mode is not a common case, we just don't support the unitless length quirk at all in the fast path. This patch also extends the property-parsing-test helper to allow for quirks-mode-only values (which are rejected by CSS.supports) and also fixes the test description for properties with hyphens. https://quirks.spec.whatwg.org/#the-unitless-length-quirk BUG=436145 Committed: https://crrev.com/a7764c8c92fca51d53e7129e601c3b8b9e7bffce Cr-Commit-Position: refs/heads/master@{#361619}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M third_party/WebKit/LayoutTests/css-parser/resources/property-parsing-test.js View 2 chunks +11 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/css-parser/unitless-length-quirk.html View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp View 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Timothy Loh
I chose to add a new test instead of updating fast/css/parsing-unitless-length-quirk.html since this way the ...
5 years ago (2015-11-25 05:04:36 UTC) #4
alancutter (OOO until 2018)
lgtm
5 years ago (2015-11-25 05:26:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475903002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475903002/1
5 years ago (2015-11-25 10:41:34 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-25 10:46:25 UTC) #8
commit-bot: I haz the power
5 years ago (2015-11-25 10:47:36 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a7764c8c92fca51d53e7129e601c3b8b9e7bffce
Cr-Commit-Position: refs/heads/master@{#361619}

Powered by Google App Engine
This is Rietveld 408576698