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

Side by Side Diff: Source/core/html/HTMLIFrameElement.cpp

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLImageElement.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) 2000 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2009 Ericsson AB. All rights reserved. 7 * Copyright (C) 2009 Ericsson AB. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 HTMLFrameElementBase::parseAttribute(name, value); 97 HTMLFrameElementBase::parseAttribute(name, value);
98 } 98 }
99 99
100 bool HTMLIFrameElement::rendererIsNeeded(const NodeRenderingContext& context) 100 bool HTMLIFrameElement::rendererIsNeeded(const NodeRenderingContext& context)
101 { 101 {
102 return isURLAllowed() && context.style()->display() != NONE; 102 return isURLAllowed() && context.style()->display() != NONE;
103 } 103 }
104 104
105 RenderObject* HTMLIFrameElement::createRenderer(RenderStyle*) 105 RenderObject* HTMLIFrameElement::createRenderer(RenderStyle*)
106 { 106 {
107 return new (document()->renderArena()) RenderIFrame(this); 107 return new RenderIFrame(this);
108 } 108 }
109 109
110 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode * insertionPoint) 110 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode * insertionPoint)
111 { 111 {
112 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins ertionPoint); 112 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins ertionPoint);
113 if (insertionPoint->inDocument() && document()->isHTMLDocument() && !inserti onPoint->isInShadowTree()) 113 if (insertionPoint->inDocument() && document()->isHTMLDocument() && !inserti onPoint->isInShadowTree())
114 toHTMLDocument(document())->addExtraNamedItem(m_name); 114 toHTMLDocument(document())->addExtraNamedItem(m_name);
115 return result; 115 return result;
116 } 116 }
117 117
(...skipping 12 matching lines...) Expand all
130 void HTMLIFrameElement::didRecalcStyle(StyleChange styleChange) 130 void HTMLIFrameElement::didRecalcStyle(StyleChange styleChange)
131 { 131 {
132 if (!shouldDisplaySeamlessly()) 132 if (!shouldDisplaySeamlessly())
133 return; 133 return;
134 Document* childDocument = contentDocument(); 134 Document* childDocument = contentDocument();
135 if (shouldRecalcStyle(styleChange, childDocument)) 135 if (shouldRecalcStyle(styleChange, childDocument))
136 contentDocument()->recalcStyle(styleChange); 136 contentDocument()->recalcStyle(styleChange);
137 } 137 }
138 138
139 } 139 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698