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

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

Issue 2821303005: [selectors4] Use common ancestor strategy for :focus-within (Closed)
Patch Set: Created 3 years, 8 months 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 499
500 void UpdateDistribution(); 500 void UpdateDistribution();
501 501
502 void SetIsLink(bool f); 502 void SetIsLink(bool f);
503 503
504 bool HasEventTargetData() const { return GetFlag(kHasEventTargetDataFlag); } 504 bool HasEventTargetData() const { return GetFlag(kHasEventTargetDataFlag); }
505 void SetHasEventTargetData(bool flag) { 505 void SetHasEventTargetData(bool flag) {
506 SetFlag(flag, kHasEventTargetDataFlag); 506 SetFlag(flag, kHasEventTargetDataFlag);
507 } 507 }
508 508
509 virtual void SetFocused(bool flag, WebFocusType); 509 virtual void SetFocused(bool flag,
510 WebFocusType,
511 Node* common_ancestor = nullptr);
510 virtual void SetHasFocusWithin(bool flag); 512 virtual void SetHasFocusWithin(bool flag);
511 virtual void SetActive(bool flag = true); 513 virtual void SetActive(bool flag = true);
512 virtual void SetDragged(bool flag); 514 virtual void SetDragged(bool flag);
513 virtual void SetHovered(bool flag = true); 515 virtual void SetHovered(bool flag = true);
514 516
515 virtual int tabIndex() const; 517 virtual int tabIndex() const;
516 518
517 virtual Node* FocusDelegate(); 519 virtual Node* FocusDelegate();
518 // This is called only when the node is focused. 520 // This is called only when the node is focused.
519 virtual bool ShouldHaveFocusAppearance() const; 521 virtual bool ShouldHaveFocusAppearance() const;
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 } // namespace blink 1022 } // namespace blink
1021 1023
1022 #ifndef NDEBUG 1024 #ifndef NDEBUG
1023 // Outside the WebCore namespace for ease of invocation from gdb. 1025 // Outside the WebCore namespace for ease of invocation from gdb.
1024 void showNode(const blink::Node*); 1026 void showNode(const blink::Node*);
1025 void showTree(const blink::Node*); 1027 void showTree(const blink::Node*);
1026 void showNodePath(const blink::Node*); 1028 void showNodePath(const blink::Node*);
1027 #endif 1029 #endif
1028 1030
1029 #endif // Node_h 1031 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698