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/HTMLIFrameElement.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/HTMLIFrameElement.h ('k') | Source/core/html/HTMLLIElement.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, 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 23 matching lines...) Expand all
34 34
35 using namespace HTMLNames; 35 using namespace HTMLNames;
36 36
37 inline HTMLIFrameElement::HTMLIFrameElement(Document& document) 37 inline HTMLIFrameElement::HTMLIFrameElement(Document& document)
38 : HTMLFrameElementBase(iframeTag, document) 38 : HTMLFrameElementBase(iframeTag, document)
39 , m_didLoadNonEmptyDocument(false) 39 , m_didLoadNonEmptyDocument(false)
40 { 40 {
41 ScriptWrappable::init(this); 41 ScriptWrappable::init(this);
42 } 42 }
43 43
44 PassRefPtrWillBeRawPtr<HTMLIFrameElement> HTMLIFrameElement::create(Document& do cument) 44 DEFINE_NODE_FACTORY(HTMLIFrameElement)
45 {
46 return adoptRefWillBeRefCountedGarbageCollected(new HTMLIFrameElement(docume nt));
47 }
48 45
49 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const 46 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const
50 { 47 {
51 if (name == widthAttr || name == heightAttr || name == alignAttr || name == frameborderAttr) 48 if (name == widthAttr || name == heightAttr || name == alignAttr || name == frameborderAttr)
52 return true; 49 return true;
53 return HTMLFrameElementBase::isPresentationAttribute(name); 50 return HTMLFrameElementBase::isPresentationAttribute(name);
54 } 51 }
55 52
56 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName & name, const AtomicString& value, MutableStylePropertySet* style) 53 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName & name, const AtomicString& value, MutableStylePropertySet* style)
57 { 54 {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio nPoint->isInShadowTree()) 112 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio nPoint->isInShadowTree())
116 toHTMLDocument(document()).removeExtraNamedItem(m_name); 113 toHTMLDocument(document()).removeExtraNamedItem(m_name);
117 } 114 }
118 115
119 bool HTMLIFrameElement::isInteractiveContent() const 116 bool HTMLIFrameElement::isInteractiveContent() const
120 { 117 {
121 return true; 118 return true;
122 } 119 }
123 120
124 } 121 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLIFrameElement.h ('k') | Source/core/html/HTMLLIElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698