| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 199 WebNode WebDocument::focusedNode() const |
| 200 { | 200 { |
| 201 return WebNode(constUnwrap<Document>()->focusedElement()); | 201 return WebNode(constUnwrap<Document>()->focusedElement()); |
| 202 } | 202 } |
| 203 | 203 |
| 204 WebElement WebDocument::focusedElement() const |
| 205 { |
| 206 return WebElement(constUnwrap<Document>()->focusedElement()); |
| 207 } |
| 208 |
| 204 WebDocumentType WebDocument::doctype() const | 209 WebDocumentType WebDocument::doctype() const |
| 205 { | 210 { |
| 206 return WebDocumentType(constUnwrap<Document>()->doctype()); | 211 return WebDocumentType(constUnwrap<Document>()->doctype()); |
| 207 } | 212 } |
| 208 | 213 |
| 209 void WebDocument::insertStyleSheet(const WebString& sourceCode) | 214 void WebDocument::insertStyleSheet(const WebString& sourceCode) |
| 210 { | 215 { |
| 211 RefPtr<Document> document = unwrap<Document>(); | 216 RefPtr<Document> document = unwrap<Document>(); |
| 212 ASSERT(document); | 217 ASSERT(document); |
| 213 RefPtrWillBeRawPtr<StyleSheetContents> parsedSheet = StyleSheetContents::cre
ate(CSSParserContext(*document.get(), 0)); | 218 RefPtrWillBeRawPtr<StyleSheetContents> parsedSheet = StyleSheetContents::cre
ate(CSSParserContext(*document.get(), 0)); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 m_private = elem; | 315 m_private = elem; |
| 311 return *this; | 316 return *this; |
| 312 } | 317 } |
| 313 | 318 |
| 314 WebDocument::operator PassRefPtr<Document>() const | 319 WebDocument::operator PassRefPtr<Document>() const |
| 315 { | 320 { |
| 316 return toDocument(m_private.get()); | 321 return toDocument(m_private.get()); |
| 317 } | 322 } |
| 318 | 323 |
| 319 } // namespace blink | 324 } // namespace blink |
| OLD | NEW |