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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/shadow/attr-lang-inherit.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 2161156c3a9d133da92e8dd6654880f081a3118f..c8e98a3a38a06d6bfebb01e74da1c07e48732472 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2577,7 +2577,7 @@ AtomicString Element::computeInheritedLanguage() const
value = toDocument(n)->contentLanguage();
}
- n = n->parentNode();
+ n = n->parentOrShadowHostNode();
} while (n && value.isNull());
return value;
« 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