| 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. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 virtual void SetActive(bool flag = true); | 537 virtual void SetActive(bool flag = true); |
| 538 virtual void SetDragged(bool flag); | 538 virtual void SetDragged(bool flag); |
| 539 virtual void SetHovered(bool flag = true); | 539 virtual void SetHovered(bool flag = true); |
| 540 | 540 |
| 541 virtual int tabIndex() const; | 541 virtual int tabIndex() const; |
| 542 | 542 |
| 543 virtual Node* FocusDelegate(); | 543 virtual Node* FocusDelegate(); |
| 544 // This is called only when the node is focused. | 544 // This is called only when the node is focused. |
| 545 virtual bool ShouldHaveFocusAppearance() const; | 545 virtual bool ShouldHaveFocusAppearance() const; |
| 546 | 546 |
| 547 // Whether the node is inert. This can't be in Element because text nodes | 547 // Whether the node is inert: |
| 548 // must be recognized as inert to prevent text selection. | 548 // https://html.spec.whatwg.org/multipage/interaction.html#inert |
| 549 // https://github.com/WICG/inert/blob/master/README.md |
| 550 // This can't be in Element because text nodes must be recognized as |
| 551 // inert to prevent text selection. |
| 549 bool IsInert() const; | 552 bool IsInert() const; |
| 550 | 553 |
| 551 virtual LayoutRect BoundingBox() const; | 554 virtual LayoutRect BoundingBox() const; |
| 552 IntRect PixelSnappedBoundingBox() const { | 555 IntRect PixelSnappedBoundingBox() const { |
| 553 return PixelSnappedIntRect(BoundingBox()); | 556 return PixelSnappedIntRect(BoundingBox()); |
| 554 } | 557 } |
| 555 | 558 |
| 556 unsigned NodeIndex() const; | 559 unsigned NodeIndex() const; |
| 557 | 560 |
| 558 // Returns the DOM ownerDocument attribute. This method never returns null, | 561 // Returns the DOM ownerDocument attribute. This method never returns null, |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 } // namespace blink | 1047 } // namespace blink |
| 1045 | 1048 |
| 1046 #ifndef NDEBUG | 1049 #ifndef NDEBUG |
| 1047 // Outside the WebCore namespace for ease of invocation from gdb. | 1050 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1048 void showNode(const blink::Node*); | 1051 void showNode(const blink::Node*); |
| 1049 void showTree(const blink::Node*); | 1052 void showTree(const blink::Node*); |
| 1050 void showNodePath(const blink::Node*); | 1053 void showNodePath(const blink::Node*); |
| 1051 #endif | 1054 #endif |
| 1052 | 1055 |
| 1053 #endif // Node_h | 1056 #endif // Node_h |
| OLD | NEW |