|
CSS Typed OM: asMatrix for TransformComponent with LengthValue types
Implement a naive isRelative() method in LengthValue subclasses.
This is then used in LengthValue::computeLengthPx.
As potentially a LengthValue might not be able to be resolved,
make TransfromComponent::asMatrix a method that can throw an exception.
This is behaviour is all tested using Perspective::asMatrix method.
Unfortunately, behaviour with percent type cannot be tested in
the Perspective class, so needs to be tested once Translation is
implemented.
LengthValue::computeLengthPx assumes that the viewport is not defined.
This needs to later be updated and is a very naive implementation.
BUG= 545318
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+197 lines, -14 lines) |
Patch |
 |
M |
third_party/WebKit/LayoutTests/typedcssom/perspectiveTransformComponent.html
|
View
|
1
|
2 chunks |
+75 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/typedcssom/translationTransformComponent.html
|
View
|
1
|
2 chunks |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/LengthValue.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/LengthValue.cpp
|
View
|
1
|
2 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.cpp
|
View
|
1
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/ScaleTransformComponent.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/SimpleLength.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/SkewTransformComponent.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/TransformComponent.h
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/TransformComponent.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/TranslationTransformComponent.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/cssom/TranslationTransformComponent.cpp
|
View
|
1
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 9 (5 generated)
|