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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 virtual void SetActive(bool flag = true); | 545 virtual void SetActive(bool flag = true); |
546 virtual void SetDragged(bool flag); | 546 virtual void SetDragged(bool flag); |
547 virtual void SetHovered(bool flag = true); | 547 virtual void SetHovered(bool flag = true); |
548 | 548 |
549 virtual int tabIndex() const; | 549 virtual int tabIndex() const; |
550 | 550 |
551 virtual Node* FocusDelegate(); | 551 virtual Node* FocusDelegate(); |
552 // This is called only when the node is focused. | 552 // This is called only when the node is focused. |
553 virtual bool ShouldHaveFocusAppearance() const; | 553 virtual bool ShouldHaveFocusAppearance() const; |
554 | 554 |
555 // Whether the node is inert: | 555 // Whether the node is inert. This can't be in Element because text nodes |
556 // https://html.spec.whatwg.org/multipage/interaction.html#inert | 556 // must be recognized as inert to prevent text selection. |
557 // https://github.com/WICG/inert/blob/master/README.md | |
558 // This can't be in Element because text nodes must be recognized as | |
559 // inert to prevent text selection. | |
560 bool IsInert() const; | 557 bool IsInert() const; |
561 | 558 |
562 virtual LayoutRect BoundingBox() const; | 559 virtual LayoutRect BoundingBox() const; |
563 IntRect PixelSnappedBoundingBox() const { | 560 IntRect PixelSnappedBoundingBox() const { |
564 return PixelSnappedIntRect(BoundingBox()); | 561 return PixelSnappedIntRect(BoundingBox()); |
565 } | 562 } |
566 | 563 |
567 unsigned NodeIndex() const; | 564 unsigned NodeIndex() const; |
568 | 565 |
569 // Returns the DOM ownerDocument attribute. This method never returns null, | 566 // Returns the DOM ownerDocument attribute. This method never returns null, |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 } // namespace blink | 1052 } // namespace blink |
1056 | 1053 |
1057 #ifndef NDEBUG | 1054 #ifndef NDEBUG |
1058 // Outside the WebCore namespace for ease of invocation from gdb. | 1055 // Outside the WebCore namespace for ease of invocation from gdb. |
1059 void showNode(const blink::Node*); | 1056 void showNode(const blink::Node*); |
1060 void showTree(const blink::Node*); | 1057 void showTree(const blink::Node*); |
1061 void showNodePath(const blink::Node*); | 1058 void showNodePath(const blink::Node*); |
1062 #endif | 1059 #endif |
1063 | 1060 |
1064 #endif // Node_h | 1061 #endif // Node_h |
OLD | NEW |