OLD | NEW |
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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 unregisterNamedFlowContentNode(); | 1344 unregisterNamedFlowContentNode(); |
1345 cancelFocusAppearanceUpdate(); | 1345 cancelFocusAppearanceUpdate(); |
1346 if (hasRareData()) { | 1346 if (hasRareData()) { |
1347 ElementRareData* data = elementRareData(); | 1347 ElementRareData* data = elementRareData(); |
1348 data->setPseudoElement(BEFORE, 0); | 1348 data->setPseudoElement(BEFORE, 0); |
1349 data->setPseudoElement(AFTER, 0); | 1349 data->setPseudoElement(AFTER, 0); |
1350 data->setIsInCanvasSubtree(false); | 1350 data->setIsInCanvasSubtree(false); |
1351 data->resetComputedStyle(); | 1351 data->resetComputedStyle(); |
1352 data->resetDynamicRestyleObservations(); | 1352 data->resetDynamicRestyleObservations(); |
1353 } | 1353 } |
1354 | 1354 if (ElementShadow* shadow = this->shadow()) |
1355 if (ElementShadow* shadow = this->shadow()) { | |
1356 detachChildrenIfNeeded(context); | |
1357 shadow->detach(context); | 1355 shadow->detach(context); |
1358 } | |
1359 ContainerNode::detach(context); | 1356 ContainerNode::detach(context); |
1360 } | 1357 } |
1361 | 1358 |
1362 bool Element::pseudoStyleCacheIsInvalid(const RenderStyle* currentStyle, RenderS
tyle* newStyle) | 1359 bool Element::pseudoStyleCacheIsInvalid(const RenderStyle* currentStyle, RenderS
tyle* newStyle) |
1363 { | 1360 { |
1364 ASSERT(currentStyle == renderStyle()); | 1361 ASSERT(currentStyle == renderStyle()); |
1365 ASSERT(renderer()); | 1362 ASSERT(renderer()); |
1366 | 1363 |
1367 if (!currentStyle) | 1364 if (!currentStyle) |
1368 return false; | 1365 return false; |
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3148 return 0; | 3145 return 0; |
3149 } | 3146 } |
3150 | 3147 |
3151 Attribute* UniqueElementData::attributeItem(unsigned index) | 3148 Attribute* UniqueElementData::attributeItem(unsigned index) |
3152 { | 3149 { |
3153 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3150 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
3154 return &m_attributeVector.at(index); | 3151 return &m_attributeVector.at(index); |
3155 } | 3152 } |
3156 | 3153 |
3157 } // namespace WebCore | 3154 } // namespace WebCore |
OLD | NEW |