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

Side by Side Diff: Source/core/rendering/RenderObject.cpp

Issue 171773008: Rename childNodeCount() / childNode() methods for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further renaming for consistency Created 6 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/page/SpatialNavigation.cpp ('k') | Source/core/rendering/RenderReplaced.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 3038 matching lines...) Expand 10 before | Expand all | Expand 10 after
3049 } 3049 }
3050 3050
3051 int RenderObject::caretMinOffset() const 3051 int RenderObject::caretMinOffset() const
3052 { 3052 {
3053 return 0; 3053 return 0;
3054 } 3054 }
3055 3055
3056 int RenderObject::caretMaxOffset() const 3056 int RenderObject::caretMaxOffset() const
3057 { 3057 {
3058 if (isReplaced()) 3058 if (isReplaced())
3059 return node() ? max(1U, node()->childNodeCount()) : 1; 3059 return node() ? max(1U, node()->countChildren()) : 1;
3060 if (isHR()) 3060 if (isHR())
3061 return 1; 3061 return 1;
3062 return 0; 3062 return 0;
3063 } 3063 }
3064 3064
3065 int RenderObject::previousOffset(int current) const 3065 int RenderObject::previousOffset(int current) const
3066 { 3066 {
3067 return current - 1; 3067 return current - 1;
3068 } 3068 }
3069 3069
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
3300 { 3300 {
3301 if (object1) { 3301 if (object1) {
3302 const WebCore::RenderObject* root = object1; 3302 const WebCore::RenderObject* root = object1;
3303 while (root->parent()) 3303 while (root->parent())
3304 root = root->parent(); 3304 root = root->parent();
3305 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3305 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3306 } 3306 }
3307 } 3307 }
3308 3308
3309 #endif 3309 #endif
OLDNEW
« no previous file with comments | « Source/core/page/SpatialNavigation.cpp ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698