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

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

Issue 1206573002: DevTools: remove unused parts of the CSS instrumentation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/inspector/InspectorCSSAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index 2c5eb631f11c83b6384b157563e213637d1213cc..610d7179d9a2d1f56302de0ef6bacb5787ee9cda 100644
--- a/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/Source/core/inspector/InspectorCSSAgent.cpp
@@ -440,8 +440,6 @@ InspectorCSSAgent::InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectorPageA
, m_pageAgent(pageAgent)
, m_resourceAgent(resourceAgent)
, m_lastStyleSheetId(1)
- , m_styleSheetsPendingMutation(0)
- , m_styleDeclarationPendingMutation(false)
, m_creatingViaInspectorStyleSheet(false)
, m_isSettingStyleSheetText(false)
{
@@ -545,43 +543,9 @@ void InspectorCSSAgent::mediaQueryResultChanged()
frontend()->mediaQueryResultChanged();
}
-void InspectorCSSAgent::willMutateRules()
-{
- ++m_styleSheetsPendingMutation;
-}
-
-void InspectorCSSAgent::didMutateRules(CSSStyleSheet* styleSheet)
-{
- --m_styleSheetsPendingMutation;
- ASSERT(m_styleSheetsPendingMutation >= 0);
-
- if (!styleSheetEditInProgress()) {
- Document* owner = styleSheet->ownerDocument();
- if (owner)
- owner->modifiedStyleSheet(styleSheet, FullStyleUpdate);
- }
-}
-
-void InspectorCSSAgent::willMutateStyle()
-{
- m_styleDeclarationPendingMutation = true;
-}
-
-void InspectorCSSAgent::didMutateStyle(CSSStyleDeclaration* style, bool isInlineStyle)
-{
- ASSERT(m_styleDeclarationPendingMutation);
- m_styleDeclarationPendingMutation = false;
- if (!styleSheetEditInProgress() && !isInlineStyle) {
- CSSStyleSheet* parentSheet = style->parentStyleSheet();
- Document* owner = parentSheet ? parentSheet->ownerDocument() : nullptr;
- if (owner)
- owner->modifiedStyleSheet(parentSheet, FullStyleUpdate);
- }
-}
-
void InspectorCSSAgent::activeStyleSheetsUpdated(Document* document)
{
- if (styleSheetEditInProgress())
+ if (m_isSettingStyleSheetText)
return;
m_invalidatedDocuments.add(document);
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698