Add CSS image-orientation: from-image
Support image-orientation: from-image [1] by teaching the CSS style
system and image LayoutImage call about it. To keep state about the
image-orientation, add a flag on CSS RareNonInheritedData. For now
support from-image and the default angle 0deg.
Add various tests for computed style of image-orientation as well as
its rendering effect on images with EXIF orientation and its dynamic
behavior via JS manipulation.
Dragging an oriented image works visually, i.e., if the image has a
orientation, the drag image should have the same orientation.
The behavior partly matches Firefox, in that from-image is supported
but not the CSS angle and flip values, unlike Firefox.
WebKit has code for using image-orientation CSS with angle values (no
from-image or flip), but it is not enabled for Safari.
[1] http://www.w3.org/TR/css4-images/#the-image-orientation
BUG=158753
Review URL: https://codereview.chromium.org/1162793003
git-svn-id: svn://svn.chromium.org/blink/trunk@199231 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/third_party/WebKit/LayoutTests/TestExpectations b/third_party/WebKit/LayoutTests/TestExpectations
index fb7ddde..1e52b035 100644
--- a/third_party/WebKit/LayoutTests/TestExpectations
+++ b/third_party/WebKit/LayoutTests/TestExpectations
@@ -1671,6 +1671,7 @@
crbug.com/501659 fast/xsl/xslt-missing-namespace-in-xslt.xml [ Failure ]
crbug.com/501659 http/tests/xmlviewer/dumpAsText/svg.xml [ Failure ]
+
crbug.com/501659 http/tests/security/xss-DENIED-xml-external-entity.xhtml [ Failure ]
crbug.com/501659 fast/css/stylesheet-candidate-nodes-crash.xhtml [ Failure ]
@@ -3584,3 +3585,7 @@
Bug(epertoso) fast/events/window-onerror-12.html [ NeedsManualRebaseline ]
Bug(epertoso) virtual/pointerevent/fast/events/window-onerror-11.html [ NeedsManualRebaseline ]
Bug(epertoso) virtual/pointerevent/fast/events/window-onerror-12.html [ NeedsManualRebaseline ]
+
+crbug.com/158753 fast/css/image-orientation/image-orientation.html [ NeedsRebaseline ]
+crbug.com/158753 fast/css/image-orientation/image-orientation-from-image.html [ NeedsRebaseline ]
+crbug.com/158753 fast/css/image-orientation/image-orientation-from-image-composited.html [ NeedsRebaseline ]