| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 { | 147 { |
| 148 Element* element = unwrap<Element>(); | 148 Element* element = unwrap<Element>(); |
| 149 Fullscreen::from(element->document()).requestFullscreen(*element, Fullscreen
::PrefixedRequest); | 149 Fullscreen::from(element->document()).requestFullscreen(*element, Fullscreen
::PrefixedRequest); |
| 150 } | 150 } |
| 151 | 151 |
| 152 bool WebElement::hasNonEmptyLayoutSize() const | 152 bool WebElement::hasNonEmptyLayoutSize() const |
| 153 { | 153 { |
| 154 return constUnwrap<Element>()->hasNonEmptyLayoutSize(); | 154 return constUnwrap<Element>()->hasNonEmptyLayoutSize(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 WebRect WebElement::boundsInViewportSpace() | 157 WebRect WebElement::boundsInViewport() |
| 158 { | 158 { |
| 159 return unwrap<Element>()->boundsInViewportSpace(); | 159 return unwrap<Element>()->boundsInViewport(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 WebImage WebElement::imageContents() | 162 WebImage WebElement::imageContents() |
| 163 { | 163 { |
| 164 if (isNull()) | 164 if (isNull()) |
| 165 return WebImage(); | 165 return WebImage(); |
| 166 | 166 |
| 167 return WebImage(unwrap<Element>()->imageContents()); | 167 return WebImage(unwrap<Element>()->imageContents()); |
| 168 } | 168 } |
| 169 | 169 |
| 170 WebElement::WebElement(const PassRefPtrWillBeRawPtr<Element>& elem) | 170 WebElement::WebElement(const PassRefPtrWillBeRawPtr<Element>& elem) |
| 171 : WebNode(elem) | 171 : WebNode(elem) |
| 172 { | 172 { |
| 173 } | 173 } |
| 174 | 174 |
| 175 DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode()); | 175 DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode()); |
| 176 | 176 |
| 177 WebElement& WebElement::operator=(const PassRefPtrWillBeRawPtr<Element>& elem) | 177 WebElement& WebElement::operator=(const PassRefPtrWillBeRawPtr<Element>& elem) |
| 178 { | 178 { |
| 179 m_private = elem; | 179 m_private = elem; |
| 180 return *this; | 180 return *this; |
| 181 } | 181 } |
| 182 | 182 |
| 183 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const | 183 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const |
| 184 { | 184 { |
| 185 return toElement(m_private.get()); | 185 return toElement(m_private.get()); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace blink | 188 } // namespace blink |
| OLD | NEW |