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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 mode = on; | 104 mode = on; |
105 else if (equalIgnoringCase(value, "off")) | 105 else if (equalIgnoringCase(value, "off")) |
106 mode = off; | 106 mode = off; |
107 else | 107 else |
108 mode = inherit; | 108 mode = inherit; |
109 Document::setDesignMode(mode); | 109 Document::setDesignMode(mode); |
110 } | 110 } |
111 | 111 |
112 Element* HTMLDocument::activeElement() | 112 Element* HTMLDocument::activeElement() |
113 { | 113 { |
114 if (Element* element = treeScope().adjustedFocusedElement()) | 114 if (Element* element = treeScope()->adjustedFocusedElement()) |
115 return element; | 115 return element; |
116 return body(); | 116 return body(); |
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()) |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 } | 326 } |
327 | 327 |
328 void HTMLDocument::clear() | 328 void HTMLDocument::clear() |
329 { | 329 { |
330 // FIXME: This does nothing, and that seems unlikely to be correct. | 330 // FIXME: This does nothing, and that seems unlikely to be correct. |
331 // We've long had a comment saying that IE doesn't support this. | 331 // We've long had a comment saying that IE doesn't support this. |
332 // But I do see it in the documentation for Mozilla. | 332 // But I do see it in the documentation for Mozilla. |
333 } | 333 } |
334 | 334 |
335 } | 335 } |
OLD | NEW |