Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2362223002: Stop clamping tabIndex to short range (Closed)
Patch Set: Fix tabindex-clamp.html Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } 487 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); }
488 void setHasEventTargetData(bool flag) { 488 void setHasEventTargetData(bool flag) {
489 setFlag(flag, HasEventTargetDataFlag); 489 setFlag(flag, HasEventTargetDataFlag);
490 } 490 }
491 491
492 virtual void setFocused(bool flag); 492 virtual void setFocused(bool flag);
493 virtual void setActive(bool flag = true); 493 virtual void setActive(bool flag = true);
494 virtual void setDragged(bool flag); 494 virtual void setDragged(bool flag);
495 virtual void setHovered(bool flag = true); 495 virtual void setHovered(bool flag = true);
496 496
497 virtual short tabIndex() const; 497 virtual int tabIndex() const;
498 498
499 virtual Node* focusDelegate(); 499 virtual Node* focusDelegate();
500 // This is called only when the node is focused. 500 // This is called only when the node is focused.
501 virtual bool shouldHaveFocusAppearance() const; 501 virtual bool shouldHaveFocusAppearance() const;
502 502
503 // Whether the node is inert. This can't be in Element because text nodes 503 // Whether the node is inert. This can't be in Element because text nodes
504 // must be recognized as inert to prevent text selection. 504 // must be recognized as inert to prevent text selection.
505 bool isInert() const; 505 bool isInert() const;
506 506
507 virtual LayoutRect boundingBox() const; 507 virtual LayoutRect boundingBox() const;
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 } // namespace blink 1024 } // namespace blink
1025 1025
1026 #ifndef NDEBUG 1026 #ifndef NDEBUG
1027 // Outside the WebCore namespace for ease of invocation from gdb. 1027 // Outside the WebCore namespace for ease of invocation from gdb.
1028 void showNode(const blink::Node*); 1028 void showNode(const blink::Node*);
1029 void showTree(const blink::Node*); 1029 void showTree(const blink::Node*);
1030 void showNodePath(const blink::Node*); 1030 void showNodePath(const blink::Node*);
1031 #endif 1031 #endif
1032 1032
1033 #endif // Node_h 1033 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareData.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698