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

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

Issue 2821303005: [selectors4] Use common ancestor strategy for :focus-within (Closed)
Patch Set: Use EXPECT_EQ instead of ASSERT_EQ 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, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 void RemoveChildren( 133 void RemoveChildren(
134 SubtreeModificationAction = kDispatchSubtreeModifiedEvent); 134 SubtreeModificationAction = kDispatchSubtreeModifiedEvent);
135 135
136 void CloneChildNodes(ContainerNode* clone); 136 void CloneChildNodes(ContainerNode* clone);
137 137
138 void AttachLayoutTree(const AttachContext& = AttachContext()) override; 138 void AttachLayoutTree(const AttachContext& = AttachContext()) override;
139 void DetachLayoutTree(const AttachContext& = AttachContext()) override; 139 void DetachLayoutTree(const AttachContext& = AttachContext()) override;
140 LayoutRect BoundingBox() const final; 140 LayoutRect BoundingBox() const final;
141 void SetFocused(bool, WebFocusType) override; 141 void SetFocused(bool, WebFocusType) override;
142 void SetHasFocusWithinUpToAncestor(bool, Node* ancestor);
142 void FocusStateChanged(); 143 void FocusStateChanged();
143 void FocusWithinStateChanged(); 144 void FocusWithinStateChanged();
144 void SetActive(bool = true) override; 145 void SetActive(bool = true) override;
145 void SetDragged(bool) override; 146 void SetDragged(bool) override;
146 void SetHovered(bool = true) override; 147 void SetHovered(bool = true) override;
147 148
148 bool ChildrenOrSiblingsAffectedByFocus() const { 149 bool ChildrenOrSiblingsAffectedByFocus() const {
149 return HasRestyleFlag(kChildrenOrSiblingsAffectedByFocus); 150 return HasRestyleFlag(kChildrenOrSiblingsAffectedByFocus);
150 } 151 }
151 void SetChildrenOrSiblingsAffectedByFocus() { 152 void SetChildrenOrSiblingsAffectedByFocus() {
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 485
485 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) { 486 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) {
486 DCHECK(!nodes.size()); 487 DCHECK(!nodes.size());
487 for (Node* child = node.FirstChild(); child; child = child->nextSibling()) 488 for (Node* child = node.FirstChild(); child; child = child->nextSibling())
488 nodes.push_back(child); 489 nodes.push_back(child);
489 } 490 }
490 491
491 } // namespace blink 492 } // namespace blink
492 493
493 #endif // ContainerNode_h 494 #endif // ContainerNode_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/AffectedByFocusTest.cpp ('k') | third_party/WebKit/Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698