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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 117 } |
118 | 118 |
119 bool HTMLDocument::hasFocus() | 119 bool HTMLDocument::hasFocus() |
120 { | 120 { |
121 Page* page = this->page(); | 121 Page* page = this->page(); |
122 if (!page) | 122 if (!page) |
123 return false; | 123 return false; |
124 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 124 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
125 return false; | 125 return false; |
126 if (Frame* focusedFrame = page->focusController().focusedFrame()) { | 126 if (Frame* focusedFrame = page->focusController().focusedFrame()) { |
127 if (focusedFrame->tree()->isDescendantOf(frame())) | 127 if (focusedFrame->tree().isDescendantOf(frame())) |
128 return true; | 128 return true; |
129 } | 129 } |
130 return false; | 130 return false; |
131 } | 131 } |
132 | 132 |
133 HTMLBodyElement* HTMLDocument::htmlBodyElement() const | 133 HTMLBodyElement* HTMLDocument::htmlBodyElement() const |
134 { | 134 { |
135 HTMLElement* body = this->body(); | 135 HTMLElement* body = this->body(); |
136 return (body && body->hasTagName(bodyTag)) ? toHTMLBodyElement(body) : 0; | 136 return (body && body->hasTagName(bodyTag)) ? toHTMLBodyElement(body) : 0; |
137 } | 137 } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 } | 320 } |
321 | 321 |
322 void HTMLDocument::clear() | 322 void HTMLDocument::clear() |
323 { | 323 { |
324 // FIXME: This does nothing, and that seems unlikely to be correct. | 324 // FIXME: This does nothing, and that seems unlikely to be correct. |
325 // We've long had a comment saying that IE doesn't support this. | 325 // We've long had a comment saying that IE doesn't support this. |
326 // But I do see it in the documentation for Mozilla. | 326 // But I do see it in the documentation for Mozilla. |
327 } | 327 } |
328 | 328 |
329 } | 329 } |
OLD | NEW |