| 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 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2570 if (const Attribute* attribute = attributes.find(XMLNames::langA
ttr)) | 2570 if (const Attribute* attribute = attributes.find(XMLNames::langA
ttr)) |
| 2571 value = attribute->value(); | 2571 value = attribute->value(); |
| 2572 else if (const Attribute* attribute = attributes.find(HTMLNames:
:langAttr)) | 2572 else if (const Attribute* attribute = attributes.find(HTMLNames:
:langAttr)) |
| 2573 value = attribute->value(); | 2573 value = attribute->value(); |
| 2574 } | 2574 } |
| 2575 } else if (n->isDocumentNode()) { | 2575 } else if (n->isDocumentNode()) { |
| 2576 // checking the MIME content-language | 2576 // checking the MIME content-language |
| 2577 value = toDocument(n)->contentLanguage(); | 2577 value = toDocument(n)->contentLanguage(); |
| 2578 } | 2578 } |
| 2579 | 2579 |
| 2580 n = n->parentNode(); | 2580 n = n->parentOrShadowHostNode(); |
| 2581 } while (n && value.isNull()); | 2581 } while (n && value.isNull()); |
| 2582 | 2582 |
| 2583 return value; | 2583 return value; |
| 2584 } | 2584 } |
| 2585 | 2585 |
| 2586 Locale& Element::locale() const | 2586 Locale& Element::locale() const |
| 2587 { | 2587 { |
| 2588 return document().getCachedLocale(computeInheritedLanguage()); | 2588 return document().getCachedLocale(computeInheritedLanguage()); |
| 2589 } | 2589 } |
| 2590 | 2590 |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3386 { | 3386 { |
| 3387 #if ENABLE(OILPAN) | 3387 #if ENABLE(OILPAN) |
| 3388 if (hasRareData()) | 3388 if (hasRareData()) |
| 3389 visitor->trace(elementRareData()); | 3389 visitor->trace(elementRareData()); |
| 3390 visitor->trace(m_elementData); | 3390 visitor->trace(m_elementData); |
| 3391 #endif | 3391 #endif |
| 3392 ContainerNode::trace(visitor); | 3392 ContainerNode::trace(visitor); |
| 3393 } | 3393 } |
| 3394 | 3394 |
| 3395 } // namespace blink | 3395 } // namespace blink |
| OLD | NEW |