| 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 3232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3243 if (isHR()) | 3243 if (isHR()) |
| 3244 return 1; | 3244 return 1; |
| 3245 return 0; | 3245 return 0; |
| 3246 } | 3246 } |
| 3247 | 3247 |
| 3248 int LayoutObject::previousOffset(int current) const | 3248 int LayoutObject::previousOffset(int current) const |
| 3249 { | 3249 { |
| 3250 return current - 1; | 3250 return current - 1; |
| 3251 } | 3251 } |
| 3252 | 3252 |
| 3253 int LayoutObject::previousOffsetForBackwardDeletion(int current) const | |
| 3254 { | |
| 3255 return current - 1; | |
| 3256 } | |
| 3257 | |
| 3258 int LayoutObject::nextOffset(int current) const | 3253 int LayoutObject::nextOffset(int current) const |
| 3259 { | 3254 { |
| 3260 return current + 1; | 3255 return current + 1; |
| 3261 } | 3256 } |
| 3262 | 3257 |
| 3263 bool LayoutObject::isInert() const | 3258 bool LayoutObject::isInert() const |
| 3264 { | 3259 { |
| 3265 const LayoutObject* layoutObject = this; | 3260 const LayoutObject* layoutObject = this; |
| 3266 while (!layoutObject->node()) | 3261 while (!layoutObject->node()) |
| 3267 layoutObject = layoutObject->parent(); | 3262 layoutObject = layoutObject->parent(); |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3737 const blink::LayoutObject* root = object1; | 3732 const blink::LayoutObject* root = object1; |
| 3738 while (root->parent()) | 3733 while (root->parent()) |
| 3739 root = root->parent(); | 3734 root = root->parent(); |
| 3740 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3735 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3741 } else { | 3736 } else { |
| 3742 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3737 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3743 } | 3738 } |
| 3744 } | 3739 } |
| 3745 | 3740 |
| 3746 #endif | 3741 #endif |
| OLD | NEW |