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