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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/HTMLImageElement.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 17 matching lines...) Expand all
28 #include "CSSPropertyNames.h" 28 #include "CSSPropertyNames.h"
29 #include "HTMLNames.h" 29 #include "HTMLNames.h"
30 #include "core/dom/NodeRenderingContext.h" 30 #include "core/dom/NodeRenderingContext.h"
31 #include "core/html/HTMLDocument.h" 31 #include "core/html/HTMLDocument.h"
32 #include "core/rendering/RenderIFrame.h" 32 #include "core/rendering/RenderIFrame.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 using namespace HTMLNames; 36 using namespace HTMLNames;
37 37
38 inline HTMLIFrameElement::HTMLIFrameElement(const QualifiedName& tagName, Docume nt* document) 38 inline HTMLIFrameElement::HTMLIFrameElement(const QualifiedName& tagName, Docume nt& document)
39 : HTMLFrameElementBase(tagName, document) 39 : HTMLFrameElementBase(tagName, document)
40 , m_didLoadNonEmptyDocument(false) 40 , m_didLoadNonEmptyDocument(false)
41 { 41 {
42 ASSERT(hasTagName(iframeTag)); 42 ASSERT(hasTagName(iframeTag));
43 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
44 setHasCustomStyleCallbacks(); 44 setHasCustomStyleCallbacks();
45 } 45 }
46 46
47 PassRefPtr<HTMLIFrameElement> HTMLIFrameElement::create(const QualifiedName& tag Name, Document* document) 47 PassRefPtr<HTMLIFrameElement> HTMLIFrameElement::create(const QualifiedName& tag Name, Document& document)
48 { 48 {
49 return adoptRef(new HTMLIFrameElement(tagName, document)); 49 return adoptRef(new HTMLIFrameElement(tagName, document));
50 } 50 }
51 51
52 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const 52 bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const
53 { 53 {
54 if (name == widthAttr || name == heightAttr || name == alignAttr || name == frameborderAttr || name == seamlessAttr) 54 if (name == widthAttr || name == heightAttr || name == alignAttr || name == frameborderAttr || name == seamlessAttr)
55 return true; 55 return true;
56 return HTMLFrameElementBase::isPresentationAttribute(name); 56 return HTMLFrameElementBase::isPresentationAttribute(name);
57 } 57 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/HTMLIFrameElement.h ('k') | Source/core/html/HTMLImageElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698