| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "core/css/resolver/StyleResolverParentScope.h" | 46 #include "core/css/resolver/StyleResolverParentScope.h" |
| 47 #include "core/dom/Attr.h" | 47 #include "core/dom/Attr.h" |
| 48 #include "core/dom/CSSSelectorWatch.h" | 48 #include "core/dom/CSSSelectorWatch.h" |
| 49 #include "core/dom/ClientRect.h" | 49 #include "core/dom/ClientRect.h" |
| 50 #include "core/dom/ClientRectList.h" | 50 #include "core/dom/ClientRectList.h" |
| 51 #include "core/dom/DatasetDOMStringMap.h" | 51 #include "core/dom/DatasetDOMStringMap.h" |
| 52 #include "core/dom/ElementDataCache.h" | 52 #include "core/dom/ElementDataCache.h" |
| 53 #include "core/dom/ElementRareData.h" | 53 #include "core/dom/ElementRareData.h" |
| 54 #include "core/dom/ElementTraversal.h" | 54 #include "core/dom/ElementTraversal.h" |
| 55 #include "core/dom/ExceptionCode.h" | 55 #include "core/dom/ExceptionCode.h" |
| 56 #include "core/dom/FullscreenElementStack.h" | 56 #include "core/dom/Fullscreen.h" |
| 57 #include "core/dom/MutationObserverInterestGroup.h" | 57 #include "core/dom/MutationObserverInterestGroup.h" |
| 58 #include "core/dom/MutationRecord.h" | 58 #include "core/dom/MutationRecord.h" |
| 59 #include "core/dom/NamedNodeMap.h" | 59 #include "core/dom/NamedNodeMap.h" |
| 60 #include "core/dom/NodeRenderStyle.h" | 60 #include "core/dom/NodeRenderStyle.h" |
| 61 #include "core/dom/PresentationAttributeStyle.h" | 61 #include "core/dom/PresentationAttributeStyle.h" |
| 62 #include "core/dom/PseudoElement.h" | 62 #include "core/dom/PseudoElement.h" |
| 63 #include "core/dom/RenderTreeBuilder.h" | 63 #include "core/dom/RenderTreeBuilder.h" |
| 64 #include "core/dom/ScriptableDocumentParser.h" | 64 #include "core/dom/ScriptableDocumentParser.h" |
| 65 #include "core/dom/SelectorQuery.h" | 65 #include "core/dom/SelectorQuery.h" |
| 66 #include "core/dom/StyleEngine.h" | 66 #include "core/dom/StyleEngine.h" |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 | 1272 |
| 1273 void Element::removedFrom(ContainerNode* insertionPoint) | 1273 void Element::removedFrom(ContainerNode* insertionPoint) |
| 1274 { | 1274 { |
| 1275 bool wasInDocument = insertionPoint->inDocument(); | 1275 bool wasInDocument = insertionPoint->inDocument(); |
| 1276 | 1276 |
| 1277 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements()); | 1277 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements()); |
| 1278 | 1278 |
| 1279 if (containsFullScreenElement()) | 1279 if (containsFullScreenElement()) |
| 1280 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); | 1280 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); |
| 1281 | 1281 |
| 1282 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist
s(document())) | 1282 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document())) |
| 1283 fullscreen->elementRemoved(*this); | 1283 fullscreen->elementRemoved(*this); |
| 1284 | 1284 |
| 1285 if (document().page()) | 1285 if (document().page()) |
| 1286 document().page()->pointerLockController().elementRemoved(this); | 1286 document().page()->pointerLockController().elementRemoved(this); |
| 1287 | 1287 |
| 1288 setSavedLayerScrollOffset(IntSize()); | 1288 setSavedLayerScrollOffset(IntSize()); |
| 1289 | 1289 |
| 1290 if (insertionPoint->isInTreeScope() && treeScope() == document()) { | 1290 if (insertionPoint->isInTreeScope() && treeScope() == document()) { |
| 1291 const AtomicString& idValue = getIdAttribute(); | 1291 const AtomicString& idValue = getIdAttribute(); |
| 1292 if (!idValue.isNull()) | 1292 if (!idValue.isNull()) |
| (...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3232 return false; | 3232 return false; |
| 3233 if (isHTMLElement() && toHTMLElement(this)->hasDirectionAuto()) | 3233 if (isHTMLElement() && toHTMLElement(this)->hasDirectionAuto()) |
| 3234 return false; | 3234 return false; |
| 3235 if (hasActiveAnimations()) | 3235 if (hasActiveAnimations()) |
| 3236 return false; | 3236 return false; |
| 3237 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 3237 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
| 3238 // See comments in RenderObject::setStyle(). | 3238 // See comments in RenderObject::setStyle(). |
| 3239 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 3239 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
| 3240 if (isHTMLFrameElementBase(*this) || isHTMLPlugInElement(*this) || isHTMLCan
vasElement(*this)) | 3240 if (isHTMLFrameElementBase(*this) || isHTMLPlugInElement(*this) || isHTMLCan
vasElement(*this)) |
| 3241 return false; | 3241 return false; |
| 3242 if (FullscreenElementStack::isActiveFullScreenElement(*this)) | 3242 if (Fullscreen::isActiveFullScreenElement(*this)) |
| 3243 return false; | 3243 return false; |
| 3244 return true; | 3244 return true; |
| 3245 } | 3245 } |
| 3246 | 3246 |
| 3247 void Element::trace(Visitor* visitor) | 3247 void Element::trace(Visitor* visitor) |
| 3248 { | 3248 { |
| 3249 #if ENABLE(OILPAN) | 3249 #if ENABLE(OILPAN) |
| 3250 if (hasRareData()) | 3250 if (hasRareData()) |
| 3251 visitor->trace(elementRareData()); | 3251 visitor->trace(elementRareData()); |
| 3252 visitor->trace(m_elementData); | 3252 visitor->trace(m_elementData); |
| 3253 #endif | 3253 #endif |
| 3254 ContainerNode::trace(visitor); | 3254 ContainerNode::trace(visitor); |
| 3255 } | 3255 } |
| 3256 | 3256 |
| 3257 } // namespace blink | 3257 } // namespace blink |
| OLD | NEW |