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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/NodeRenderingTraversal.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 22 matching lines...) Expand all
33 #include "wtf/Assertions.h" 33 #include "wtf/Assertions.h"
34 #include "wtf/PassRefPtr.h" 34 #include "wtf/PassRefPtr.h"
35 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class CSSComputedStyleDeclaration; 39 class CSSComputedStyleDeclaration;
40 class Element; 40 class Element;
41 class InlineBox; 41 class InlineBox;
42 class Node; 42 class Node;
43 class RenderObject; 43 class LayoutObject;
44 class Text; 44 class Text;
45 class TreeScope; 45 class TreeScope;
46 46
47 enum PositionMoveType { 47 enum PositionMoveType {
48 CodePoint, // Move by a single code point. 48 CodePoint, // Move by a single code point.
49 Character, // Move to the next Unicode character break. 49 Character, // Move to the next Unicode character break.
50 BackwardDeletion // Subject to platform conventions. 50 BackwardDeletion // Subject to platform conventions.
51 }; 51 };
52 52
53 class Position { 53 class Position {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool isCandidate() const; 180 bool isCandidate() const;
181 bool inRenderedText() const; 181 bool inRenderedText() const;
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(LayoutObject*);
191 static bool nodeIsUserSelectNone(Node*); 191 static bool nodeIsUserSelectNone(Node*);
192 static bool nodeIsUserSelectAll(const Node*); 192 static bool nodeIsUserSelectAll(const Node*);
193 static Node* rootUserSelectAllForNode(Node*); 193 static Node* rootUserSelectAllForNode(Node*);
194 194
195 static ContainerNode* findParent(const Node*); 195 static ContainerNode* findParent(const Node*);
196 196
197 void debugPosition(const char* msg = "") const; 197 void debugPosition(const char* msg = "") const;
198 198
199 #ifndef NDEBUG 199 #ifndef NDEBUG
200 void formatForDebugger(char* buffer, unsigned length) const; 200 void formatForDebugger(char* buffer, unsigned length) const;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 } // namespace blink 317 } // namespace blink
318 318
319 #ifndef NDEBUG 319 #ifndef NDEBUG
320 // Outside the WebCore namespace for ease of invocation from gdb. 320 // Outside the WebCore namespace for ease of invocation from gdb.
321 void showTree(const blink::Position&); 321 void showTree(const blink::Position&);
322 void showTree(const blink::Position*); 322 void showTree(const blink::Position*);
323 #endif 323 #endif
324 324
325 #endif // Position_h 325 #endif // Position_h
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRenderingTraversal.cpp ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698