| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 m_private->dispatchSimulatedClick(0); | 190 m_private->dispatchSimulatedClick(0); |
| 191 } | 191 } |
| 192 | 192 |
| 193 WebNodeList WebNode::getElementsByTagName(const WebString& tag) const | 193 WebNodeList WebNode::getElementsByTagName(const WebString& tag) const |
| 194 { | 194 { |
| 195 return WebNodeList(m_private->getElementsByTagName(tag)); | 195 return WebNodeList(m_private->getElementsByTagName(tag)); |
| 196 } | 196 } |
| 197 | 197 |
| 198 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst | 198 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst |
| 199 { | 199 { |
| 200 TrackExceptionState es; | 200 TrackExceptionState exceptionState; |
| 201 WebElement element(m_private->querySelector(tag, es)); | 201 WebElement element(m_private->querySelector(tag, exceptionState)); |
| 202 ec = es.code(); | 202 ec = exceptionState.code(); |
| 203 return element; | 203 return element; |
| 204 } | 204 } |
| 205 | 205 |
| 206 WebElement WebNode::rootEditableElement() const | 206 WebElement WebNode::rootEditableElement() const |
| 207 { | 207 { |
| 208 return WebElement(m_private->rootEditableElement()); | 208 return WebElement(m_private->rootEditableElement()); |
| 209 } | 209 } |
| 210 | 210 |
| 211 bool WebNode::focused() const | 211 bool WebNode::focused() const |
| 212 { | 212 { |
| 213 return m_private->focused(); | 213 return m_private->focused(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool WebNode::remove() | 216 bool WebNode::remove() |
| 217 { | 217 { |
| 218 TrackExceptionState es; | 218 TrackExceptionState exceptionState; |
| 219 m_private->remove(es); | 219 m_private->remove(exceptionState); |
| 220 return !es.hadException(); | 220 return !exceptionState.hadException(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 bool WebNode::hasNonEmptyBoundingBox() const | 223 bool WebNode::hasNonEmptyBoundingBox() const |
| 224 { | 224 { |
| 225 m_private->document().updateLayoutIgnorePendingStylesheets(); | 225 m_private->document().updateLayoutIgnorePendingStylesheets(); |
| 226 return m_private->hasNonEmptyBoundingBox(); | 226 return m_private->hasNonEmptyBoundingBox(); |
| 227 } | 227 } |
| 228 | 228 |
| 229 WebPluginContainer* WebNode::pluginContainer() const | 229 WebPluginContainer* WebNode::pluginContainer() const |
| 230 { | 230 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 260 m_private = node; | 260 m_private = node; |
| 261 return *this; | 261 return *this; |
| 262 } | 262 } |
| 263 | 263 |
| 264 WebNode::operator PassRefPtr<Node>() const | 264 WebNode::operator PassRefPtr<Node>() const |
| 265 { | 265 { |
| 266 return m_private.get(); | 266 return m_private.get(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace blink | 269 } // namespace blink |
| OLD | NEW |