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

Unified Diff: Source/core/dom/ProcessingInstruction.cpp

Issue 23516012: Rename StyleSheetCollections to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/dom/Element.cpp ('k') | Source/core/dom/ShadowTreeStyleSheetCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ProcessingInstruction.cpp
diff --git a/Source/core/dom/ProcessingInstruction.cpp b/Source/core/dom/ProcessingInstruction.cpp
index 94ee37e500433a38bffd0942c00a62fb042958ab..be736e8e48cea795465710152520c66cb348de7f 100644
--- a/Source/core/dom/ProcessingInstruction.cpp
+++ b/Source/core/dom/ProcessingInstruction.cpp
@@ -26,7 +26,7 @@
#include "core/css/MediaList.h"
#include "core/css/StyleSheetContents.h"
#include "core/dom/Document.h"
-#include "core/dom/StyleSheetCollections.h"
+#include "core/dom/StyleEngine.h"
#include "core/fetch/CSSStyleSheetResource.h"
#include "core/fetch/FetchRequest.h"
#include "core/fetch/ResourceFetcher.h"
@@ -63,7 +63,7 @@ ProcessingInstruction::~ProcessingInstruction()
m_resource->removeClient(this);
if (inDocument())
- document().styleSheetCollections()->removeStyleSheetCandidateNode(this);
+ document().styleEngine()->removeStyleSheetCandidateNode(this);
}
String ProcessingInstruction::nodeName() const
@@ -133,7 +133,7 @@ void ProcessingInstruction::checkStyleSheet()
return;
m_loading = true;
- document().styleSheetCollections()->addPendingSheet();
+ document().styleEngine()->addPendingSheet();
FetchRequest request(ResourceRequest(document().completeURL(href)), FetchInitiatorTypeNames::processinginstruction);
if (m_isXSL)
m_resource = document().fetcher()->fetchXSLStyleSheet(request);
@@ -151,7 +151,7 @@ void ProcessingInstruction::checkStyleSheet()
else {
// The request may have been denied if (for example) the stylesheet is local and the document is remote.
m_loading = false;
- document().styleSheetCollections()->removePendingSheet(this);
+ document().styleEngine()->removePendingSheet(this);
}
}
}
@@ -169,7 +169,7 @@ bool ProcessingInstruction::isLoading() const
bool ProcessingInstruction::sheetLoaded()
{
if (!isLoading()) {
- document().styleSheetCollections()->removePendingSheet(this);
+ document().styleEngine()->removePendingSheet(this);
return true;
}
return false;
@@ -248,7 +248,7 @@ Node::InsertionNotificationRequest ProcessingInstruction::insertedInto(Container
CharacterData::insertedInto(insertionPoint);
if (!insertionPoint->inDocument())
return InsertionDone;
- document().styleSheetCollections()->addStyleSheetCandidateNode(this, m_createdByParser);
+ document().styleEngine()->addStyleSheetCandidateNode(this, m_createdByParser);
checkStyleSheet();
return InsertionDone;
}
@@ -259,7 +259,7 @@ void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint)
if (!insertionPoint->inDocument())
return;
- document().styleSheetCollections()->removeStyleSheetCandidateNode(this);
+ document().styleEngine()->removeStyleSheetCandidateNode(this);
RefPtr<StyleSheet> removedSheet = m_sheet;
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/ShadowTreeStyleSheetCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698