| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 return m_private->focused(); | 162 return m_private->focused(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 bool WebNode::remove() | 165 bool WebNode::remove() |
| 166 { | 166 { |
| 167 TrackExceptionState exceptionState; | 167 TrackExceptionState exceptionState; |
| 168 m_private->remove(exceptionState); | 168 m_private->remove(exceptionState); |
| 169 return !exceptionState.hadException(); | 169 return !exceptionState.hadException(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 bool WebNode::hasNonEmptyBoundingBox() const | |
| 173 { | |
| 174 m_private->document().updateLayout(); | |
| 175 return m_private->hasNonEmptyBoundingBox(); | |
| 176 } | |
| 177 | |
| 178 bool WebNode::containsIncludingShadowDOM(const WebNode& other) const | 172 bool WebNode::containsIncludingShadowDOM(const WebNode& other) const |
| 179 { | 173 { |
| 180 return m_private->containsIncludingShadowDOM(other.m_private.get()); | 174 return m_private->containsIncludingShadowDOM(other.m_private.get()); |
| 181 } | 175 } |
| 182 | 176 |
| 183 WebElement WebNode::shadowHost() const | 177 WebElement WebNode::shadowHost() const |
| 184 { | 178 { |
| 185 if (isNull()) | 179 if (isNull()) |
| 186 return WebElement(); | 180 return WebElement(); |
| 187 const Node* coreNode = constUnwrap<Node>(); | 181 const Node* coreNode = constUnwrap<Node>(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 198 m_private = node; | 192 m_private = node; |
| 199 return *this; | 193 return *this; |
| 200 } | 194 } |
| 201 | 195 |
| 202 WebNode::operator PassRefPtr<Node>() const | 196 WebNode::operator PassRefPtr<Node>() const |
| 203 { | 197 { |
| 204 return m_private.get(); | 198 return m_private.get(); |
| 205 } | 199 } |
| 206 | 200 |
| 207 } // namespace blink | 201 } // namespace blink |
| OLD | NEW |