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

Side by Side Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
4 * rights reserved. 4 * rights reserved.
5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // We have to clear internal state before calling Inspector's code. 116 // We have to clear internal state before calling Inspector's code.
117 AbstractPropertySetCSSStyleDeclaration* localCopyStyleDecl = s_currentDecl; 117 AbstractPropertySetCSSStyleDeclaration* localCopyStyleDecl = s_currentDecl;
118 s_currentDecl = 0; 118 s_currentDecl = 0;
119 119
120 if (!s_shouldNotifyInspector) 120 if (!s_shouldNotifyInspector)
121 return; 121 return;
122 122
123 s_shouldNotifyInspector = false; 123 s_shouldNotifyInspector = false;
124 if (localCopyStyleDecl->parentElement()) 124 if (localCopyStyleDecl->parentElement())
125 InspectorInstrumentation::didInvalidateStyleAttr( 125 probe::didInvalidateStyleAttr(localCopyStyleDecl->parentElement());
126 localCopyStyleDecl->parentElement());
127 } 126 }
128 127
129 void enqueueMutationRecord() { s_shouldDeliver = true; } 128 void enqueueMutationRecord() { s_shouldDeliver = true; }
130 129
131 void didInvalidateStyleAttr() { s_shouldNotifyInspector = true; } 130 void didInvalidateStyleAttr() { s_shouldNotifyInspector = true; }
132 131
133 private: 132 private:
134 static unsigned s_scopeCount; 133 static unsigned s_scopeCount;
135 static AbstractPropertySetCSSStyleDeclaration* s_currentDecl; 134 static AbstractPropertySetCSSStyleDeclaration* s_currentDecl;
136 static bool s_shouldNotifyInspector; 135 static bool s_shouldNotifyInspector;
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 return m_parentElement ? m_parentElement->document().propertyRegistry() 419 return m_parentElement ? m_parentElement->document().propertyRegistry()
421 : nullptr; 420 : nullptr;
422 } 421 }
423 422
424 DEFINE_TRACE(InlineCSSStyleDeclaration) { 423 DEFINE_TRACE(InlineCSSStyleDeclaration) {
425 visitor->trace(m_parentElement); 424 visitor->trace(m_parentElement);
426 AbstractPropertySetCSSStyleDeclaration::trace(visitor); 425 AbstractPropertySetCSSStyleDeclaration::trace(visitor);
427 } 426 }
428 427
429 } // namespace blink 428 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp ('k') | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698