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

Issue 1602843003: Update StyleValue.cssString() to use existing methods instead of rolling our own. (Closed)

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

Description

Update StyleValue.cssString() to use existing methods instead of rolling our own. All StyleValues now use toCSSValue()->cssText() instead of defining custom methods in subclasses. Conveniently, this effectively allows toCSSValue to be tested in LayoutTests. Also get rid of re-parsing unit types in SimpleLength.toCSSValue, since the code there had a bug anyway which was uncovered by the LayoutTests. BUG=545318 Committed: https://crrev.com/13eeea65976892b0c083bee1f354715bc67e5375 Cr-Commit-Position: refs/heads/master@{#370341}

Patch Set 1 #

Patch Set 2 : Don't accidentally delete the constructor #

Patch Set 3 : Add tests for CalcLength CSSString, replace custom cssString method, rename test file #

Patch Set 4 : Fix bugs in CalcLength toCSSValue #

Patch Set 5 : #

Patch Set 6 : sync to head #

Patch Set 7 : reupload #

Patch Set 8 : #

Patch Set 9 : revert TransformValue.html #

Messages

Total messages: 13 (7 generated)
meade_UTC10
Hopefully this is a quick one. Nat pointed out we could simplify this and avoid ...
4 years, 11 months ago (2016-01-19 06:16:43 UTC) #3
Timothy Loh
On 2016/01/19 06:16:43, Eddy wrote: > Hopefully this is a quick one. Nat pointed out ...
4 years, 11 months ago (2016-01-19 06:38:13 UTC) #5
meade_UTC10
On 2016/01/19 06:38:13, Timothy Loh wrote: > On 2016/01/19 06:16:43, Eddy wrote: > > Hopefully ...
4 years, 11 months ago (2016-01-20 00:55:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1602843003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1602843003/140001
4 years, 11 months ago (2016-01-20 05:26:34 UTC) #9
commit-bot: I haz the power
Committed patchset #9 (id:140001)
4 years, 11 months ago (2016-01-20 08:47:05 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 08:47:52 UTC) #13
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/13eeea65976892b0c083bee1f354715bc67e5375
Cr-Commit-Position: refs/heads/master@{#370341}

Powered by Google App Engine
This is Rietveld 408576698