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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 void LayoutObject::invalidatePaintForOverflow() | 1450 void LayoutObject::invalidatePaintForOverflow() |
1451 { | 1451 { |
1452 } | 1452 } |
1453 | 1453 |
1454 void LayoutObject::invalidatePaintForOverflowIfNeeded() | 1454 void LayoutObject::invalidatePaintForOverflowIfNeeded() |
1455 { | 1455 { |
1456 if (shouldInvalidateOverflowForPaint()) | 1456 if (shouldInvalidateOverflowForPaint()) |
1457 invalidatePaintForOverflow(); | 1457 invalidatePaintForOverflow(); |
1458 } | 1458 } |
1459 | 1459 |
1460 LayoutRect LayoutObject::rectWithOutlineForPaintInvalidation(const LayoutBoxMode
lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid
ationState* paintInvalidationState) const | |
1461 { | |
1462 LayoutRect r(clippedOverflowRectForPaintInvalidation(paintInvalidationContai
ner, paintInvalidationState)); | |
1463 r.inflate(outlineWidth); | |
1464 return r; | |
1465 } | |
1466 | |
1467 LayoutRect LayoutObject::absoluteClippedOverflowRect() const | 1460 LayoutRect LayoutObject::absoluteClippedOverflowRect() const |
1468 { | 1461 { |
1469 return clippedOverflowRectForPaintInvalidation(view()); | 1462 return clippedOverflowRectForPaintInvalidation(view()); |
1470 } | 1463 } |
1471 | 1464 |
1472 LayoutRect LayoutObject::clippedOverflowRectForPaintInvalidation(const LayoutBox
ModelObject*, const PaintInvalidationState*) const | 1465 LayoutRect LayoutObject::clippedOverflowRectForPaintInvalidation(const LayoutBox
ModelObject*, const PaintInvalidationState*) const |
1473 { | 1466 { |
1474 ASSERT_NOT_REACHED(); | 1467 ASSERT_NOT_REACHED(); |
1475 return LayoutRect(); | 1468 return LayoutRect(); |
1476 } | 1469 } |
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3359 const blink::LayoutObject* root = object1; | 3352 const blink::LayoutObject* root = object1; |
3360 while (root->parent()) | 3353 while (root->parent()) |
3361 root = root->parent(); | 3354 root = root->parent(); |
3362 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3355 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3363 } else { | 3356 } else { |
3364 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3357 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3365 } | 3358 } |
3366 } | 3359 } |
3367 | 3360 |
3368 #endif | 3361 #endif |
OLD | NEW |