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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 WebString WebDocument::referrer() const | 95 WebString WebDocument::referrer() const |
96 { | 96 { |
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 WebFrame* WebDocument::frame() const | 105 WebLocalFrame* WebDocument::frame() const |
106 { | 106 { |
107 return WebFrameImpl::fromFrame(constUnwrap<Document>()->frame()); | 107 return WebFrameImpl::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 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 m_private = elem; | 310 m_private = elem; |
311 return *this; | 311 return *this; |
312 } | 312 } |
313 | 313 |
314 WebDocument::operator PassRefPtr<Document>() const | 314 WebDocument::operator PassRefPtr<Document>() const |
315 { | 315 { |
316 return toDocument(m_private.get()); | 316 return toDocument(m_private.get()); |
317 } | 317 } |
318 | 318 |
319 } // namespace blink | 319 } // namespace blink |
OLD | NEW |