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

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

Issue 1765463002: One instead of three resolverChanged replacing source in inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
index 56c8401db435d4b4bdf3cfdcf2575711e3db1544..a13c344e108d587209197f92bfc901fcef3e6b91 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
@@ -966,28 +966,18 @@ String InspectorStyleSheet::finalURL()
return url.isEmpty() ? m_documentURL : url;
}
-bool InspectorStyleSheet::setText(const String& text, ExceptionState& exceptionState)
+bool InspectorStyleSheet::setText(const String& text, ExceptionState&)
{
innerSetText(text, true);
if (listener())
listener()->willReparseStyleSheet();
- {
- // Have a separate scope for clearRules() (bug 95324).
- CSSStyleSheet::RuleMutationScope mutationScope(m_pageStyleSheet.get());
- m_pageStyleSheet->contents()->clearRules();
- m_pageStyleSheet->clearChildRuleCSSOMWrappers();
- }
- {
- CSSStyleSheet::RuleMutationScope mutationScope(m_pageStyleSheet.get());
- m_pageStyleSheet->contents()->parseString(text);
- }
+ m_pageStyleSheet->setText(text);
if (listener())
listener()->didReparseStyleSheet();
onStyleSheetTextChanged();
- m_pageStyleSheet->ownerDocument()->styleEngine().resolverChanged(FullStyleUpdate);
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698