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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 WebURL WebDocument::openSearchDescriptionURL() const | 71 WebURL WebDocument::openSearchDescriptionURL() const |
72 { | 72 { |
73 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription
URL(); | 73 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription
URL(); |
74 } | 74 } |
75 | 75 |
76 WebLocalFrame* WebDocument::frame() const | 76 WebLocalFrame* WebDocument::frame() const |
77 { | 77 { |
78 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); | 78 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); |
79 } | 79 } |
80 | 80 |
81 WebElement WebDocument::documentElement() const | |
82 { | |
83 return WebElement(constUnwrap<Document>()->documentElement()); | |
84 } | |
85 | |
86 WebString WebDocument::title() const | 81 WebString WebDocument::title() const |
87 { | 82 { |
88 return WebString(constUnwrap<Document>()->title()); | 83 return WebString(constUnwrap<Document>()->title()); |
89 } | 84 } |
90 | 85 |
91 WebURL WebDocument::completeURL(const WebString& partialURL) const | 86 WebURL WebDocument::completeURL(const WebString& partialURL) const |
92 { | 87 { |
93 return constUnwrap<Document>()->completeURL(partialURL); | 88 return constUnwrap<Document>()->completeURL(partialURL); |
94 } | 89 } |
95 | 90 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 m_private = elem; | 127 m_private = elem; |
133 return *this; | 128 return *this; |
134 } | 129 } |
135 | 130 |
136 WebDocument::operator PassRefPtr<Document>() const | 131 WebDocument::operator PassRefPtr<Document>() const |
137 { | 132 { |
138 return toDocument(m_private.get()); | 133 return toDocument(m_private.get()); |
139 } | 134 } |
140 | 135 |
141 } // namespace blink | 136 } // namespace blink |
OLD | NEW |