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

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

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ASSERT on ownerElement->widget() == this causes many tests to fail. Created 7 years 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 } 1426 }
1428 1427
1429 void Element::unregisterNamedFlowContentNode() 1428 void Element::unregisterNamedFlowContentNode()
1430 { 1429 {
1431 if (RuntimeEnabledFeatures::cssRegionsEnabled() && inNamedFlow() && document ().renderView()) 1430 if (RuntimeEnabledFeatures::cssRegionsEnabled() && inNamedFlow() && document ().renderView())
1432 document().renderView()->flowThreadController()->unregisterNamedFlowCont entNode(this); 1431 document().renderView()->flowThreadController()->unregisterNamedFlowCont entNode(this);
1433 } 1432 }
1434 1433
1435 void Element::detach(const AttachContext& context) 1434 void Element::detach(const AttachContext& context)
1436 { 1435 {
1437 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; 1436 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates;
1438 unregisterNamedFlowContentNode(); 1437 unregisterNamedFlowContentNode();
1439 cancelFocusAppearanceUpdate(); 1438 cancelFocusAppearanceUpdate();
1440 removeCallbackSelectors(); 1439 removeCallbackSelectors();
1441 if (hasRareData()) { 1440 if (hasRareData()) {
1442 ElementRareData* data = elementRareData(); 1441 ElementRareData* data = elementRareData();
1443 data->setPseudoElement(BEFORE, 0); 1442 data->setPseudoElement(BEFORE, 0);
1444 data->setPseudoElement(AFTER, 0); 1443 data->setPseudoElement(AFTER, 0);
1445 data->setPseudoElement(BACKDROP, 0); 1444 data->setPseudoElement(BACKDROP, 0);
1446 data->setIsInsideRegion(false); 1445 data->setIsInsideRegion(false);
1447 1446
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
3647 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems 3646 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems
3648 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405 3647 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405
3649 if (hasTagName(optionTag) || hasTagName(optgroupTag)) 3648 if (hasTagName(optionTag) || hasTagName(optgroupTag))
3650 return false; 3649 return false;
3651 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3650 if (FullscreenElementStack::isActiveFullScreenElement(this))
3652 return false; 3651 return false;
3653 return true; 3652 return true;
3654 } 3653 }
3655 3654
3656 } // namespace WebCore 3655 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698