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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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/HTMLFormElement.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 20 matching lines...) Expand all
31 31
32 namespace blink { 32 namespace blink {
33 33
34 using namespace HTMLNames; 34 using namespace HTMLNames;
35 35
36 inline HTMLFrameElement::HTMLFrameElement(Document& document) 36 inline HTMLFrameElement::HTMLFrameElement(Document& document)
37 : HTMLFrameElementBase(frameTag, document) 37 : HTMLFrameElementBase(frameTag, document)
38 , m_frameBorder(true) 38 , m_frameBorder(true)
39 , m_frameBorderSet(false) 39 , m_frameBorderSet(false)
40 { 40 {
41 ScriptWrappable::init(this);
42 } 41 }
43 42
44 DEFINE_NODE_FACTORY(HTMLFrameElement) 43 DEFINE_NODE_FACTORY(HTMLFrameElement)
45 44
46 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&) 45 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&)
47 { 46 {
48 // For compatibility, frames render even when display: none is set. 47 // For compatibility, frames render even when display: none is set.
49 return isURLAllowed(); 48 return isURLAllowed();
50 } 49 }
51 50
(...skipping 24 matching lines...) Expand all
76 m_frameBorderSet = !value.isNull(); 75 m_frameBorderSet = !value.isNull();
77 // FIXME: If we are already attached, this has no effect. 76 // FIXME: If we are already attached, this has no effect.
78 } else if (name == noresizeAttr) { 77 } else if (name == noresizeAttr) {
79 if (renderer()) 78 if (renderer())
80 renderer()->updateFromElement(); 79 renderer()->updateFromElement();
81 } else 80 } else
82 HTMLFrameElementBase::parseAttribute(name, value); 81 HTMLFrameElementBase::parseAttribute(name, value);
83 } 82 }
84 83
85 } // namespace blink 84 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/html/HTMLFrameSetElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698