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

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

Issue 1129673002: Remove support for pseudo classes in <content select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix more tests. Created 5 years, 7 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
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 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after
1790 { 1790 {
1791 return ensureElementRareData().ensureShadow(); 1791 return ensureElementRareData().ensureShadow();
1792 } 1792 }
1793 1793
1794 void Element::pseudoStateChanged(CSSSelector::PseudoType pseudo) 1794 void Element::pseudoStateChanged(CSSSelector::PseudoType pseudo)
1795 { 1795 {
1796 StyleResolver* styleResolver = document().styleResolver(); 1796 StyleResolver* styleResolver = document().styleResolver();
1797 1797
1798 if (inActiveDocument() && styleResolver && styleChangeType() < SubtreeStyleC hange) 1798 if (inActiveDocument() && styleResolver && styleChangeType() < SubtreeStyleC hange)
1799 document().styleEngine().pseudoStateChangedForElement(pseudo, *this); 1799 document().styleEngine().pseudoStateChangedForElement(pseudo, *this);
1800
1801 if (ElementShadow* elementShadow = shadowWhereNodeCanBeDistributed(*this))
1802 elementShadow->distributedNodePseudoStateChanged(pseudo);
1803 } 1800 }
1804 1801
1805 void Element::setAnimationStyleChange(bool animationStyleChange) 1802 void Element::setAnimationStyleChange(bool animationStyleChange)
1806 { 1803 {
1807 if (animationStyleChange && document().inStyleRecalc()) 1804 if (animationStyleChange && document().inStyleRecalc())
1808 return; 1805 return;
1809 if (!hasRareData()) 1806 if (!hasRareData())
1810 return; 1807 return;
1811 if (ElementAnimations* elementAnimations = elementRareData()->elementAnimati ons()) 1808 if (ElementAnimations* elementAnimations = elementRareData()->elementAnimati ons())
1812 elementAnimations->setAnimationStyleChange(animationStyleChange); 1809 elementAnimations->setAnimationStyleChange(animationStyleChange);
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
3512 { 3509 {
3513 #if ENABLE(OILPAN) 3510 #if ENABLE(OILPAN)
3514 if (hasRareData()) 3511 if (hasRareData())
3515 visitor->trace(elementRareData()); 3512 visitor->trace(elementRareData());
3516 visitor->trace(m_elementData); 3513 visitor->trace(m_elementData);
3517 #endif 3514 #endif
3518 ContainerNode::trace(visitor); 3515 ContainerNode::trace(visitor);
3519 } 3516 }
3520 3517
3521 } // namespace blink 3518 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698