| 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) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 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 22 matching lines...) Expand all Loading... |
| 33 class HTMLElement; | 33 class HTMLElement; |
| 34 | 34 |
| 35 class HTMLDocument : public Document, public CachedResourceClient { | 35 class HTMLDocument : public Document, public CachedResourceClient { |
| 36 public: | 36 public: |
| 37 static PassRefPtr<HTMLDocument> create(Frame* frame, const KURL& url) | 37 static PassRefPtr<HTMLDocument> create(Frame* frame, const KURL& url) |
| 38 { | 38 { |
| 39 return adoptRef(new HTMLDocument(frame, url)); | 39 return adoptRef(new HTMLDocument(frame, url)); |
| 40 } | 40 } |
| 41 virtual ~HTMLDocument(); | 41 virtual ~HTMLDocument(); |
| 42 | 42 |
| 43 int width(); | |
| 44 int height(); | |
| 45 | |
| 46 String dir(); | 43 String dir(); |
| 47 void setDir(const String&); | 44 void setDir(const String&); |
| 48 | 45 |
| 49 String designMode() const; | 46 String designMode() const; |
| 50 void setDesignMode(const String&); | 47 void setDesignMode(const String&); |
| 51 | 48 |
| 52 Element* activeElement(); | 49 Element* activeElement(); |
| 53 bool hasFocus(); | 50 bool hasFocus(); |
| 54 | 51 |
| 55 String bgColor(); | 52 String bgColor(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isHTMLDocument()); | 106 ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isHTMLDocument()); |
| 110 return static_cast<const HTMLDocument*>(document); | 107 return static_cast<const HTMLDocument*>(document); |
| 111 } | 108 } |
| 112 | 109 |
| 113 // This will catch anyone doing an unnecessary cast. | 110 // This will catch anyone doing an unnecessary cast. |
| 114 void toHTMLDocument(const HTMLDocument*); | 111 void toHTMLDocument(const HTMLDocument*); |
| 115 | 112 |
| 116 } // namespace WebCore | 113 } // namespace WebCore |
| 117 | 114 |
| 118 #endif // HTMLDocument_h | 115 #endif // HTMLDocument_h |
| OLD | NEW |