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

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: 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void ParserTakeAllChildrenFrom(ContainerNode&); 131 void ParserTakeAllChildrenFrom(ContainerNode&);
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, Node* common_ancestor = nullptr) override;
142 void FocusStateChanged(); 142 void FocusStateChanged();
143 void FocusWithinStateChanged(); 143 void FocusWithinStateChanged();
144 void SetActive(bool = true) override; 144 void SetActive(bool = true) override;
145 void SetDragged(bool) override; 145 void SetDragged(bool) override;
146 void SetHovered(bool = true) override; 146 void SetHovered(bool = true) override;
147 147
148 bool ChildrenOrSiblingsAffectedByFocus() const { 148 bool ChildrenOrSiblingsAffectedByFocus() const {
149 return HasRestyleFlag(kChildrenOrSiblingsAffectedByFocus); 149 return HasRestyleFlag(kChildrenOrSiblingsAffectedByFocus);
150 } 150 }
151 void SetChildrenOrSiblingsAffectedByFocus() { 151 void SetChildrenOrSiblingsAffectedByFocus() {
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) { 485 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) {
486 DCHECK(!nodes.size()); 486 DCHECK(!nodes.size());
487 for (Node* child = node.FirstChild(); child; child = child->nextSibling()) 487 for (Node* child = node.FirstChild(); child; child = child->nextSibling())
488 nodes.push_back(child); 488 nodes.push_back(child);
489 } 489 }
490 490
491 } // namespace blink 491 } // namespace blink
492 492
493 #endif // ContainerNode_h 493 #endif // ContainerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698