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

Side by Side Diff: Source/core/dom/Position.h

Issue 22751005: Convert USERSELECT_ALL to a runtime enabled feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: undo reordering of if statements Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 bool isRenderedCharacter() const; 182 bool isRenderedCharacter() const;
183 bool rendersInDifferentPosition(const Position&) const; 183 bool rendersInDifferentPosition(const Position&) const;
184 184
185 void getInlineBoxAndOffset(EAffinity, InlineBox*&, int& caretOffset) const; 185 void getInlineBoxAndOffset(EAffinity, InlineBox*&, int& caretOffset) const;
186 void getInlineBoxAndOffset(EAffinity, TextDirection primaryDirection, Inline Box*&, int& caretOffset) const; 186 void getInlineBoxAndOffset(EAffinity, TextDirection primaryDirection, Inline Box*&, int& caretOffset) const;
187 187
188 TextDirection primaryDirection() const; 188 TextDirection primaryDirection() const;
189 189
190 static bool hasRenderedNonAnonymousDescendantsWithHeight(RenderObject*); 190 static bool hasRenderedNonAnonymousDescendantsWithHeight(RenderObject*);
191 static bool nodeIsUserSelectNone(Node*); 191 static bool nodeIsUserSelectNone(Node*);
192 #if ENABLE(USERSELECT_ALL)
193 static bool nodeIsUserSelectAll(const Node*); 192 static bool nodeIsUserSelectAll(const Node*);
194 static Node* rootUserSelectAllForNode(Node*); 193 static Node* rootUserSelectAllForNode(Node*);
195 #endif 194
196 static ContainerNode* findParent(const Node*); 195 static ContainerNode* findParent(const Node*);
197 196
198 void debugPosition(const char* msg = "") const; 197 void debugPosition(const char* msg = "") const;
199 198
200 #ifndef NDEBUG 199 #ifndef NDEBUG
201 void formatForDebugger(char* buffer, unsigned length) const; 200 void formatForDebugger(char* buffer, unsigned length) const;
202 void showAnchorTypeAndOffset() const; 201 void showAnchorTypeAndOffset() const;
203 void showTreeForThis() const; 202 void showTreeForThis() const;
204 #endif 203 #endif
205 204
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 339
341 } // namespace WebCore 340 } // namespace WebCore
342 341
343 #ifndef NDEBUG 342 #ifndef NDEBUG
344 // Outside the WebCore namespace for ease of invocation from gdb. 343 // Outside the WebCore namespace for ease of invocation from gdb.
345 void showTree(const WebCore::Position&); 344 void showTree(const WebCore::Position&);
346 void showTree(const WebCore::Position*); 345 void showTree(const WebCore::Position*);
347 #endif 346 #endif
348 347
349 #endif // Position_h 348 #endif // Position_h
OLDNEW
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698