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

Issue 2550063002: Remove double constructors that assume degrees from CSSRotation (Closed)

Created:
4 years ago by meade_UTC10
Modified:
4 years ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove double constructors that assume degrees from CSSRotation Instead, use only constructors that take CSSAngleValues, so that the unit is explicit, then actually store this information. This is to reflect the spec change that removed these constructors in https://github.com/w3c/css-houdini-drafts/commit/535591271f88d71fd7ca60dc4132db15f93b980a Also includes: - Adding support for making a CSSAngleValue out of a CSSPrimitiveValue, to continue supporting getting CSSTransform(CSSRotation) from inline StylePropertyMaps. - Moves some of the inlineStyle CSSRotation tests to use the property-suite for more thorough testing. I was not able to convert all the tests, as I still have to figure out how to test the behaviour when the value is set using the old CSSOM to something like "rotateX", "rotateY" and "rotateZ". BUG=545318 Committed: https://crrev.com/0eebfb8ffb2b8730c2679d41c011f2871b28cdf1 Cr-Commit-Position: refs/heads/master@{#439404}

Patch Set 1 #

Patch Set 2 : Add in angle fromCSSValue #

Patch Set 3 : Move some rotation+inline style tests to property suite #

Total comments: 2

Patch Set 4 : Add tests for calc angles #

Patch Set 5 : Add missing new lines in expectation file #

Total comments: 2

Patch Set 6 : Fix test #

Messages

Total messages: 41 (25 generated)
meade_UTC10
There's a lot going on in this CL, let me know if you think I ...
4 years ago (2016-12-05 06:18:18 UTC) #7
meade_UTC10
There's a lot going on in this CL, let me know if you think I ...
4 years ago (2016-12-05 06:18:19 UTC) #9
Timothy Loh
https://codereview.chromium.org/2550063002/diff/40001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp File third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp (right): https://codereview.chromium.org/2550063002/diff/40001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp#newcode22 third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp:22: DCHECK(!value.isCalculated()); It's not obvious to me that this is ...
4 years ago (2016-12-06 06:31:40 UTC) #12
Timothy Loh
BTW typedcssom/inlinestyle/transform.html needs to be updated too
4 years ago (2016-12-06 06:34:39 UTC) #13
meade_UTC10
https://codereview.chromium.org/2550063002/diff/40001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp File third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp (right): https://codereview.chromium.org/2550063002/diff/40001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp#newcode22 third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp:22: DCHECK(!value.isCalculated()); On 2016/12/06 06:31:39, Timothy Loh wrote: > It's ...
4 years ago (2016-12-06 06:35:58 UTC) #14
Timothy Loh
On 2016/12/06 06:35:58, Eddy wrote: > https://codereview.chromium.org/2550063002/diff/40001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp > File third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp (right): > > https://codereview.chromium.org/2550063002/diff/40001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp#newcode22 > ...
4 years ago (2016-12-06 06:44:17 UTC) #15
meade_UTC10
On 2016/12/06 06:44:17, Timothy Loh wrote: > On 2016/12/06 06:35:58, Eddy wrote: > > > ...
4 years ago (2016-12-09 04:07:16 UTC) #18
rjwright
https://codereview.chromium.org/2550063002/diff/80001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp File third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp (right): https://codereview.chromium.org/2550063002/diff/80001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp#newcode23 third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp:23: return nullptr; We won't be supporting calc angles ever?
4 years ago (2016-12-16 04:33:03 UTC) #23
rjwright
LGTM
4 years ago (2016-12-16 04:33:34 UTC) #24
meade_UTC10
+sasha since Tim's OOO now. PTAL? Thanks!
4 years ago (2016-12-19 02:25:48 UTC) #28
sashab
LGTM :)
4 years ago (2016-12-19 03:30:18 UTC) #29
meade_UTC10
Thanks Sasha!
4 years ago (2016-12-19 04:00:01 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2550063002/100001
4 years ago (2016-12-19 04:00:30 UTC) #34
meade_UTC10
https://codereview.chromium.org/2550063002/diff/80001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp File third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp (right): https://codereview.chromium.org/2550063002/diff/80001/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp#newcode23 third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp:23: return nullptr; On 2016/12/16 04:33:03, rjwright wrote: > We ...
4 years ago (2016-12-19 04:01:21 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-19 04:10:39 UTC) #39
commit-bot: I haz the power
4 years ago (2016-12-19 04:13:08 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0eebfb8ffb2b8730c2679d41c011f2871b28cdf1
Cr-Commit-Position: refs/heads/master@{#439404}

Powered by Google App Engine
This is Rietveld 408576698