| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 WebString WebElement::computeInheritedLanguage() const | 136 WebString WebElement::computeInheritedLanguage() const |
| 137 { | 137 { |
| 138 return WebString(constUnwrap<Element>()->computeInheritedLanguage()); | 138 return WebString(constUnwrap<Element>()->computeInheritedLanguage()); |
| 139 } | 139 } |
| 140 | 140 |
| 141 void WebElement::requestFullScreen() | 141 void WebElement::requestFullScreen() |
| 142 { | 142 { |
| 143 } | 143 } |
| 144 | 144 |
| 145 WebRect WebElement::boundsInViewportSpace() | |
| 146 { | |
| 147 return unwrap<Element>()->boundsInRootViewSpace(); | |
| 148 } | |
| 149 | |
| 150 WebImage WebElement::imageContents() | 145 WebImage WebElement::imageContents() |
| 151 { | 146 { |
| 152 if (isNull()) | 147 if (isNull()) |
| 153 return WebImage(); | 148 return WebImage(); |
| 154 | 149 |
| 155 Image* image = unwrap<Element>()->imageContents(); | 150 Image* image = unwrap<Element>()->imageContents(); |
| 156 if (!image) | 151 if (!image) |
| 157 return WebImage(); | 152 return WebImage(); |
| 158 | 153 |
| 159 RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame(); | 154 RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 173 m_private = elem; | 168 m_private = elem; |
| 174 return *this; | 169 return *this; |
| 175 } | 170 } |
| 176 | 171 |
| 177 WebElement::operator PassRefPtr<Element>() const | 172 WebElement::operator PassRefPtr<Element>() const |
| 178 { | 173 { |
| 179 return toElement(m_private.get()); | 174 return toElement(m_private.get()); |
| 180 } | 175 } |
| 181 | 176 |
| 182 } // namespace blink | 177 } // namespace blink |
| OLD | NEW |