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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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
Index: third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
index 07cf951e3e14a049e0f92b08f1e0ae2944781608..67667d73c7a7efe3d7ea1d40e188898393774252 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
@@ -413,11 +413,6 @@ void CSSStyleSheet::setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allo
m_allowRuleAccessFromOrigin = allowedOrigin;
}
-void CSSStyleSheet::clearChildRuleCSSOMWrappers()
-{
- m_childRuleCSSOMWrappers.clear();
-}
-
bool CSSStyleSheet::sheetLoaded()
{
ASSERT(m_ownerNode);
@@ -444,6 +439,15 @@ void CSSStyleSheet::setLoadCompleted(bool completed)
m_contents->clientLoadStarted(this);
}
+void CSSStyleSheet::setText(const String& text)
+{
+ m_childRuleCSSOMWrappers.clear();
+
+ CSSStyleSheet::RuleMutationScope mutationScope(this);
+ m_contents->clearRules();
+ m_contents->parseString(text);
+}
+
DEFINE_TRACE(CSSStyleSheet)
{
visitor->trace(m_contents);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.h ('k') | third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698