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

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: 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
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 34731113ea09d26f373bfa93f774789d6bad6a0a..9db7bb2ebf7d2af6754a81cd6a6dab2883f3a946 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;

Powered by Google App Engine
This is Rietveld 408576698