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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 WebURL WebDocument::completeURL(const WebString& partialURL) const | 189 WebURL WebDocument::completeURL(const WebString& partialURL) const |
190 { | 190 { |
191 return constUnwrap<Document>()->completeURL(partialURL); | 191 return constUnwrap<Document>()->completeURL(partialURL); |
192 } | 192 } |
193 | 193 |
194 WebElement WebDocument::getElementById(const WebString& id) const | 194 WebElement WebDocument::getElementById(const WebString& id) const |
195 { | 195 { |
196 return WebElement(constUnwrap<Document>()->getElementById(id)); | 196 return WebElement(constUnwrap<Document>()->getElementById(id)); |
197 } | 197 } |
198 | 198 |
199 WebNode WebDocument::focusedNode() const | |
200 { | |
201 return WebNode(constUnwrap<Document>()->focusedElement()); | |
202 } | |
203 | |
204 WebElement WebDocument::focusedElement() const | 199 WebElement WebDocument::focusedElement() const |
205 { | 200 { |
206 return WebElement(constUnwrap<Document>()->focusedElement()); | 201 return WebElement(constUnwrap<Document>()->focusedElement()); |
207 } | 202 } |
208 | 203 |
209 WebDocumentType WebDocument::doctype() const | 204 WebDocumentType WebDocument::doctype() const |
210 { | 205 { |
211 return WebDocumentType(constUnwrap<Document>()->doctype()); | 206 return WebDocumentType(constUnwrap<Document>()->doctype()); |
212 } | 207 } |
213 | 208 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 m_private = elem; | 310 m_private = elem; |
316 return *this; | 311 return *this; |
317 } | 312 } |
318 | 313 |
319 WebDocument::operator PassRefPtr<Document>() const | 314 WebDocument::operator PassRefPtr<Document>() const |
320 { | 315 { |
321 return toDocument(m_private.get()); | 316 return toDocument(m_private.get()); |
322 } | 317 } |
323 | 318 |
324 } // namespace blink | 319 } // namespace blink |
OLD | NEW |