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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 | 152 |
153 WebImage WebElement::imageContents() | 153 WebImage WebElement::imageContents() |
154 { | 154 { |
155 if (isNull()) | 155 if (isNull()) |
156 return WebImage(); | 156 return WebImage(); |
157 | 157 |
158 return WebImage(unwrap<Element>()->imageContents()); | 158 return WebImage(unwrap<Element>()->imageContents()); |
159 } | 159 } |
160 | 160 |
161 WebElement::WebElement(const RawPtr<Element>& elem) | 161 WebElement::WebElement(Element* elem) |
162 : WebNode(elem) | 162 : WebNode(elem) |
163 { | 163 { |
164 } | 164 } |
165 | 165 |
166 DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode()); | 166 DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode()); |
167 | 167 |
168 WebElement& WebElement::operator=(const RawPtr<Element>& elem) | 168 WebElement& WebElement::operator=(Element* elem) |
169 { | 169 { |
170 m_private = elem; | 170 m_private = elem; |
171 return *this; | 171 return *this; |
172 } | 172 } |
173 | 173 |
174 WebElement::operator RawPtr<Element>() const | 174 WebElement::operator Element*() const |
175 { | 175 { |
176 return toElement(m_private.get()); | 176 return toElement(m_private.get()); |
177 } | 177 } |
178 | 178 |
179 } // namespace blink | 179 } // namespace blink |
OLD | NEW |