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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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.h ('k') | Source/core/html/HTMLFrameSetElement.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) 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 22 matching lines...) Expand all
33 using namespace HTMLNames; 33 using namespace HTMLNames;
34 34
35 inline HTMLFrameElement::HTMLFrameElement(Document& document) 35 inline HTMLFrameElement::HTMLFrameElement(Document& document)
36 : HTMLFrameElementBase(frameTag, document) 36 : HTMLFrameElementBase(frameTag, document)
37 , m_frameBorder(true) 37 , m_frameBorder(true)
38 , m_frameBorderSet(false) 38 , m_frameBorderSet(false)
39 { 39 {
40 ScriptWrappable::init(this); 40 ScriptWrappable::init(this);
41 } 41 }
42 42
43 PassRefPtrWillBeRawPtr<HTMLFrameElement> HTMLFrameElement::create(Document& docu ment) 43 DEFINE_NODE_FACTORY(HTMLFrameElement)
44 {
45 return adoptRefWillBeRefCountedGarbageCollected(new HTMLFrameElement(documen t));
46 }
47 44
48 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&) 45 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&)
49 { 46 {
50 // For compatibility, frames render even when display: none is set. 47 // For compatibility, frames render even when display: none is set.
51 return isURLAllowed(); 48 return isURLAllowed();
52 } 49 }
53 50
54 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*) 51 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*)
55 { 52 {
56 return new RenderFrame(this); 53 return new RenderFrame(this);
(...skipping 21 matching lines...) Expand all
78 m_frameBorderSet = !value.isNull(); 75 m_frameBorderSet = !value.isNull();
79 // FIXME: If we are already attached, this has no effect. 76 // FIXME: If we are already attached, this has no effect.
80 } else if (name == noresizeAttr) { 77 } else if (name == noresizeAttr) {
81 if (renderer()) 78 if (renderer())
82 renderer()->updateFromElement(); 79 renderer()->updateFromElement();
83 } else 80 } else
84 HTMLFrameElementBase::parseAttribute(name, value); 81 HTMLFrameElementBase::parseAttribute(name, value);
85 } 82 }
86 83
87 } // namespace WebCore 84 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameElement.h ('k') | Source/core/html/HTMLFrameSetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698