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 | 237 else if (isHTMLBodyElement(*this)) |
238 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect
ion, "ltr"); | 238 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirect
ion, "ltr"); |
239 if (!hasTagName(bdiTag) && !hasTagName(bdoTag) && !hasTagName(output
Tag)) | 239 if (!hasTagName(bdiTag) && !hasTagName(bdoTag) && !hasTagName(output
Tag)) |
240 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicod
eBidi, CSSValueIsolate); | 240 addPropertyToPresentationAttributeStyle(style, CSSPropertyUnicod
eBidi, CSSValueIsolate); |
241 } | 241 } |
242 } else if (name.matches(XMLNames::langAttr)) { | 242 } else if (name.matches(XMLNames::langAttr)) { |
243 mapLanguageAttributeToLocale(value, style); | 243 mapLanguageAttributeToLocale(value, style); |
244 } else if (name == langAttr) { | 244 } else if (name == langAttr) { |
245 // xml:lang has a higher priority than lang. | 245 // xml:lang has a higher priority than lang. |
246 if (!fastHasAttribute(XMLNames::langAttr)) | 246 if (!fastHasAttribute(XMLNames::langAttr)) |
247 mapLanguageAttributeToLocale(value, style); | 247 mapLanguageAttributeToLocale(value, style); |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 #ifndef NDEBUG | 1036 #ifndef NDEBUG |
1037 | 1037 |
1038 // For use in the debugger | 1038 // For use in the debugger |
1039 void dumpInnerHTML(blink::HTMLElement*); | 1039 void dumpInnerHTML(blink::HTMLElement*); |
1040 | 1040 |
1041 void dumpInnerHTML(blink::HTMLElement* element) | 1041 void dumpInnerHTML(blink::HTMLElement* element) |
1042 { | 1042 { |
1043 printf("%s\n", element->innerHTML().ascii().data()); | 1043 printf("%s\n", element->innerHTML().ascii().data()); |
1044 } | 1044 } |
1045 #endif | 1045 #endif |
OLD | NEW |