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

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

Issue 15159008: Node::lazyAttach shouldn't lie about being attached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove commented out line in test Created 7 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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 parentPusher.push(); 1490 parentPusher.push();
1491 element->recalcStyle(change); 1491 element->recalcStyle(change);
1492 } 1492 }
1493 forceCheckOfNextElementSibling = childRulesChanged && hasDirectAdjacentR ules; 1493 forceCheckOfNextElementSibling = childRulesChanged && hasDirectAdjacentR ules;
1494 forceCheckOfAnyElementSibling = forceCheckOfAnyElementSibling || (childR ulesChanged && hasIndirectAdjacentRules); 1494 forceCheckOfAnyElementSibling = forceCheckOfAnyElementSibling || (childR ulesChanged && hasIndirectAdjacentRules);
1495 } 1495 }
1496 1496
1497 if (shouldRecalcStyle(change, this)) 1497 if (shouldRecalcStyle(change, this))
1498 updatePseudoElement(AFTER, change); 1498 updatePseudoElement(AFTER, change);
1499 1499
1500 setAttached();
1500 clearNeedsStyleRecalc(); 1501 clearNeedsStyleRecalc();
1501 clearChildNeedsStyleRecalc(); 1502 clearChildNeedsStyleRecalc();
1502 1503
1503 if (hasCustomStyleCallbacks()) 1504 if (hasCustomStyleCallbacks())
1504 didRecalcStyle(change); 1505 didRecalcStyle(change);
1505 InspectorInstrumentation::didRecalculateStyleForElement(this); 1506 InspectorInstrumentation::didRecalculateStyleForElement(this);
1506 } 1507 }
1507 1508
1508 ElementShadow* Element::shadow() const 1509 ElementShadow* Element::shadow() const
1509 { 1510 {
1510 return hasRareData() ? elementRareData()->shadow() : 0; 1511 return hasRareData() ? elementRareData()->shadow() : 0;
1511 } 1512 }
1512 1513
(...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after
3160 return 0; 3161 return 0;
3161 } 3162 }
3162 3163
3163 Attribute* UniqueElementData::attributeItem(unsigned index) 3164 Attribute* UniqueElementData::attributeItem(unsigned index)
3164 { 3165 {
3165 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); 3166 ASSERT_WITH_SECURITY_IMPLICATION(index < length());
3166 return &m_attributeVector.at(index); 3167 return &m_attributeVector.at(index);
3167 } 3168 }
3168 3169
3169 } // namespace WebCore 3170 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698