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

Issue 642583006: Don't UseCounter CSS properties on recursive parseValue calls (Closed)

Created:
6 years, 2 months ago by Timothy Loh
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Don't UseCounter CSS properties on recursive parseValue calls Currently we count CSS properties in CSSPropertyParser::parseValue (the non-static version). This function is used recursively for shorthands, so we end up tracking many CSS properties which haven't been specified by users. This patch moves the check up a level, so that it is only called on properties specified by a user. I've also made it only count properties that succeeded at parsing (behaviour wouldn't change for declarations that fail to parse if we removed the property). This should reduce the usage numbers on chromestatus.com for many properties. For example while border-spacing is not specced as a shorthand, it is implemented as a shorthand and we end up measuring -webkit-border-horizontal-spacing whenever we parse border-spacing. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183636

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M Source/core/css/parser/CSSPropertyParser.cpp View 2 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Timothy Loh
6 years, 2 months ago (2014-10-14 00:35:14 UTC) #3
Timothy Loh
6 years, 2 months ago (2014-10-14 00:35:15 UTC) #4
dstockwell
lgtm, Do you have the list of all affected properties? I think it would be ...
6 years, 2 months ago (2014-10-14 00:39:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642583006/1
6 years, 2 months ago (2014-10-14 02:42:26 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-14 03:17:15 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 183636

Powered by Google App Engine
This is Rietveld 408576698