X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Frendering%2FRenderObject.cpp;h=c0bbb5f0c305cae4c6360720d3e86a2658bbc4c7;hp=ba1d5eec2cc84c732dfaea22c6aa660303226f47;hb=08d1d870c1c3079dffb87d69e15b823226d8ce42;hpb=a7f0e58f976b8c42be9b16b486121fed927c283a diff --git a/Source/WebCore/rendering/RenderObject.cpp b/Source/WebCore/rendering/RenderObject.cpp index ba1d5ee..c0bbb5f 100644 --- a/Source/WebCore/rendering/RenderObject.cpp +++ b/Source/WebCore/rendering/RenderObject.cpp @@ -1345,18 +1345,6 @@ bool RenderObject::isRooted() const return isDescendantOf(&view()); } -RespectImageOrientationEnum RenderObject::shouldRespectImageOrientation() const -{ -#if USE(CG) || USE(CAIRO) - // This can only be enabled for ports which honor the orientation flag in their drawing code. - if (document().isImageDocument()) - return RespectImageOrientation; -#endif - // Respect the image's orientation if it's being used as a full-page image or it's - // an and the setting to respect it everywhere is set. - return (frame().settings().shouldRespectImageOrientation() && is(node())) ? RespectImageOrientation : DoNotRespectImageOrientation; -} - static inline RenderElement* containerForElement(const RenderObject& renderer, const RenderLayerModelObject* repaintContainer, bool* repaintContainerSkipped) { // This method is extremely similar to containingBlock(), but with a few notable