| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 WebURL WebDocument::openSearchDescriptionURL() const | 75 WebURL WebDocument::openSearchDescriptionURL() const |
| 76 { | 76 { |
| 77 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription
URL(); | 77 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription
URL(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 WebLocalFrame* WebDocument::frame() const | 80 WebLocalFrame* WebDocument::frame() const |
| 81 { | 81 { |
| 82 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); | 82 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); |
| 83 } | 83 } |
| 84 | 84 |
| 85 bool WebDocument::isHTMLDocument() const | |
| 86 { | |
| 87 return constUnwrap<Document>()->isHTMLDocument(); | |
| 88 } | |
| 89 | |
| 90 WebElement WebDocument::documentElement() const | 85 WebElement WebDocument::documentElement() const |
| 91 { | 86 { |
| 92 return WebElement(constUnwrap<Document>()->documentElement()); | 87 return WebElement(constUnwrap<Document>()->documentElement()); |
| 93 } | 88 } |
| 94 | 89 |
| 95 WebString WebDocument::title() const | 90 WebString WebDocument::title() const |
| 96 { | 91 { |
| 97 return WebString(constUnwrap<Document>()->title()); | 92 return WebString(constUnwrap<Document>()->title()); |
| 98 } | 93 } |
| 99 | 94 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 m_private = elem; | 136 m_private = elem; |
| 142 return *this; | 137 return *this; |
| 143 } | 138 } |
| 144 | 139 |
| 145 WebDocument::operator PassRefPtr<Document>() const | 140 WebDocument::operator PassRefPtr<Document>() const |
| 146 { | 141 { |
| 147 return toDocument(m_private.get()); | 142 return toDocument(m_private.get()); |
| 148 } | 143 } |
| 149 | 144 |
| 150 } // namespace blink | 145 } // namespace blink |
| OLD | NEW |