Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 1653313002: Changed the default value for Empty Dir Attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the empty string for the style Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements/global-attributes/dir-empty-attribute-value-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698