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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #include "core/html/HTMLTableRowsCollection.h" | 84 #include "core/html/HTMLTableRowsCollection.h" |
85 #include "core/html/HTMLTemplateElement.h" | 85 #include "core/html/HTMLTemplateElement.h" |
86 #include "core/html/parser/HTMLParserIdioms.h" | 86 #include "core/html/parser/HTMLParserIdioms.h" |
87 #include "core/inspector/InspectorInstrumentation.h" | 87 #include "core/inspector/InspectorInstrumentation.h" |
88 #include "core/page/FocusController.h" | 88 #include "core/page/FocusController.h" |
89 #include "core/page/Page.h" | 89 #include "core/page/Page.h" |
90 #include "core/page/PointerLockController.h" | 90 #include "core/page/PointerLockController.h" |
91 #include "core/rendering/FlowThreadController.h" | 91 #include "core/rendering/FlowThreadController.h" |
92 #include "core/rendering/RenderNamedFlowFragment.h" | 92 #include "core/rendering/RenderNamedFlowFragment.h" |
93 #include "core/rendering/RenderView.h" | 93 #include "core/rendering/RenderView.h" |
94 #include "core/rendering/RenderWidget.h" | |
95 #include "core/svg/SVGDocumentExtensions.h" | 94 #include "core/svg/SVGDocumentExtensions.h" |
96 #include "core/svg/SVGElement.h" | 95 #include "core/svg/SVGElement.h" |
97 #include "wtf/BitVector.h" | 96 #include "wtf/BitVector.h" |
98 #include "wtf/HashFunctions.h" | 97 #include "wtf/HashFunctions.h" |
99 #include "wtf/text/CString.h" | 98 #include "wtf/text/CString.h" |
100 #include "wtf/text/TextPosition.h" | 99 #include "wtf/text/TextPosition.h" |
101 | 100 |
102 namespace WebCore { | 101 namespace WebCore { |
103 | 102 |
104 using namespace HTMLNames; | 103 using namespace HTMLNames; |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 } | 1409 } |
1411 | 1410 |
1412 void Element::unregisterNamedFlowContentNode() | 1411 void Element::unregisterNamedFlowContentNode() |
1413 { | 1412 { |
1414 if (RuntimeEnabledFeatures::cssRegionsEnabled() && inNamedFlow() && document
().renderView()) | 1413 if (RuntimeEnabledFeatures::cssRegionsEnabled() && inNamedFlow() && document
().renderView()) |
1415 document().renderView()->flowThreadController()->unregisterNamedFlowCont
entNode(this); | 1414 document().renderView()->flowThreadController()->unregisterNamedFlowCont
entNode(this); |
1416 } | 1415 } |
1417 | 1416 |
1418 void Element::detach(const AttachContext& context) | 1417 void Element::detach(const AttachContext& context) |
1419 { | 1418 { |
1420 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; | 1419 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates; |
1421 unregisterNamedFlowContentNode(); | 1420 unregisterNamedFlowContentNode(); |
1422 cancelFocusAppearanceUpdate(); | 1421 cancelFocusAppearanceUpdate(); |
1423 removeCallbackSelectors(); | 1422 removeCallbackSelectors(); |
1424 if (hasRareData()) { | 1423 if (hasRareData()) { |
1425 ElementRareData* data = elementRareData(); | 1424 ElementRareData* data = elementRareData(); |
1426 data->setPseudoElement(BEFORE, 0); | 1425 data->setPseudoElement(BEFORE, 0); |
1427 data->setPseudoElement(AFTER, 0); | 1426 data->setPseudoElement(AFTER, 0); |
1428 data->setPseudoElement(BACKDROP, 0); | 1427 data->setPseudoElement(BACKDROP, 0); |
1429 data->setIsInsideRegion(false); | 1428 data->setIsInsideRegion(false); |
1430 | 1429 |
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3536 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3535 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
3537 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3536 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
3538 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3537 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
3539 return false; | 3538 return false; |
3540 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3539 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3541 return false; | 3540 return false; |
3542 return true; | 3541 return true; |
3543 } | 3542 } |
3544 | 3543 |
3545 } // namespace WebCore | 3544 } // namespace WebCore |
OLD | NEW |