| 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 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1589 return; | 1589 return; |
| 1590 | 1590 |
| 1591 if (paintInvalidationState && paintInvalidationState->canMapToContainer(pain
tInvalidationContainer)) { | 1591 if (paintInvalidationState && paintInvalidationState->canMapToContainer(pain
tInvalidationContainer)) { |
| 1592 rect.move(paintInvalidationState->paintOffset()); | 1592 rect.move(paintInvalidationState->paintOffset()); |
| 1593 if (paintInvalidationState->isClipped()) | 1593 if (paintInvalidationState->isClipped()) |
| 1594 rect.intersect(paintInvalidationState->clipRect()); | 1594 rect.intersect(paintInvalidationState->clipRect()); |
| 1595 return; | 1595 return; |
| 1596 } | 1596 } |
| 1597 | 1597 |
| 1598 if (LayoutObject* o = parent()) { | 1598 if (LayoutObject* o = parent()) { |
| 1599 if (o->hasOverflowClip()) { | 1599 if (o != paintInvalidationContainer && o->hasOverflowClip()) { |
| 1600 LayoutBox* boxParent = toLayoutBox(o); | 1600 LayoutBox* boxParent = toLayoutBox(o); |
| 1601 boxParent->applyCachedClipAndScrollOffsetForPaintInvalidation(rect); | 1601 boxParent->applyCachedClipAndScrollOffsetForPaintInvalidation(rect); |
| 1602 if (rect.isEmpty()) | 1602 if (rect.isEmpty()) |
| 1603 return; | 1603 return; |
| 1604 } | 1604 } |
| 1605 | 1605 |
| 1606 o->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, p
aintInvalidationState); | 1606 o->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, p
aintInvalidationState); |
| 1607 } | 1607 } |
| 1608 } | 1608 } |
| 1609 | 1609 |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3520 const blink::LayoutObject* root = object1; | 3520 const blink::LayoutObject* root = object1; |
| 3521 while (root->parent()) | 3521 while (root->parent()) |
| 3522 root = root->parent(); | 3522 root = root->parent(); |
| 3523 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3523 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3524 } else { | 3524 } else { |
| 3525 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3525 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3526 } | 3526 } |
| 3527 } | 3527 } |
| 3528 | 3528 |
| 3529 #endif | 3529 #endif |
| OLD | NEW |