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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 362073004: Revert of Refactoring activity logger. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/URLUtils.idl » ('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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2847 if (inActiveDocument() && document().styleResolver() && styleChangeType( ) < SubtreeStyleChange) 2847 if (inActiveDocument() && document().styleResolver() && styleChangeType( ) < SubtreeStyleChange)
2848 document().ensureStyleResolver().ensureUpdatedRuleFeatureSet().sched uleStyleInvalidationForAttributeChange(name, *this); 2848 document().ensureStyleResolver().ensureUpdatedRuleFeatureSet().sched uleStyleInvalidationForAttributeChange(name, *this);
2849 2849
2850 if (isUpgradedCustomElement()) 2850 if (isUpgradedCustomElement())
2851 CustomElement::attributeDidChange(this, name.localName(), oldValue, newValue); 2851 CustomElement::attributeDidChange(this, name.localName(), oldValue, newValue);
2852 } 2852 }
2853 2853
2854 if (OwnPtrWillBeRawPtr<MutationObserverInterestGroup> recipients = MutationO bserverInterestGroup::createForAttributesMutation(*this, name)) 2854 if (OwnPtrWillBeRawPtr<MutationObserverInterestGroup> recipients = MutationO bserverInterestGroup::createForAttributesMutation(*this, name))
2855 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this, name, oldValue)); 2855 recipients->enqueueMutationRecord(MutationRecord::createAttributes(this, name, oldValue));
2856 2856
2857 attributeWillChange(name, oldValue, newValue);
2858
2859 InspectorInstrumentation::willModifyDOMAttr(this, oldValue, newValue); 2857 InspectorInstrumentation::willModifyDOMAttr(this, oldValue, newValue);
2860 } 2858 }
2861 2859
2862 void Element::didAddAttribute(const QualifiedName& name, const AtomicString& val ue) 2860 void Element::didAddAttribute(const QualifiedName& name, const AtomicString& val ue)
2863 { 2861 {
2864 attributeChanged(name, value); 2862 attributeChanged(name, value);
2865 InspectorInstrumentation::didModifyDOMAttr(this, name.localName(), value); 2863 InspectorInstrumentation::didModifyDOMAttr(this, name.localName(), value);
2866 dispatchSubtreeModifiedEvent(); 2864 dispatchSubtreeModifiedEvent();
2867 } 2865 }
2868 2866
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
3339 3337
3340 void Element::trace(Visitor* visitor) 3338 void Element::trace(Visitor* visitor)
3341 { 3339 {
3342 if (hasRareData()) 3340 if (hasRareData())
3343 visitor->trace(elementRareData()); 3341 visitor->trace(elementRareData());
3344 visitor->trace(m_elementData); 3342 visitor->trace(m_elementData);
3345 ContainerNode::trace(visitor); 3343 ContainerNode::trace(visitor);
3346 } 3344 }
3347 3345
3348 } // namespace WebCore 3346 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/URLUtils.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698