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

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

Issue 2641803003: Introduce SynchronousMutationObserver::didChangeAttribute() (Closed)
Patch Set: 2017-01-20T14:34:58 Created 3 years, 11 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 * 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. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * (C) 2007 Eric Seidel (eric@webkit.org) 9 * (C) 2007 Eric Seidel (eric@webkit.org)
10 * 10 *
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 parentElementShadow->setNeedsDistributionRecalc(); 1290 parentElementShadow->setNeedsDistributionRecalc();
1291 } 1291 }
1292 if (name == HTMLNames::slotAttr && params.oldValue != params.newValue) { 1292 if (name == HTMLNames::slotAttr && params.oldValue != params.newValue) {
1293 if (ShadowRoot* root = v1ShadowRootOfParent()) 1293 if (ShadowRoot* root = v1ShadowRootOfParent())
1294 root->didChangeHostChildSlotName(params.oldValue, params.newValue); 1294 root->didChangeHostChildSlotName(params.oldValue, params.newValue);
1295 } 1295 }
1296 1296
1297 parseAttribute(params); 1297 parseAttribute(params);
1298 1298
1299 document().incDOMTreeVersion(); 1299 document().incDOMTreeVersion();
1300 document().notifyChangeAttribute(*this);
1300 1301
1301 if (name == HTMLNames::idAttr) { 1302 if (name == HTMLNames::idAttr) {
1302 AtomicString oldId = elementData()->idForStyleResolution(); 1303 AtomicString oldId = elementData()->idForStyleResolution();
1303 AtomicString newId = 1304 AtomicString newId =
1304 makeIdForStyleResolution(params.newValue, document().inQuirksMode()); 1305 makeIdForStyleResolution(params.newValue, document().inQuirksMode());
1305 if (newId != oldId) { 1306 if (newId != oldId) {
1306 elementData()->setIdForStyleResolution(newId); 1307 elementData()->setIdForStyleResolution(newId);
1307 document().styleEngine().idChangedForElement(oldId, newId, *this); 1308 document().styleEngine().idChangedForElement(oldId, newId, *this);
1308 } 1309 }
1309 } else if (name == classAttr) { 1310 } else if (name == classAttr) {
(...skipping 2814 matching lines...) Expand 10 before | Expand all | Expand 10 after
4124 } 4125 }
4125 4126
4126 DEFINE_TRACE_WRAPPERS(Element) { 4127 DEFINE_TRACE_WRAPPERS(Element) {
4127 if (hasRareData()) { 4128 if (hasRareData()) {
4128 visitor->traceWrappers(elementRareData()); 4129 visitor->traceWrappers(elementRareData());
4129 } 4130 }
4130 ContainerNode::traceWrappers(visitor); 4131 ContainerNode::traceWrappers(visitor);
4131 } 4132 }
4132 4133
4133 } // namespace blink 4134 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentTest.cpp ('k') | third_party/WebKit/Source/core/dom/SynchronousMutationNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698