| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 case HasEditableAXRole: | 315 case HasEditableAXRole: |
| 316 return isEditableToAccessibility(RichlyEditable); | 316 return isEditableToAccessibility(RichlyEditable); |
| 317 } | 317 } |
| 318 ASSERT_NOT_REACHED(); | 318 ASSERT_NOT_REACHED(); |
| 319 return false; | 319 return false; |
| 320 } | 320 } |
| 321 | 321 |
| 322 virtual LayoutRect boundingBox() const; | 322 virtual LayoutRect boundingBox() const; |
| 323 IntRect pixelSnappedBoundingBox() const { return pixelSnappedIntRect(boundin
gBox()); } | 323 IntRect pixelSnappedBoundingBox() const { return pixelSnappedIntRect(boundin
gBox()); } |
| 324 | 324 |
| 325 // Returns true if the node has a non-empty bounding box in layout. | |
| 326 // This does not 100% guarantee the user can see it, but is pretty close. | |
| 327 // Note: This method only works properly after layout has occurred. | |
| 328 bool hasNonEmptyBoundingBox() const; | |
| 329 | |
| 330 unsigned nodeIndex() const; | 325 unsigned nodeIndex() const; |
| 331 | 326 |
| 332 // Returns the DOM ownerDocument attribute. This method never returns NULL,
except in the case | 327 // Returns the DOM ownerDocument attribute. This method never returns NULL,
except in the case |
| 333 // of a Document node. | 328 // of a Document node. |
| 334 Document* ownerDocument() const; | 329 Document* ownerDocument() const; |
| 335 | 330 |
| 336 // Returns the document associated with this node. A Document node returns i
tself. | 331 // Returns the document associated with this node. A Document node returns i
tself. |
| 337 Document& document() const | 332 Document& document() const |
| 338 { | 333 { |
| 339 return treeScope().document(); | 334 return treeScope().document(); |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 } // namespace blink | 678 } // namespace blink |
| 684 | 679 |
| 685 #ifndef NDEBUG | 680 #ifndef NDEBUG |
| 686 // Outside the WebCore namespace for ease of invocation from gdb. | 681 // Outside the WebCore namespace for ease of invocation from gdb. |
| 687 void showNode(const blink::Node*); | 682 void showNode(const blink::Node*); |
| 688 void showTree(const blink::Node*); | 683 void showTree(const blink::Node*); |
| 689 void showNodePath(const blink::Node*); | 684 void showNodePath(const blink::Node*); |
| 690 #endif | 685 #endif |
| 691 | 686 |
| 692 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ | 687 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ |
| OLD | NEW |