Changeset 63560 in webkit
- Timestamp:
- Jul 16, 2010 9:50:51 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r63559 r63560 1 2010-07-15 Rob Buis <rwlbuis@gmail.com> 2 3 Reviewed by Darin Adler. 4 5 Add test for: 6 An empty value for xml:lang isn't considered 7 https://bugs.webkit.org/show_bug.cgi?id=42042 8 9 * fast/css/lang-selector-empty-attribute-expected.txt: Added. 10 * fast/css/lang-selector-empty-attribute.xhtml: Added. 11 1 12 2010-07-15 Tony Gentilcore <tonyg@chromium.org> 2 13 -
trunk/WebCore/ChangeLog
r63558 r63560 1 2010-07-15 Rob Buis <rwlbuis@gmail.com> 2 3 Reviewed by Darin Adler. 4 5 An empty value for xml:lang isn't considered 6 https://bugs.webkit.org/show_bug.cgi?id=42042 7 8 Allow :lang selector to match empty values for xml:lang and 9 lang attributes. 10 11 Test: fast/css/lang-selector-empty-attribute.xhtml 12 13 * css/CSSStyleSelector.cpp: 14 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): 15 1 16 2010-07-16 Alexander Pavlov <apavlov@chromium.org> 2 17 -
trunk/WebCore/css/CSSStyleSelector.cpp
r63509 r63560 2601 2601 // The language property is inherited, so we iterate over the parents 2602 2602 // to find the first language. 2603 while (n && value.is Empty()) {2603 while (n && value.isNull()) { 2604 2604 if (n->isElementNode()) { 2605 2605 // Spec: xml:lang takes precedence -- http://www.w3.org/TR/xhtml1/#C_7 2606 2606 value = static_cast<Element*>(n)->fastGetAttribute(XMLNames::langAttr); 2607 if (value.is Empty())2607 if (value.isNull()) 2608 2608 value = static_cast<Element*>(n)->fastGetAttribute(langAttr); 2609 2609 } else if (n->isDocumentNode()) … … 2614 2614 } 2615 2615 const AtomicString& argument = sel->argument(); 2616 if (value.is Empty() || !value.startsWith(argument, false))2616 if (value.isNull() || !value.startsWith(argument, false)) 2617 2617 break; 2618 2618 if (value.length() != argument.length() && value[argument.length()] != '-')
Note: See TracChangeset
for help on using the changeset viewer.