OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |