OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WebDocument.h" | 32 #include "WebDocument.h" |
33 | 33 |
34 #include "WebAXObject.h" | 34 #include "WebAXObject.h" |
35 #include "WebDOMEvent.h" | 35 #include "WebDOMEvent.h" |
36 #include "WebDocumentType.h" | 36 #include "WebDocumentType.h" |
37 #include "WebElement.h" | 37 #include "WebElement.h" |
38 #include "WebElementCollection.h" | 38 #include "WebElementCollection.h" |
39 #include "WebFormElement.h" | 39 #include "WebFormElement.h" |
40 #include "WebFrameImpl.h" | 40 #include "WebLocalFrameImpl.h" |
41 #include "WebNodeList.h" | 41 #include "WebNodeList.h" |
42 #include "bindings/v8/Dictionary.h" | 42 #include "bindings/v8/Dictionary.h" |
43 #include "bindings/v8/ExceptionState.h" | 43 #include "bindings/v8/ExceptionState.h" |
44 #include "bindings/v8/NewScriptState.h" | 44 #include "bindings/v8/NewScriptState.h" |
45 #include "bindings/v8/ScriptValue.h" | 45 #include "bindings/v8/ScriptValue.h" |
46 #include "core/accessibility/AXObjectCache.h" | 46 #include "core/accessibility/AXObjectCache.h" |
47 #include "core/css/CSSParserMode.h" | 47 #include "core/css/CSSParserMode.h" |
48 #include "core/css/StyleSheetContents.h" | 48 #include "core/css/StyleSheetContents.h" |
49 #include "core/dom/CSSSelectorWatch.h" | 49 #include "core/dom/CSSSelectorWatch.h" |
50 #include "core/dom/Document.h" | 50 #include "core/dom/Document.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 return constUnwrap<Document>()->referrer(); | 97 return constUnwrap<Document>()->referrer(); |
98 } | 98 } |
99 | 99 |
100 WebURL WebDocument::openSearchDescriptionURL() const | 100 WebURL WebDocument::openSearchDescriptionURL() const |
101 { | 101 { |
102 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription
URL(); | 102 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription
URL(); |
103 } | 103 } |
104 | 104 |
105 WebLocalFrame* WebDocument::frame() const | 105 WebLocalFrame* WebDocument::frame() const |
106 { | 106 { |
107 return WebFrameImpl::fromFrame(constUnwrap<Document>()->frame()); | 107 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); |
108 } | 108 } |
109 | 109 |
110 bool WebDocument::isHTMLDocument() const | 110 bool WebDocument::isHTMLDocument() const |
111 { | 111 { |
112 return constUnwrap<Document>()->isHTMLDocument(); | 112 return constUnwrap<Document>()->isHTMLDocument(); |
113 } | 113 } |
114 | 114 |
115 bool WebDocument::isXHTMLDocument() const | 115 bool WebDocument::isXHTMLDocument() const |
116 { | 116 { |
117 return constUnwrap<Document>()->isXHTMLDocument(); | 117 return constUnwrap<Document>()->isXHTMLDocument(); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 m_private = elem; | 311 m_private = elem; |
312 return *this; | 312 return *this; |
313 } | 313 } |
314 | 314 |
315 WebDocument::operator PassRefPtr<Document>() const | 315 WebDocument::operator PassRefPtr<Document>() const |
316 { | 316 { |
317 return toDocument(m_private.get()); | 317 return toDocument(m_private.get()); |
318 } | 318 } |
319 | 319 |
320 } // namespace blink | 320 } // namespace blink |
OLD | NEW |