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

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

Issue 2146013003: Rename adjustPointerLockElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename function and update comments. Created 4 years, 5 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) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. All Rights Reserved.
3 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // so that the Node destructor no longer does problematic NodeList cache manipul ation in 50 // so that the Node destructor no longer does problematic NodeList cache manipul ation in
51 // the destructor. 51 // the destructor.
52 class CORE_EXPORT TreeScope : public GarbageCollectedMixin { 52 class CORE_EXPORT TreeScope : public GarbageCollectedMixin {
53 public: 53 public:
54 TreeScope* parentTreeScope() const { return m_parentTreeScope; } 54 TreeScope* parentTreeScope() const { return m_parentTreeScope; }
55 55
56 TreeScope* olderShadowRootOrParentTreeScope() const; 56 TreeScope* olderShadowRootOrParentTreeScope() const;
57 bool isInclusiveOlderSiblingShadowRootOrAncestorTreeScopeOf(const TreeScope& ) const; 57 bool isInclusiveOlderSiblingShadowRootOrAncestorTreeScopeOf(const TreeScope& ) const;
58 58
59 Element* adjustedFocusedElement() const; 59 Element* adjustedFocusedElement() const;
60 Element* adjustedPointerLockElement(const Element&) const; 60 // Finds a retargeted element to the given argument, when the retargetd elem ent is in this
61 // TreeScope. Returns null otherwise.
62 // TODO(kochi): once this algorithm is named in the spec, rename the method name.
63 Element* adjustedElement(const Element&) const;
61 Element* getElementById(const AtomicString&) const; 64 Element* getElementById(const AtomicString&) const;
62 const HeapVector<Member<Element>>& getAllElementsById(const AtomicString&) c onst; 65 const HeapVector<Member<Element>>& getAllElementsById(const AtomicString&) c onst;
63 bool hasElementWithId(const AtomicString& id) const; 66 bool hasElementWithId(const AtomicString& id) const;
64 bool containsMultipleElementsWithId(const AtomicString& id) const; 67 bool containsMultipleElementsWithId(const AtomicString& id) const;
65 void addElementById(const AtomicString& elementId, Element*); 68 void addElementById(const AtomicString& elementId, Element*);
66 void removeElementById(const AtomicString& elementId, Element*); 69 void removeElementById(const AtomicString& elementId, Element*);
67 70
68 Document& document() const 71 Document& document() const
69 { 72 {
70 DCHECK(m_document); 73 DCHECK(m_document);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 return m_elementsById && m_elementsById->containsMultiple(id); 156 return m_elementsById && m_elementsById->containsMultiple(id);
154 } 157 }
155 158
156 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) 159 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope)
157 160
158 HitTestResult hitTestInDocument(const Document*, int x, int y, const HitTestRequ est& = HitTestRequest::ReadOnly | HitTestRequest::Active); 161 HitTestResult hitTestInDocument(const Document*, int x, int y, const HitTestRequ est& = HitTestRequest::ReadOnly | HitTestRequest::Active);
159 162
160 } // namespace blink 163 } // namespace blink
161 164
162 #endif // TreeScope_h 165 #endif // TreeScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698