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

Side by Side Diff: sky/engine/core/dom/Position.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/dom/NodeRareData.cpp ('k') | sky/engine/core/dom/Position.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 static ContainerNode* findParent(const Node*); 191 static ContainerNode* findParent(const Node*);
192 192
193 void debugPosition(const char* msg = "") const; 193 void debugPosition(const char* msg = "") const;
194 194
195 #ifndef NDEBUG 195 #ifndef NDEBUG
196 void formatForDebugger(char* buffer, unsigned length) const; 196 void formatForDebugger(char* buffer, unsigned length) const;
197 void showAnchorTypeAndOffset() const; 197 void showAnchorTypeAndOffset() const;
198 void showTreeForThis() const; 198 void showTreeForThis() const;
199 #endif 199 #endif
200 200
201 void trace(Visitor*);
202
203 private: 201 private:
204 int offsetForPositionAfterAnchor() const; 202 int offsetForPositionAfterAnchor() const;
205 203
206 int renderedOffset() const; 204 int renderedOffset() const;
207 205
208 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o ffset); 206 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int o ffset);
209 207
210 RefPtr<Node> m_anchorNode; 208 RefPtr<Node> m_anchorNode;
211 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte nt(m_anchorNode) 209 // m_offset can be the offset inside m_anchorNode, or if editingIgnoresConte nt(m_anchorNode)
212 // returns true, then other places in editing will treat m_offset == 0 as "b efore the anchor" 210 // returns true, then other places in editing will treat m_offset == 0 as "b efore the anchor"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 310
313 } // namespace blink 311 } // namespace blink
314 312
315 #ifndef NDEBUG 313 #ifndef NDEBUG
316 // Outside the WebCore namespace for ease of invocation from gdb. 314 // Outside the WebCore namespace for ease of invocation from gdb.
317 void showTree(const blink::Position&); 315 void showTree(const blink::Position&);
318 void showTree(const blink::Position*); 316 void showTree(const blink::Position*);
319 #endif 317 #endif
320 318
321 #endif // Position_h 319 #endif // Position_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/NodeRareData.cpp ('k') | sky/engine/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698