| 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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 // checking the MIME content-language | 1441 // checking the MIME content-language |
| 1442 value = toDocument(n)->contentLanguage(); | 1442 value = toDocument(n)->contentLanguage(); |
| 1443 } | 1443 } |
| 1444 | 1444 |
| 1445 n = n->parentNode(); | 1445 n = n->parentNode(); |
| 1446 } while (n && value.isNull()); | 1446 } while (n && value.isNull()); |
| 1447 | 1447 |
| 1448 return value; | 1448 return value; |
| 1449 } | 1449 } |
| 1450 | 1450 |
| 1451 Locale& Element::locale() const | |
| 1452 { | |
| 1453 return document().getCachedLocale(computeInheritedLanguage()); | |
| 1454 } | |
| 1455 | |
| 1456 bool Element::matches(const String& selectors, ExceptionState& exceptionState) | 1451 bool Element::matches(const String& selectors, ExceptionState& exceptionState) |
| 1457 { | 1452 { |
| 1458 SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicStr
ing(selectors), document(), exceptionState); | 1453 SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicStr
ing(selectors), document(), exceptionState); |
| 1459 if (!selectorQuery) | 1454 if (!selectorQuery) |
| 1460 return false; | 1455 return false; |
| 1461 return selectorQuery->matches(*this); | 1456 return selectorQuery->matches(*this); |
| 1462 } | 1457 } |
| 1463 | 1458 |
| 1464 DOMTokenList& Element::classList() | 1459 DOMTokenList& Element::classList() |
| 1465 { | 1460 { |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 return false; | 1854 return false; |
| 1860 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 1855 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
| 1861 // See comments in RenderObject::setStyle(). | 1856 // See comments in RenderObject::setStyle(). |
| 1862 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 1857 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
| 1863 if (isHTMLCanvasElement(*this)) | 1858 if (isHTMLCanvasElement(*this)) |
| 1864 return false; | 1859 return false; |
| 1865 return true; | 1860 return true; |
| 1866 } | 1861 } |
| 1867 | 1862 |
| 1868 } // namespace blink | 1863 } // namespace blink |
| OLD | NEW |