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

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

Issue 2727563002: Selection API: document.open() should reset Selection. (Closed)
Patch Set: . Created 3 years, 9 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ScopedStyleResolver& ensureScopedStyleResolver(); 128 ScopedStyleResolver& ensureScopedStyleResolver();
129 void clearScopedStyleResolver(); 129 void clearScopedStyleResolver();
130 130
131 SVGTreeScopeResources& ensureSVGTreeScopedResources(); 131 SVGTreeScopeResources& ensureSVGTreeScopedResources();
132 132
133 protected: 133 protected:
134 TreeScope(ContainerNode&, Document&); 134 TreeScope(ContainerNode&, Document&);
135 TreeScope(Document&); 135 TreeScope(Document&);
136 virtual ~TreeScope(); 136 virtual ~TreeScope();
137 137
138 void resetTreeScope();
138 void setDocument(Document& document) { m_document = &document; } 139 void setDocument(Document& document) { m_document = &document; }
139 void setParentTreeScope(TreeScope&); 140 void setParentTreeScope(TreeScope&);
140 void setNeedsStyleRecalcForViewportUnits(); 141 void setNeedsStyleRecalcForViewportUnits();
141 142
142 private: 143 private:
143 Member<ContainerNode> m_rootNode; 144 Member<ContainerNode> m_rootNode;
144 Member<Document> m_document; 145 Member<Document> m_document;
145 Member<TreeScope> m_parentTreeScope; 146 Member<TreeScope> m_parentTreeScope;
146 147
147 Member<DocumentOrderedMap> m_elementsById; 148 Member<DocumentOrderedMap> m_elementsById;
(...skipping 24 matching lines...) Expand all
172 173
173 HitTestResult hitTestInDocument( 174 HitTestResult hitTestInDocument(
174 const Document*, 175 const Document*,
175 int x, 176 int x,
176 int y, 177 int y,
177 const HitTestRequest& = HitTestRequest::ReadOnly | HitTestRequest::Active); 178 const HitTestRequest& = HitTestRequest::ReadOnly | HitTestRequest::Active);
178 179
179 } // namespace blink 180 } // namespace blink
180 181
181 #endif // TreeScope_h 182 #endif // TreeScope_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698