| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |