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

Unified Diff: sky/engine/core/frame/UseCounter.cpp

Issue 799143002: Remove single client special cases for StyleSheetContents. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/UseCounter.cpp
diff --git a/sky/engine/core/frame/UseCounter.cpp b/sky/engine/core/frame/UseCounter.cpp
index a934e0389507de9a90c67fa31efb3e53b1e5972f..1c5d24d3f529c234275b20de824ed75e23b0aa74 100644
--- a/sky/engine/core/frame/UseCounter.cpp
+++ b/sky/engine/core/frame/UseCounter.cpp
@@ -254,10 +254,7 @@ UseCounter* UseCounter::getFrom(const CSSStyleSheet* sheet)
UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
{
- // FIXME: We may want to handle stylesheets that have multiple owners
- // http://crbug.com/242125
- if (sheetContents && sheetContents->hasSingleOwnerNode())
- return getFrom(sheetContents->singleOwnerDocument());
+ // TODO(esprehn): Support this in Sky.
ojan 2014/12/13 00:55:38 Is this just: if (sheetContents) return getFrom(
return 0;
}
« no previous file with comments | « sky/engine/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698