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

Side by Side Diff: Source/core/html/HTMLBodyElement.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/HTMLBaseElement.cpp ('k') | Source/core/html/HTMLButtonElement.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, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
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 27 matching lines...) Expand all
38 #include "core/html/parser/HTMLParserIdioms.h" 38 #include "core/html/parser/HTMLParserIdioms.h"
39 #include "core/rendering/RenderBox.h" 39 #include "core/rendering/RenderBox.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 using namespace HTMLNames; 43 using namespace HTMLNames;
44 44
45 inline HTMLBodyElement::HTMLBodyElement(Document& document) 45 inline HTMLBodyElement::HTMLBodyElement(Document& document)
46 : HTMLElement(bodyTag, document) 46 : HTMLElement(bodyTag, document)
47 { 47 {
48 ScriptWrappable::init(this);
49 } 48 }
50 49
51 DEFINE_NODE_FACTORY(HTMLBodyElement) 50 DEFINE_NODE_FACTORY(HTMLBodyElement)
52 51
53 HTMLBodyElement::~HTMLBodyElement() 52 HTMLBodyElement::~HTMLBodyElement()
54 { 53 {
55 } 54 }
56 55
57 bool HTMLBodyElement::isPresentationAttribute(const QualifiedName& name) const 56 bool HTMLBodyElement::isPresentationAttribute(const QualifiedName& name) const
58 { 57 {
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 int HTMLBodyElement::scrollWidth() 326 int HTMLBodyElement::scrollWidth()
328 { 327 {
329 // Update the document's layout. 328 // Update the document's layout.
330 Document& document = this->document(); 329 Document& document = this->document();
331 document.updateLayoutIgnorePendingStylesheets(); 330 document.updateLayoutIgnorePendingStylesheets();
332 FrameView* view = document.view(); 331 FrameView* view = document.view();
333 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; 332 return view ? adjustForZoom(view->contentsWidth(), &document) : 0;
334 } 333 }
335 334
336 } // namespace blink 335 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/HTMLBaseElement.cpp ('k') | Source/core/html/HTMLButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698