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..967ba9b4ff83a23d60244bea4026bc3f677627b3 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
@@ -234,7 +234,7 @@ void HTMLElement::collectStyleForPresentationAttribute(const QualifiedName& name |
} else { |
if (isValidDirAttribute(value)) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, value); |
- else |
+ else if (isHTMLBodyElement(*this)) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, "ltr"); |
if (!hasTagName(bdiTag) && !hasTagName(bdoTag) && !hasTagName(outputTag)) |
addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBidi, CSSValueIsolate); |