Chromium Code Reviews| 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..5eaf0981b406dc98707ea8ddfad93238b4ec20b3 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
| @@ -232,10 +232,14 @@ void HTMLElement::collectStyleForPresentationAttribute(const QualifiedName& name |
| if (equalIgnoringCase(value, "auto")) { |
| addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBidi, unicodeBidiAttributeForDirAuto(this)); |
| } else { |
| - if (isValidDirAttribute(value)) |
| + if (isValidDirAttribute(value)) { |
| addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, value); |
| - else |
| - addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, "ltr"); |
| + } else { |
| + if (isHTMLBodyElement(*this)) |
|
kojii
2016/02/12 07:13:07
nit: better to use "else if"; i.e.,
if (...)
..
chakshu
2016/02/15 05:49:25
Done.
|
| + addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, "ltr"); |
| + else |
| + addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, ""); |
| + } |
| if (!hasTagName(bdiTag) && !hasTagName(bdoTag) && !hasTagName(outputTag)) |
| addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBidi, CSSValueIsolate); |
| } |