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

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

Issue 1879373002: Move Node::retarget() to TreeScope::retarget() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 HeapVector<Member<Element>> elementsFromHitTestResult(HitTestResult&) const; 83 HeapVector<Member<Element>> elementsFromHitTestResult(HitTestResult&) const;
84 84
85 // For accessibility. 85 // For accessibility.
86 bool shouldCacheLabelsByForAttribute() const { return m_labelsByForAttribute ; } 86 bool shouldCacheLabelsByForAttribute() const { return m_labelsByForAttribute ; }
87 void addLabel(const AtomicString& forAttributeValue, HTMLLabelElement*); 87 void addLabel(const AtomicString& forAttributeValue, HTMLLabelElement*);
88 void removeLabel(const AtomicString& forAttributeValue, HTMLLabelElement*); 88 void removeLabel(const AtomicString& forAttributeValue, HTMLLabelElement*);
89 HTMLLabelElement* labelElementForId(const AtomicString& forAttributeValue); 89 HTMLLabelElement* labelElementForId(const AtomicString& forAttributeValue);
90 90
91 DOMSelection* getSelection() const; 91 DOMSelection* getSelection() const;
92 92
93 Element* retarget(const Element& target) const;
94
93 // Find first anchor with the given name. 95 // Find first anchor with the given name.
94 // First searches for an element with the given ID, but if that fails, then looks 96 // First searches for an element with the given ID, but if that fails, then looks
95 // for an anchor with the given name. ID matching is always case sensitive, but 97 // for an anchor with the given name. ID matching is always case sensitive, but
96 // Anchor name matching is case sensitive in strict mode and not case sensit ive in 98 // Anchor name matching is case sensitive in strict mode and not case sensit ive in
97 // quirks mode for historical compatibility reasons. 99 // quirks mode for historical compatibility reasons.
98 Element* findAnchor(const String& name); 100 Element* findAnchor(const String& name);
99 101
100 // Used by the basic DOM mutation methods (e.g., appendChild()). 102 // Used by the basic DOM mutation methods (e.g., appendChild()).
101 void adoptIfNeeded(Node&); 103 void adoptIfNeeded(Node&);
102 104
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 return m_elementsById && m_elementsById->containsMultiple(id); 215 return m_elementsById && m_elementsById->containsMultiple(id);
214 } 216 }
215 217
216 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) 218 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope)
217 219
218 HitTestResult hitTestInDocument(const Document*, int x, int y, const HitTestRequ est& = HitTestRequest::ReadOnly | HitTestRequest::Active); 220 HitTestResult hitTestInDocument(const Document*, int x, int y, const HitTestRequ est& = HitTestRequest::ReadOnly | HitTestRequest::Active);
219 221
220 } // namespace blink 222 } // namespace blink
221 223
222 #endif // TreeScope_h 224 #endif // TreeScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698