| 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 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1616 | 1616 |
| 1617 bool LayoutObject::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
cestor, LayoutRect& rect, VisualRectFlags visualRectFlags) const | 1617 bool LayoutObject::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
cestor, LayoutRect& rect, VisualRectFlags visualRectFlags) const |
| 1618 { | 1618 { |
| 1619 // For any layout object that doesn't override this method (the main example
is LayoutText), | 1619 // For any layout object that doesn't override this method (the main example
is LayoutText), |
| 1620 // the rect is assumed to be in the coordinate space of the object's parent. | 1620 // the rect is assumed to be in the coordinate space of the object's parent. |
| 1621 | 1621 |
| 1622 if (ancestor == this) | 1622 if (ancestor == this) |
| 1623 return true; | 1623 return true; |
| 1624 | 1624 |
| 1625 if (LayoutObject* parent = this->parent()) { | 1625 if (LayoutObject* parent = this->parent()) { |
| 1626 if (parent->isBox() && !toLayoutBox(parent)->mapScrollingContentsRectToB
oxSpace(rect, parent == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowCli
p, visualRectFlags)) | 1626 if (parent->isBox()) { |
| 1627 return false; | 1627 LayoutBox* parentBox = toLayoutBox(parent); |
| 1628 | 1628 if (!parentBox->mapScrollingContentsRectToBoxSpace(rect, parent == a
ncestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRectFlags)) |
| 1629 return parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRect
Flags); | 1629 return false; |
| 1630 parentBox->flipForWritingMode(rect); |
| 1631 } |
| 1632 parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectFlags); |
| 1630 } | 1633 } |
| 1631 return true; | 1634 return true; |
| 1632 } | 1635 } |
| 1633 | 1636 |
| 1634 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior) | 1637 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior) |
| 1635 { | 1638 { |
| 1636 } | 1639 } |
| 1637 | 1640 |
| 1638 #ifndef NDEBUG | 1641 #ifndef NDEBUG |
| 1639 | 1642 |
| (...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3692 const blink::LayoutObject* root = object1; | 3695 const blink::LayoutObject* root = object1; |
| 3693 while (root->parent()) | 3696 while (root->parent()) |
| 3694 root = root->parent(); | 3697 root = root->parent(); |
| 3695 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3698 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3696 } else { | 3699 } else { |
| 3697 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3700 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3698 } | 3701 } |
| 3699 } | 3702 } |
| 3700 | 3703 |
| 3701 #endif | 3704 #endif |
| OLD | NEW |