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

Side by Side Diff: Source/core/css/PropertySetCSSStyleDeclaration.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSStyleSheet.cpp ('k') | Source/core/inspector/InspectorCSSAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 r ights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 26 matching lines...) Expand all
37 namespace blink { 37 namespace blink {
38 38
39 namespace { 39 namespace {
40 40
41 class StyleAttributeMutationScope { 41 class StyleAttributeMutationScope {
42 WTF_MAKE_NONCOPYABLE(StyleAttributeMutationScope); 42 WTF_MAKE_NONCOPYABLE(StyleAttributeMutationScope);
43 STACK_ALLOCATED(); 43 STACK_ALLOCATED();
44 public: 44 public:
45 StyleAttributeMutationScope(AbstractPropertySetCSSStyleDeclaration* decl) 45 StyleAttributeMutationScope(AbstractPropertySetCSSStyleDeclaration* decl)
46 { 46 {
47 InspectorInstrumentation::willMutateStyle(decl);
48 ++s_scopeCount; 47 ++s_scopeCount;
49 48
50 if (s_scopeCount != 1) { 49 if (s_scopeCount != 1) {
51 ASSERT(s_currentDecl == decl); 50 ASSERT(s_currentDecl == decl);
52 return; 51 return;
53 } 52 }
54 53
55 ASSERT(!s_currentDecl); 54 ASSERT(!s_currentDecl);
56 s_currentDecl = decl; 55 s_currentDecl = decl;
57 56
(...skipping 23 matching lines...) Expand all
81 return; 80 return;
82 81
83 if (m_mutation && s_shouldDeliver) 82 if (m_mutation && s_shouldDeliver)
84 m_mutationRecipients->enqueueMutationRecord(m_mutation); 83 m_mutationRecipients->enqueueMutationRecord(m_mutation);
85 84
86 s_shouldDeliver = false; 85 s_shouldDeliver = false;
87 86
88 // We have to clear internal state before calling Inspector's code. 87 // We have to clear internal state before calling Inspector's code.
89 AbstractPropertySetCSSStyleDeclaration* localCopyStyleDecl = s_currentDe cl; 88 AbstractPropertySetCSSStyleDeclaration* localCopyStyleDecl = s_currentDe cl;
90 s_currentDecl = 0; 89 s_currentDecl = 0;
91 InspectorInstrumentation::didMutateStyle(localCopyStyleDecl, localCopySt yleDecl->parentElement());
92 90
93 if (!s_shouldNotifyInspector) 91 if (!s_shouldNotifyInspector)
94 return; 92 return;
95 93
96 s_shouldNotifyInspector = false; 94 s_shouldNotifyInspector = false;
97 if (localCopyStyleDecl->parentElement()) 95 if (localCopyStyleDecl->parentElement())
98 InspectorInstrumentation::didInvalidateStyleAttr(localCopyStyleDecl- >parentElement()); 96 InspectorInstrumentation::didInvalidateStyleAttr(localCopyStyleDecl- >parentElement());
99 } 97 }
100 98
101 void enqueueMutationRecord() 99 void enqueueMutationRecord()
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 380 }
383 #endif 381 #endif
384 382
385 DEFINE_TRACE(InlineCSSStyleDeclaration) 383 DEFINE_TRACE(InlineCSSStyleDeclaration)
386 { 384 {
387 visitor->trace(m_parentElement); 385 visitor->trace(m_parentElement);
388 AbstractPropertySetCSSStyleDeclaration::trace(visitor); 386 AbstractPropertySetCSSStyleDeclaration::trace(visitor);
389 } 387 }
390 388
391 } // namespace blink 389 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleSheet.cpp ('k') | Source/core/inspector/InspectorCSSAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698