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

Issue 1113013002: CSSStyleDeclaration.cssFloat is not enumerated property (Closed)

Created:
5 years, 7 months ago by Sunil Ratnu
Modified:
5 years, 2 months ago
Reviewers:
haraken, vivekg, Timothy Loh
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, blink-reviews-style_chromium.org, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

CSSStyleDeclaration.cssFloat is not enumerated property Whenver we try to get the value of the property cssFloat (style.cssFloat), it is found and gets evaluated to none, however it is not part of the enumerated properties of CSSStyleDeclaration. This patch changes the same. It also fixes the below: Blink and Webkit supports non-standard behaviour e.g. getComputedStyle(e).cssBoxShadow. It's suspected that a very few (or none at all) use this. Earlier we had added an useCounter for all non-standard cssX queries [[https://codereview.chromium.org/621283002] but now one of the cases getComputedStyle(e).cssFloat is being specced, so we should really only be counting when it isn't cssFloat. This CL modifies the same. BUG=492999, 413205

Patch Set 1 #

Patch Set 2 : Incorporate review comments #

Total comments: 2

Patch Set 3 : Added test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -1 line) Patch
A LayoutTests/fast/css/getComputedStyle/cssfloat-as-enumerated-property.html View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/getComputedStyle/cssfloat-as-enumerated-property-expected.txt View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/css/CSSStyleDeclaration.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSStyleDeclaration.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/PropertySetCSSStyleDeclaration.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/PropertySetCSSStyleDeclaration.cpp View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Sunil Ratnu
Please have a look.
5 years, 7 months ago (2015-04-30 12:15:11 UTC) #2
Timothy Loh
This is probably better if we instead just add a cssFloat to the idl (similar ...
5 years, 7 months ago (2015-05-04 01:11:32 UTC) #3
Sunil Ratnu
On 2015/05/04 01:11:32, Timothy Loh wrote: > This is probably better if we instead just ...
5 years, 7 months ago (2015-05-05 08:43:09 UTC) #4
Timothy Loh
On 2015/05/05 08:43:09, Sunil Ratnu wrote: > On 2015/05/04 01:11:32, Timothy Loh wrote: > > ...
5 years, 7 months ago (2015-05-06 01:15:18 UTC) #5
Sunil Ratnu
Hi Timothy, Apologies for being late while following up with the review as I was ...
5 years, 6 months ago (2015-06-23 13:00:23 UTC) #6
Timothy Loh
Thanks for getting back to this. https://codereview.chromium.org/1113013002/diff/20001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/1113013002/diff/20001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode408 Source/core/css/CSSComputedStyleDeclaration.cpp:408: return ""; These ...
5 years, 6 months ago (2015-06-24 00:35:00 UTC) #7
Sunil Ratnu
Hi Timothy, Thanks for the review. I have added a test case for this. Please ...
5 years, 6 months ago (2015-06-24 13:17:11 UTC) #8
Sunil Ratnu
On 2015/06/24 13:17:11, Sunil Ratnu wrote: > Hi Timothy, > > Thanks for the review. ...
5 years, 6 months ago (2015-06-24 17:14:15 UTC) #9
Timothy Loh
5 years, 2 months ago (2015-10-06 03:53:15 UTC) #10
Closing this since a similar fix was landed in
https://codereview.chromium.org/1288623005

Powered by Google App Engine
This is Rietveld 408576698