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

Unified Diff: Source/core/css/resolver/ScopedStyleResolver.cpp

Issue 1285293003: Remove ScopedStyleResolver::treeScopeFor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Apply sheets for html imports to the main document. Created 5 years, 4 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 | « Source/core/css/resolver/ScopedStyleResolver.h ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/ScopedStyleResolver.cpp
diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp
index 72417408eb4f8990bd40edceca5e33a0ca0f3fa7..fc915a2639266b5f8858b0e1b481a05fc1801714 100644
--- a/Source/core/css/resolver/ScopedStyleResolver.cpp
+++ b/Source/core/css/resolver/ScopedStyleResolver.cpp
@@ -46,23 +46,6 @@
namespace blink {
-TreeScope* ScopedStyleResolver::treeScopeFor(Document& document, const CSSStyleSheet* sheet)
-{
- ASSERT(sheet);
-
- if (!sheet->ownerDocument())
- return 0;
-
- Node* ownerNode = sheet->ownerNode();
- if (!isHTMLStyleElement(ownerNode) && !isSVGStyleElement(ownerNode))
- return &document;
-
- Element& styleElement = toElement(*ownerNode);
- if (styleElement.isInShadowTree())
- return styleElement.containingShadowRoot();
- return &document;
-}
-
ScopedStyleResolver* ScopedStyleResolver::parent() const
{
for (TreeScope* scope = treeScope().parentTreeScope(); scope; scope = scope->parentTreeScope()) {
« no previous file with comments | « Source/core/css/resolver/ScopedStyleResolver.h ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698