| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 if (index >= attributeCount()) | 136 if (index >= attributeCount()) |
| 137 return WebString(); | 137 return WebString(); |
| 138 return constUnwrap<Element>()->attributes().at(index).value(); | 138 return constUnwrap<Element>()->attributes().at(index).value(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 WebString WebElement::textContent() const | 141 WebString WebElement::textContent() const |
| 142 { | 142 { |
| 143 return constUnwrap<Element>()->textContent(); | 143 return constUnwrap<Element>()->textContent(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 WebString WebElement::innerHTML() const |
| 147 { |
| 148 return constUnwrap<Element>()->innerHTML(); |
| 149 } |
| 150 |
| 146 void WebElement::requestFullScreen() | 151 void WebElement::requestFullScreen() |
| 147 { | 152 { |
| 148 Element* element = unwrap<Element>(); | 153 Element* element = unwrap<Element>(); |
| 149 Fullscreen::from(element->document()).requestFullscreen(*element, Fullscreen
::PrefixedRequest); | 154 Fullscreen::from(element->document()).requestFullscreen(*element, Fullscreen
::PrefixedRequest); |
| 150 } | 155 } |
| 151 | 156 |
| 152 bool WebElement::hasNonEmptyLayoutSize() const | 157 bool WebElement::hasNonEmptyLayoutSize() const |
| 153 { | 158 { |
| 154 return constUnwrap<Element>()->hasNonEmptyLayoutSize(); | 159 return constUnwrap<Element>()->hasNonEmptyLayoutSize(); |
| 155 } | 160 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 185 m_private = elem; | 190 m_private = elem; |
| 186 return *this; | 191 return *this; |
| 187 } | 192 } |
| 188 | 193 |
| 189 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const | 194 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const |
| 190 { | 195 { |
| 191 return toElement(m_private.get()); | 196 return toElement(m_private.get()); |
| 192 } | 197 } |
| 193 | 198 |
| 194 } // namespace blink | 199 } // namespace blink |
| OLD | NEW |