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

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

Issue 1489433002: Support the essential part of Shadow DOM v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert Internals.* Created 5 years 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. 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 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 { 1554 {
1555 ASSERT(document().inStyleRecalc()); 1555 ASSERT(document().inStyleRecalc());
1556 1556
1557 // We've already been through detach when doing an attach, but we might 1557 // We've already been through detach when doing an attach, but we might
1558 // need to clear any state that's been added since then. 1558 // need to clear any state that's been added since then.
1559 if (hasRareData() && styleChangeType() == NeedsReattachStyleChange) { 1559 if (hasRareData() && styleChangeType() == NeedsReattachStyleChange) {
1560 ElementRareData* data = elementRareData(); 1560 ElementRareData* data = elementRareData();
1561 data->clearComputedStyle(); 1561 data->clearComputedStyle();
1562 } 1562 }
1563 1563
1564 if (!isActiveInsertionPoint(*this)) 1564 if (!isSlotOrActiveInsertionPoint())
1565 LayoutTreeBuilderForElement(*this, context.resolvedStyle).createLayoutOb jectIfNeeded(); 1565 LayoutTreeBuilderForElement(*this, context.resolvedStyle).createLayoutOb jectIfNeeded();
1566 1566
1567 addCallbackSelectors(); 1567 addCallbackSelectors();
1568 1568
1569 if (hasRareData() && !layoutObject()) { 1569 if (hasRareData() && !layoutObject()) {
1570 if (ElementAnimations* elementAnimations = elementRareData()->elementAni mations()) { 1570 if (ElementAnimations* elementAnimations = elementRareData()->elementAni mations()) {
1571 elementAnimations->cssAnimations().cancel(); 1571 elementAnimations->cssAnimations().cancel();
1572 elementAnimations->setAnimationStyleChange(false); 1572 elementAnimations->setAnimationStyleChange(false);
1573 } 1573 }
1574 } 1574 }
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
3639 { 3639 {
3640 #if ENABLE(OILPAN) 3640 #if ENABLE(OILPAN)
3641 if (hasRareData()) 3641 if (hasRareData())
3642 visitor->trace(elementRareData()); 3642 visitor->trace(elementRareData());
3643 visitor->trace(m_elementData); 3643 visitor->trace(m_elementData);
3644 #endif 3644 #endif
3645 ContainerNode::trace(visitor); 3645 ContainerNode::trace(visitor);
3646 } 3646 }
3647 3647
3648 } // namespace blink 3648 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698