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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 878743003: Use the tree of trees for the lang attributes in Shadow DOM (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update tests to reflect comments Created 5 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
« no previous file with comments | « LayoutTests/fast/dom/shadow/attr-lang-inherit.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * (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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/attr-lang-inherit.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698