| 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 3214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3225 | 3225 |
| 3226 int LayoutObject::caretMaxOffset() const | 3226 int LayoutObject::caretMaxOffset() const |
| 3227 { | 3227 { |
| 3228 if (isAtomicInlineLevel()) | 3228 if (isAtomicInlineLevel()) |
| 3229 return node() ? std::max(1U, node()->countChildren()) : 1; | 3229 return node() ? std::max(1U, node()->countChildren()) : 1; |
| 3230 if (isHR()) | 3230 if (isHR()) |
| 3231 return 1; | 3231 return 1; |
| 3232 return 0; | 3232 return 0; |
| 3233 } | 3233 } |
| 3234 | 3234 |
| 3235 int LayoutObject::previousOffsetForBackwardDeletion(int current) const | |
| 3236 { | |
| 3237 return current - 1; | |
| 3238 } | |
| 3239 | |
| 3240 bool LayoutObject::isInert() const | 3235 bool LayoutObject::isInert() const |
| 3241 { | 3236 { |
| 3242 const LayoutObject* layoutObject = this; | 3237 const LayoutObject* layoutObject = this; |
| 3243 while (!layoutObject->node()) | 3238 while (!layoutObject->node()) |
| 3244 layoutObject = layoutObject->parent(); | 3239 layoutObject = layoutObject->parent(); |
| 3245 return layoutObject->node()->isInert(); | 3240 return layoutObject->node()->isInert(); |
| 3246 } | 3241 } |
| 3247 | 3242 |
| 3248 void LayoutObject::imageChanged(ImageResource* image, const IntRect* rect) | 3243 void LayoutObject::imageChanged(ImageResource* image, const IntRect* rect) |
| 3249 { | 3244 { |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3714 const blink::LayoutObject* root = object1; | 3709 const blink::LayoutObject* root = object1; |
| 3715 while (root->parent()) | 3710 while (root->parent()) |
| 3716 root = root->parent(); | 3711 root = root->parent(); |
| 3717 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3712 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3718 } else { | 3713 } else { |
| 3719 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3714 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3720 } | 3715 } |
| 3721 } | 3716 } |
| 3722 | 3717 |
| 3723 #endif | 3718 #endif |
| OLD | NEW |