Handle all writing-modes in downcast
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Feb 2018 17:52:34 +0000 (17:52 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Feb 2018 17:52:34 +0000 (17:52 +0000)
commit0de87675016c811a7c055fca544c55d90ee56458
tree09e5cedaeab1894ef4d336f1d8f9d8b8487c9ce5
parent0fe76a62d43d63500e9df2d0d86a11be3c8dc421
Handle all writing-modes in downcast
https://bugs.webkit.org/show_bug.cgi?id=182949
<rdar://problem/37710687>

Reviewed by Myles Maxfield.

Source/WebCore:

It appears we forgot to handle the deprecated "lr"
writing-mode value.

Test: fast/writing-mode/svg-writing-modes.html

* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::operator WritingMode const):

LayoutTests:

Test all the deprecated SVG writing modes.

* fast/writing-mode/svg-writing-modes-expected.html: Added.
* fast/writing-mode/svg-writing-modes.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/writing-mode/svg-writing-modes-expected.html [new file with mode: 0644]
LayoutTests/fast/writing-mode/svg-writing-modes.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSPrimitiveValueMappings.h