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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 return WebString(constUnwrap<Element>()->computeInheritedLanguage()); | 145 return WebString(constUnwrap<Element>()->computeInheritedLanguage()); |
146 } | 146 } |
147 | 147 |
148 void WebElement::requestFullScreen() | 148 void WebElement::requestFullScreen() |
149 { | 149 { |
150 unwrap<Element>()->webkitRequestFullScreen(Element::ALLOW_KEYBOARD_INPUT); | 150 unwrap<Element>()->webkitRequestFullScreen(Element::ALLOW_KEYBOARD_INPUT); |
151 } | 151 } |
152 | 152 |
153 WebDocument WebElement::document() const | 153 WebDocument WebElement::document() const |
154 { | 154 { |
155 return WebDocument(constUnwrap<Element>()->document()); | 155 return WebDocument(&constUnwrap<Element>()->document()); |
156 } | 156 } |
157 | 157 |
158 WebRect WebElement::boundsInViewportSpace() | 158 WebRect WebElement::boundsInViewportSpace() |
159 { | 159 { |
160 return unwrap<Element>()->boundsInRootViewSpace(); | 160 return unwrap<Element>()->boundsInRootViewSpace(); |
161 } | 161 } |
162 | 162 |
163 WebImage WebElement::imageContents() | 163 WebImage WebElement::imageContents() |
164 { | 164 { |
165 if (isNull()) | 165 if (isNull()) |
(...skipping 20 matching lines...) Expand all Loading... |
186 m_private = elem; | 186 m_private = elem; |
187 return *this; | 187 return *this; |
188 } | 188 } |
189 | 189 |
190 WebElement::operator PassRefPtr<Element>() const | 190 WebElement::operator PassRefPtr<Element>() const |
191 { | 191 { |
192 return toElement(m_private.get()); | 192 return toElement(m_private.get()); |
193 } | 193 } |
194 | 194 |
195 } // namespace WebKit | 195 } // namespace WebKit |
OLD | NEW |