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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp

Issue 2319533004: Removed m_isSettingStyleSheetText from InspectorCSSAgent. (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
index 57e6012e7fa1270bd7c4659ce7d59bd41ba96a2d..7523dcdcb69abaef2e10daf7e37ebb432a8ca6eb 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
@@ -615,7 +615,6 @@ InspectorCSSAgent::InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectedFrame
, m_networkAgent(networkAgent)
, m_resourceContentLoader(resourceContentLoader)
, m_resourceContainer(resourceContainer)
- , m_isSettingStyleSheetText(false)
, m_resourceContentLoaderClientId(resourceContentLoader->createClientId())
{
}
@@ -715,9 +714,6 @@ void InspectorCSSAgent::fontsUpdated()
void InspectorCSSAgent::activeStyleSheetsUpdated(Document* document)
{
- if (m_isSettingStyleSheetText)
- return;
-
m_invalidatedDocuments.add(document);
}
@@ -1791,18 +1787,6 @@ void InspectorCSSAgent::styleSheetChanged(InspectorStyleSheetBase* styleSheet)
frontend()->styleSheetChanged(styleSheet->id());
}
-void InspectorCSSAgent::willReparseStyleSheet()
-{
- ASSERT(!m_isSettingStyleSheetText);
- m_isSettingStyleSheetText = true;
-}
-
-void InspectorCSSAgent::didReparseStyleSheet()
-{
- ASSERT(m_isSettingStyleSheetText);
- m_isSettingStyleSheetText = false;
-}
-
void InspectorCSSAgent::resetPseudoStates()
{
HeapHashSet<Member<Document>> documentsToChange;

Powered by Google App Engine
This is Rietveld 408576698