OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 } | 710 } |
711 | 711 |
712 LayoutRect LayoutReplaced::selectionRectForPaintInvalidation(const LayoutBoxMode
lObject* paintInvalidationContainer) const | 712 LayoutRect LayoutReplaced::selectionRectForPaintInvalidation(const LayoutBoxMode
lObject* paintInvalidationContainer) const |
713 { | 713 { |
714 ASSERT(!needsLayout()); | 714 ASSERT(!needsLayout()); |
715 | 715 |
716 LayoutRect rect = localSelectionRect(); | 716 LayoutRect rect = localSelectionRect(); |
717 if (rect.isEmpty()) | 717 if (rect.isEmpty()) |
718 return rect; | 718 return rect; |
719 | 719 |
720 mapToVisibleRectInAncestorSpace(paintInvalidationContainer, rect, 0); | 720 mapToVisibleRectInAncestorSpace(paintInvalidationContainer, rect, 0, false); |
721 // FIXME: groupedMapping() leaks the squashing abstraction. | 721 // FIXME: groupedMapping() leaks the squashing abstraction. |
722 if (paintInvalidationContainer->layer()->groupedMapping()) | 722 if (paintInvalidationContainer->layer()->groupedMapping()) |
723 PaintLayer::mapRectToPaintBackingCoordinates(paintInvalidationContainer,
rect); | 723 PaintLayer::mapRectToPaintBackingCoordinates(paintInvalidationContainer,
rect); |
724 return rect; | 724 return rect; |
725 } | 725 } |
726 | 726 |
727 LayoutRect LayoutReplaced::localSelectionRect() const | 727 LayoutRect LayoutReplaced::localSelectionRect() const |
728 { | 728 { |
729 if (getSelectionState() == SelectionNone) | 729 if (getSelectionState() == SelectionNone) |
730 return LayoutRect(); | 730 return LayoutRect(); |
(...skipping 28 matching lines...) Expand all Loading... |
759 } | 759 } |
760 | 760 |
761 void LayoutReplaced::IntrinsicSizingInfo::transpose() | 761 void LayoutReplaced::IntrinsicSizingInfo::transpose() |
762 { | 762 { |
763 size = size.transposedSize(); | 763 size = size.transposedSize(); |
764 aspectRatio = aspectRatio.transposedSize(); | 764 aspectRatio = aspectRatio.transposedSize(); |
765 std::swap(hasWidth, hasHeight); | 765 std::swap(hasWidth, hasHeight); |
766 } | 766 } |
767 | 767 |
768 } // namespace blink | 768 } // namespace blink |
OLD | NEW |