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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests build 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
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 * 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 24 matching lines...) Expand all
35 #include "core/page/FocusController.h" 35 #include "core/page/FocusController.h"
36 #include "core/page/Frame.h" 36 #include "core/page/Frame.h"
37 #include "core/page/FrameView.h" 37 #include "core/page/FrameView.h"
38 #include "core/page/Page.h" 38 #include "core/page/Page.h"
39 #include "core/rendering/RenderPart.h" 39 #include "core/rendering/RenderPart.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 using namespace HTMLNames; 43 using namespace HTMLNames;
44 44
45 HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Documen t* document) 45 HTMLFrameElementBase::HTMLFrameElementBase(const QualifiedName& tagName, Documen t& document)
46 : HTMLFrameOwnerElement(tagName, document) 46 : HTMLFrameOwnerElement(tagName, document)
47 , m_scrolling(ScrollbarAuto) 47 , m_scrolling(ScrollbarAuto)
48 , m_marginWidth(-1) 48 , m_marginWidth(-1)
49 , m_marginHeight(-1) 49 , m_marginHeight(-1)
50 { 50 {
51 } 51 }
52 52
53 bool HTMLFrameElementBase::isURLAllowed() const 53 bool HTMLFrameElementBase::isURLAllowed() const
54 { 54 {
55 if (m_URL.isEmpty()) 55 if (m_URL.isEmpty())
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 int HTMLFrameElementBase::height() 235 int HTMLFrameElementBase::height()
236 { 236 {
237 document().updateLayoutIgnorePendingStylesheets(); 237 document().updateLayoutIgnorePendingStylesheets();
238 if (!renderBox()) 238 if (!renderBox())
239 return 0; 239 return 0;
240 return renderBox()->height(); 240 return renderBox()->height();
241 } 241 }
242 242
243 } // namespace WebCore 243 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698