Index: third_party/WebKit/Source/core/html/HTMLElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
index bc3c1bd86be98f88dc2d7ee1f7e9544a13ba772f..d3c3e219cc61e6baff785f1c0a8ba735d7bc2df3 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
@@ -234,8 +234,10 @@ void HTMLElement::collectStyleForPresentationAttribute(const QualifiedName& name |
} else { |
if (isValidDirAttribute(value)) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, value); |
- else |
+ else if (isHTMLBodyElement(*this)) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, "ltr"); |
+ else |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, ""); |
kojii
2016/02/16 07:39:01
I should have noticed before, sorry, but is this l
chakshu
2016/02/18 09:00:58
Oh yes, even I didn't realize that.
Made the chang
|
if (!hasTagName(bdiTag) && !hasTagName(bdoTag) && !hasTagName(outputTag)) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBidi, CSSValueIsolate); |
} |