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

Side by Side Diff: Source/core/rendering/RenderPart.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/rendering/RenderPart.h ('k') | Source/core/rendering/RenderWidget.h » ('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) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 28 matching lines...) Expand all
39 namespace WebCore { 39 namespace WebCore {
40 40
41 RenderPart::RenderPart(Element* node) 41 RenderPart::RenderPart(Element* node)
42 : RenderWidget(node) 42 : RenderWidget(node)
43 { 43 {
44 setInline(false); 44 setInline(false);
45 } 45 }
46 46
47 RenderPart::~RenderPart() 47 RenderPart::~RenderPart()
48 { 48 {
49 clearWidget();
50 }
51
52 void RenderPart::setWidget(PassRefPtr<Widget> widget)
53 {
54 if (widget == this->widget())
55 return;
56
57 RenderWidget::setWidget(widget);
58 } 49 }
59 50
60 LayerType RenderPart::layerTypeRequired() const 51 LayerType RenderPart::layerTypeRequired() const
61 { 52 {
62 LayerType type = RenderWidget::layerTypeRequired(); 53 LayerType type = RenderWidget::layerTypeRequired();
63 if (type != NoLayer) 54 if (type != NoLayer)
64 return type; 55 return type;
65 56
66 return requiresAcceleratedCompositing() ? NormalLayer : NoLayer; 57 return requiresAcceleratedCompositing() ? NormalLayer : NoLayer;
67 } 58 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 134 }
144 135
145 CompositingReasons RenderPart::additionalCompositingReasons(CompositingTriggerFl ags) const 136 CompositingReasons RenderPart::additionalCompositingReasons(CompositingTriggerFl ags) const
146 { 137 {
147 if (requiresAcceleratedCompositing()) 138 if (requiresAcceleratedCompositing())
148 return CompositingReasonIFrame; 139 return CompositingReasonIFrame;
149 return CompositingReasonNone; 140 return CompositingReasonNone;
150 } 141 }
151 142
152 } 143 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderPart.h ('k') | Source/core/rendering/RenderWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698