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 13 matching lines...) Expand all Loading... |
24 #include "core/html/HTMLBodyElement.h" | 24 #include "core/html/HTMLBodyElement.h" |
25 | 25 |
26 #include "bindings/core/v8/ScriptEventListener.h" | 26 #include "bindings/core/v8/ScriptEventListener.h" |
27 #include "core/CSSValueKeywords.h" | 27 #include "core/CSSValueKeywords.h" |
28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
29 #include "core/css/CSSImageValue.h" | 29 #include "core/css/CSSImageValue.h" |
30 #include "core/css/StylePropertySet.h" | 30 #include "core/css/StylePropertySet.h" |
31 #include "core/css/parser/CSSParser.h" | 31 #include "core/css/parser/CSSParser.h" |
32 #include "core/dom/Attribute.h" | 32 #include "core/dom/Attribute.h" |
33 #include "core/dom/StyleChangeReason.h" | 33 #include "core/dom/StyleChangeReason.h" |
34 #include "core/frame/UseCounter.h" | 34 #include "core/frame/LocalFrame.h" |
35 #include "core/html/HTMLFrameElementBase.h" | 35 #include "core/html/HTMLFrameElementBase.h" |
36 #include "core/html/parser/HTMLParserIdioms.h" | 36 #include "core/html/parser/HTMLParserIdioms.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 using namespace HTMLNames; | 40 using namespace HTMLNames; |
41 | 41 |
42 inline HTMLBodyElement::HTMLBodyElement(Document& document) | 42 inline HTMLBodyElement::HTMLBodyElement(Document& document) |
43 : HTMLElement(bodyTag, document) | 43 : HTMLElement(bodyTag, document) |
44 { | 44 { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 | 188 |
189 bool HTMLBodyElement::supportsFocus() const | 189 bool HTMLBodyElement::supportsFocus() const |
190 { | 190 { |
191 // This override is needed because the inherited method bails if the parent
is editable. | 191 // This override is needed because the inherited method bails if the parent
is editable. |
192 // The <body> should be focusable even if <html> is editable. | 192 // The <body> should be focusable even if <html> is editable. |
193 return hasEditableStyle() || HTMLElement::supportsFocus(); | 193 return hasEditableStyle() || HTMLElement::supportsFocus(); |
194 } | 194 } |
195 | 195 |
196 } // namespace blink | 196 } // namespace blink |
OLD | NEW |