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 10 matching lines...) Expand all Loading... |
21 * | 21 * |
22 */ | 22 */ |
23 | 23 |
24 #include "core/layout/LayoutReplaced.h" | 24 #include "core/layout/LayoutReplaced.h" |
25 | 25 |
26 #include "core/editing/PositionWithAffinity.h" | 26 #include "core/editing/PositionWithAffinity.h" |
27 #include "core/layout/LayoutAnalyzer.h" | 27 #include "core/layout/LayoutAnalyzer.h" |
28 #include "core/layout/LayoutBlock.h" | 28 #include "core/layout/LayoutBlock.h" |
29 #include "core/layout/LayoutImage.h" | 29 #include "core/layout/LayoutImage.h" |
30 #include "core/layout/LayoutInline.h" | 30 #include "core/layout/LayoutInline.h" |
31 #include "core/layout/LayoutView.h" | |
32 #include "core/layout/api/LineLayoutBlockFlow.h" | 31 #include "core/layout/api/LineLayoutBlockFlow.h" |
33 #include "core/paint/PaintInfo.h" | 32 #include "core/paint/PaintInfo.h" |
34 #include "core/paint/PaintLayer.h" | 33 #include "core/paint/PaintLayer.h" |
35 #include "core/paint/ReplacedPainter.h" | 34 #include "core/paint/ReplacedPainter.h" |
36 #include "platform/LengthFunctions.h" | 35 #include "platform/LengthFunctions.h" |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 | 38 |
40 const int LayoutReplaced::defaultWidth = 300; | 39 const int LayoutReplaced::defaultWidth = 300; |
41 const int LayoutReplaced::defaultHeight = 150; | 40 const int LayoutReplaced::defaultHeight = 150; |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 } | 753 } |
755 | 754 |
756 void LayoutReplaced::IntrinsicSizingInfo::transpose() | 755 void LayoutReplaced::IntrinsicSizingInfo::transpose() |
757 { | 756 { |
758 size = size.transposedSize(); | 757 size = size.transposedSize(); |
759 aspectRatio = aspectRatio.transposedSize(); | 758 aspectRatio = aspectRatio.transposedSize(); |
760 std::swap(hasWidth, hasHeight); | 759 std::swap(hasWidth, hasHeight); |
761 } | 760 } |
762 | 761 |
763 } // namespace blink | 762 } // namespace blink |
OLD | NEW |