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

Side by Side Diff: Source/core/html/HTMLFrameSetElement.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/HTMLFrameElement.cpp ('k') | Source/core/html/HTMLIFrameElement.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, 2009, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // For compatibility, frames render even when display: none is set. 152 // For compatibility, frames render even when display: none is set.
153 // However, we delay creating a renderer until stylesheets have loaded. 153 // However, we delay creating a renderer until stylesheets have loaded.
154 return context.style()->isStyleAvailable(); 154 return context.style()->isStyleAvailable();
155 } 155 }
156 156
157 RenderObject* HTMLFrameSetElement::createRenderer(RenderStyle *style) 157 RenderObject* HTMLFrameSetElement::createRenderer(RenderStyle *style)
158 { 158 {
159 if (style->hasContent()) 159 if (style->hasContent())
160 return RenderObject::createObject(this, style); 160 return RenderObject::createObject(this, style);
161 161
162 return new (document()->renderArena()) RenderFrameSet(this); 162 return new RenderFrameSet(this);
163 } 163 }
164 164
165 void HTMLFrameSetElement::attach(const AttachContext& context) 165 void HTMLFrameSetElement::attach(const AttachContext& context)
166 { 166 {
167 // Inherit default settings from parent frameset 167 // Inherit default settings from parent frameset
168 // FIXME: This is not dynamic. 168 // FIXME: This is not dynamic.
169 for (ContainerNode* node = parentNode(); node; node = node->parentNode()) { 169 for (ContainerNode* node = parentNode(); node; node = node->parentNode()) {
170 if (node->hasTagName(framesetTag)) { 170 if (node->hasTagName(framesetTag)) {
171 HTMLFrameSetElement* frameset = static_cast<HTMLFrameSetElement*>(no de); 171 HTMLFrameSetElement* frameset = static_cast<HTMLFrameSetElement*>(no de);
172 if (!m_frameborderSet) 172 if (!m_frameborderSet)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 Node* frameNode = children()->namedItem(name); 219 Node* frameNode = children()->namedItem(name);
220 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) 220 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag))
221 return 0; 221 return 0;
222 Document* document = static_cast<HTMLFrameElement*>(frameNode)->contentDocum ent(); 222 Document* document = static_cast<HTMLFrameElement*>(frameNode)->contentDocum ent();
223 if (!document || !document->frame()) 223 if (!document || !document->frame())
224 return 0; 224 return 0;
225 return document->domWindow(); 225 return document->domWindow();
226 } 226 }
227 227
228 } // namespace WebCore 228 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameElement.cpp ('k') | Source/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698