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

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

Issue 23133006: Merge ContentDistributor into ElementShadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't find git copies Created 7 years, 4 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 if (hasRareData()) 1046 if (hasRareData())
1047 elementRareData()->clearClassListValueForQuirksMode(); 1047 elementRareData()->clearClassListValueForQuirksMode();
1048 1048
1049 if (shouldInvalidateStyle) 1049 if (shouldInvalidateStyle)
1050 setNeedsStyleRecalc(); 1050 setNeedsStyleRecalc();
1051 } 1051 }
1052 1052
1053 bool Element::shouldInvalidateDistributionWhenAttributeChanged(ElementShadow* el ementShadow, const QualifiedName& name, const AtomicString& newValue) 1053 bool Element::shouldInvalidateDistributionWhenAttributeChanged(ElementShadow* el ementShadow, const QualifiedName& name, const AtomicString& newValue)
1054 { 1054 {
1055 ASSERT(elementShadow); 1055 ASSERT(elementShadow);
1056 const SelectRuleFeatureSet& featureSet = elementShadow->distributor().ensure SelectFeatureSet(elementShadow); 1056 const SelectRuleFeatureSet& featureSet = elementShadow->ensureSelectFeatureS et();
1057 1057
1058 if (isIdAttributeName(name)) { 1058 if (isIdAttributeName(name)) {
1059 AtomicString oldId = elementData()->idForStyleResolution(); 1059 AtomicString oldId = elementData()->idForStyleResolution();
1060 AtomicString newId = makeIdForStyleResolution(newValue, document()->inQu irksMode()); 1060 AtomicString newId = makeIdForStyleResolution(newValue, document()->inQu irksMode());
1061 if (newId != oldId) { 1061 if (newId != oldId) {
1062 if (!oldId.isEmpty() && featureSet.hasSelectorForId(oldId)) 1062 if (!oldId.isEmpty() && featureSet.hasSelectorForId(oldId))
1063 return true; 1063 return true;
1064 if (!newId.isEmpty() && featureSet.hasSelectorForId(newId)) 1064 if (!newId.isEmpty() && featureSet.hasSelectorForId(newId))
1065 return true; 1065 return true;
1066 } 1066 }
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
3639 return 0; 3639 return 0;
3640 } 3640 }
3641 3641
3642 Attribute* UniqueElementData::attributeItem(unsigned index) 3642 Attribute* UniqueElementData::attributeItem(unsigned index)
3643 { 3643 {
3644 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); 3644 ASSERT_WITH_SECURITY_IMPLICATION(index < length());
3645 return &m_attributeVector.at(index); 3645 return &m_attributeVector.at(index);
3646 } 3646 }
3647 3647
3648 } // namespace WebCore 3648 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698