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

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: Handle shared-renderer case. Created 6 years, 8 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #include "core/html/HTMLOptionsCollection.h" 89 #include "core/html/HTMLOptionsCollection.h"
90 #include "core/html/HTMLTableRowsCollection.h" 90 #include "core/html/HTMLTableRowsCollection.h"
91 #include "core/html/HTMLTemplateElement.h" 91 #include "core/html/HTMLTemplateElement.h"
92 #include "core/html/parser/HTMLParserIdioms.h" 92 #include "core/html/parser/HTMLParserIdioms.h"
93 #include "core/inspector/InspectorInstrumentation.h" 93 #include "core/inspector/InspectorInstrumentation.h"
94 #include "core/page/FocusController.h" 94 #include "core/page/FocusController.h"
95 #include "core/page/Page.h" 95 #include "core/page/Page.h"
96 #include "core/page/PointerLockController.h" 96 #include "core/page/PointerLockController.h"
97 #include "core/rendering/RenderLayer.h" 97 #include "core/rendering/RenderLayer.h"
98 #include "core/rendering/RenderView.h" 98 #include "core/rendering/RenderView.h"
99 #include "core/rendering/RenderWidget.h"
100 #include "core/svg/SVGDocumentExtensions.h" 99 #include "core/svg/SVGDocumentExtensions.h"
101 #include "core/svg/SVGElement.h" 100 #include "core/svg/SVGElement.h"
102 #include "platform/scroll/ScrollableArea.h" 101 #include "platform/scroll/ScrollableArea.h"
103 #include "wtf/BitVector.h" 102 #include "wtf/BitVector.h"
104 #include "wtf/HashFunctions.h" 103 #include "wtf/HashFunctions.h"
105 #include "wtf/text/CString.h" 104 #include "wtf/text/CString.h"
106 #include "wtf/text/StringBuilder.h" 105 #include "wtf/text/StringBuilder.h"
107 #include "wtf/text/TextPosition.h" 106 #include "wtf/text/TextPosition.h"
108 107
109 namespace WebCore { 108 namespace WebCore {
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 activeAnimations->setAnimationStyleChange(false); 1406 activeAnimations->setAnimationStyleChange(false);
1408 } 1407 }
1409 } 1408 }
1410 } 1409 }
1411 1410
1412 InspectorInstrumentation::didRecalculateStyleForElement(this); 1411 InspectorInstrumentation::didRecalculateStyleForElement(this);
1413 } 1412 }
1414 1413
1415 void Element::detach(const AttachContext& context) 1414 void Element::detach(const AttachContext& context)
1416 { 1415 {
1417 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; 1416 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates;
1418 cancelFocusAppearanceUpdate(); 1417 cancelFocusAppearanceUpdate();
1419 removeCallbackSelectors(); 1418 removeCallbackSelectors();
1420 if (needsLayerUpdate()) 1419 if (needsLayerUpdate())
1421 document().unscheduleLayerUpdate(*this); 1420 document().unscheduleLayerUpdate(*this);
1422 if (hasRareData()) { 1421 if (hasRareData()) {
1423 ElementRareData* data = elementRareData(); 1422 ElementRareData* data = elementRareData();
1424 data->clearPseudoElements(); 1423 data->clearPseudoElements();
1425 1424
1426 // attach() will perform the below steps for us when inside recalcStyle. 1425 // attach() will perform the below steps for us when inside recalcStyle.
1427 if (!document().inStyleRecalc()) { 1426 if (!document().inStyleRecalc()) {
(...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after
3352 || isHTMLObjectElement(*this) 3351 || isHTMLObjectElement(*this)
3353 || isHTMLAppletElement(*this) 3352 || isHTMLAppletElement(*this)
3354 || isHTMLCanvasElement(*this)) 3353 || isHTMLCanvasElement(*this))
3355 return false; 3354 return false;
3356 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3355 if (FullscreenElementStack::isActiveFullScreenElement(this))
3357 return false; 3356 return false;
3358 return true; 3357 return true;
3359 } 3358 }
3360 3359
3361 } // namespace WebCore 3360 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698