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 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 | 1633 |
1634 bool LayoutObject::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
cestor, LayoutRect& rect, VisualRectFlags visualRectFlags) const | 1634 bool LayoutObject::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
cestor, LayoutRect& rect, VisualRectFlags visualRectFlags) const |
1635 { | 1635 { |
1636 // For any layout object that doesn't override this method (the main example
is LayoutText), | 1636 // For any layout object that doesn't override this method (the main example
is LayoutText), |
1637 // the rect is assumed to be in the coordinate space of the object's parent. | 1637 // the rect is assumed to be in the coordinate space of the object's parent. |
1638 | 1638 |
1639 if (ancestor == this) | 1639 if (ancestor == this) |
1640 return true; | 1640 return true; |
1641 | 1641 |
1642 if (LayoutObject* parent = this->parent()) { | 1642 if (LayoutObject* parent = this->parent()) { |
1643 if (parent->hasOverflowClip()) { | 1643 if (parent->isBox() && !toLayoutBox(parent)->mapScrollingContentsRectToB
oxSpace(rect, parent == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowCli
p, visualRectFlags)) |
1644 LayoutBox* parentBox = toLayoutBox(parent); | 1644 return false; |
1645 parentBox->mapScrollingContentsRectToBoxSpace(rect); | |
1646 if (parent != ancestor && !parentBox->applyOverflowClip(rect, visual
RectFlags)) | |
1647 return false; | |
1648 } | |
1649 | 1645 |
1650 return parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRect
Flags); | 1646 return parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRect
Flags); |
1651 } | 1647 } |
1652 return true; | 1648 return true; |
1653 } | 1649 } |
1654 | 1650 |
1655 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*) | 1651 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*) |
1656 { | 1652 { |
1657 } | 1653 } |
1658 | 1654 |
(...skipping 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3699 const blink::LayoutObject* root = object1; | 3695 const blink::LayoutObject* root = object1; |
3700 while (root->parent()) | 3696 while (root->parent()) |
3701 root = root->parent(); | 3697 root = root->parent(); |
3702 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3698 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3703 } else { | 3699 } else { |
3704 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3700 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3705 } | 3701 } |
3706 } | 3702 } |
3707 | 3703 |
3708 #endif | 3704 #endif |
OLD | NEW |