OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. |
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Select, CSSValueNone); | 227 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Select, CSSValueNone); |
228 } else if (equalIgnoringCase(value, "false")) { | 228 } else if (equalIgnoringCase(value, "false")) { |
229 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueNone); | 229 addPropertyToPresentationAttributeStyle(style, CSSPropertyWebkitUser Drag, CSSValueNone); |
230 } | 230 } |
231 } else if (name == dirAttr) { | 231 } else if (name == dirAttr) { |
232 if (equalIgnoringCase(value, "auto")) { | 232 if (equalIgnoringCase(value, "auto")) { |
233 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBid i, unicodeBidiAttributeForDirAuto(this)); | 233 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicodeBid i, unicodeBidiAttributeForDirAuto(this)); |
234 } else { | 234 } else { |
235 if (isValidDirAttribute(value)) | 235 if (isValidDirAttribute(value)) |
236 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect ion, value); | 236 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect ion, value); |
237 else if (isHTMLBodyElement(*this)) | |
238 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect ion, "ltr"); | |
237 else | 239 else |
238 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect ion, "ltr"); | 240 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect ion, ""); |
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
| |
239 if (!hasTagName(bdiTag) && !hasTagName(bdoTag) && !hasTagName(output Tag)) | 241 if (!hasTagName(bdiTag) && !hasTagName(bdoTag) && !hasTagName(output Tag)) |
240 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicod eBidi, CSSValueIsolate); | 242 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicod eBidi, CSSValueIsolate); |
241 } | 243 } |
242 } else if (name.matches(XMLNames::langAttr)) { | 244 } else if (name.matches(XMLNames::langAttr)) { |
243 mapLanguageAttributeToLocale(value, style); | 245 mapLanguageAttributeToLocale(value, style); |
244 } else if (name == langAttr) { | 246 } else if (name == langAttr) { |
245 // xml:lang has a higher priority than lang. | 247 // xml:lang has a higher priority than lang. |
246 if (!fastHasAttribute(XMLNames::langAttr)) | 248 if (!fastHasAttribute(XMLNames::langAttr)) |
247 mapLanguageAttributeToLocale(value, style); | 249 mapLanguageAttributeToLocale(value, style); |
248 } else { | 250 } else { |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1036 #ifndef NDEBUG | 1038 #ifndef NDEBUG |
1037 | 1039 |
1038 // For use in the debugger | 1040 // For use in the debugger |
1039 void dumpInnerHTML(blink::HTMLElement*); | 1041 void dumpInnerHTML(blink::HTMLElement*); |
1040 | 1042 |
1041 void dumpInnerHTML(blink::HTMLElement* element) | 1043 void dumpInnerHTML(blink::HTMLElement* element) |
1042 { | 1044 { |
1043 printf("%s\n", element->innerHTML().ascii().data()); | 1045 printf("%s\n", element->innerHTML().ascii().data()); |
1044 } | 1046 } |
1045 #endif | 1047 #endif |
OLD | NEW |