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

Side by Side Diff: Source/core/html/HTMLFrameElement.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/HTMLFieldSetElement.cpp ('k') | Source/core/html/HTMLFrameSetElement.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 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 bool HTMLFrameElement::rendererIsNeeded(const NodeRenderingContext&) 49 bool HTMLFrameElement::rendererIsNeeded(const NodeRenderingContext&)
50 { 50 {
51 // For compatibility, frames render even when display: none is set. 51 // For compatibility, frames render even when display: none is set.
52 return isURLAllowed(); 52 return isURLAllowed();
53 } 53 }
54 54
55 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*) 55 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*)
56 { 56 {
57 return new (document()->renderArena()) RenderFrame(this); 57 return new RenderFrame(this);
58 } 58 }
59 59
60 static inline HTMLFrameSetElement* containingFrameSetElement(Node* node) 60 static inline HTMLFrameSetElement* containingFrameSetElement(Node* node)
61 { 61 {
62 while ((node = node->parentNode())) { 62 while ((node = node->parentNode())) {
63 if (node->hasTagName(framesetTag)) 63 if (node->hasTagName(framesetTag))
64 return static_cast<HTMLFrameSetElement*>(node); 64 return static_cast<HTMLFrameSetElement*>(node);
65 } 65 }
66 return 0; 66 return 0;
67 } 67 }
(...skipping 20 matching lines...) Expand all
88 m_frameBorderSet = !value.isNull(); 88 m_frameBorderSet = !value.isNull();
89 // FIXME: If we are already attached, this has no effect. 89 // FIXME: If we are already attached, this has no effect.
90 } else if (name == noresizeAttr) { 90 } else if (name == noresizeAttr) {
91 if (renderer()) 91 if (renderer())
92 renderer()->updateFromElement(); 92 renderer()->updateFromElement();
93 } else 93 } else
94 HTMLFrameElementBase::parseAttribute(name, value); 94 HTMLFrameElementBase::parseAttribute(name, value);
95 } 95 }
96 96
97 } // namespace WebCore 97 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFieldSetElement.cpp ('k') | Source/core/html/HTMLFrameSetElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698