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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp

Issue 2484863003: Make updateStyleAndLayoutTree ready for async stylesheet update. (Closed)
Patch Set: Rebased Created 4 years, 1 month 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
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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 18 matching lines...) Expand all
29 #include "core/dom/DocumentStyleSheetCollection.h" 29 #include "core/dom/DocumentStyleSheetCollection.h"
30 30
31 #include "core/css/resolver/StyleResolver.h" 31 #include "core/css/resolver/StyleResolver.h"
32 #include "core/css/resolver/ViewportStyleResolver.h" 32 #include "core/css/resolver/ViewportStyleResolver.h"
33 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
34 #include "core/dom/DocumentStyleSheetCollector.h" 34 #include "core/dom/DocumentStyleSheetCollector.h"
35 #include "core/dom/ProcessingInstruction.h" 35 #include "core/dom/ProcessingInstruction.h"
36 #include "core/dom/StyleChangeReason.h" 36 #include "core/dom/StyleChangeReason.h"
37 #include "core/dom/StyleEngine.h" 37 #include "core/dom/StyleEngine.h"
38 #include "core/dom/StyleSheetCandidate.h" 38 #include "core/dom/StyleSheetCandidate.h"
39 #include "platform/RuntimeEnabledFeatures.h"
40 39
41 namespace blink { 40 namespace blink {
42 41
43 DocumentStyleSheetCollection::DocumentStyleSheetCollection(TreeScope& treeScope) 42 DocumentStyleSheetCollection::DocumentStyleSheetCollection(TreeScope& treeScope)
44 : TreeScopeStyleSheetCollection(treeScope) { 43 : TreeScopeStyleSheetCollection(treeScope) {
45 DCHECK_EQ(treeScope.rootNode(), treeScope.rootNode().document()); 44 DCHECK_EQ(treeScope.rootNode(), treeScope.rootNode().document());
46 } 45 }
47 46
48 void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates( 47 void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(
49 StyleEngine& engine, 48 StyleEngine& engine,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 continue; 142 continue;
144 if (!candidate.canBeActivated( 143 if (!candidate.canBeActivated(
145 document().styleEngine().preferredStylesheetSetName())) 144 document().styleEngine().preferredStylesheetSetName()))
146 continue; 145 continue;
147 viewportResolver.collectViewportRulesFromAuthorSheet( 146 viewportResolver.collectViewportRulesFromAuthorSheet(
148 *toCSSStyleSheet(sheet)); 147 *toCSSStyleSheet(sheet));
149 } 148 }
150 } 149 }
151 150
152 } // namespace blink 151 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698