Changeset 130311 in webkit
- Timestamp:
- Oct 3, 2012, 12:17:18 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r130308 r130311 1 2012-10-03 Benjamin Poulain <bpoulain@apple.com> 2 3 Element::computeInheritedLanguage: evaluate the while() condition after fetching the string 4 https://bugs.webkit.org/show_bug.cgi?id=98220 5 6 Reviewed by Andreas Kling. 7 8 * dom/Element.cpp: 9 (WebCore::Element::computeInheritedLanguage): 10 The condition is never false on the first execution. Move the condition to the 11 end of the loop for fun and profit. 12 1 13 2012-10-03 Hans Wennborg <hans@chromium.org> 2 14 -
trunk/Source/WebCore/dom/Element.cpp
r130278 r130311 1757 1757 AtomicString value; 1758 1758 // The language property is inherited, so we iterate over the parents to find the first language. 1759 while (n && value.isNull()){1759 do { 1760 1760 if (n->isElementNode()) { 1761 1761 // Spec: xml:lang takes precedence -- http://www.w3.org/TR/xhtml1/#C_7 … … 1769 1769 1770 1770 n = n->parentNode(); 1771 } 1771 } while (n && value.isNull()); 1772 1772 1773 1773 return value;
Note:
See TracChangeset
for help on using the changeset viewer.