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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 LayoutRect old_content_rect = ReplacedContentRect(); | 83 LayoutRect old_content_rect = ReplacedContentRect(); |
84 | 84 |
85 SetHeight(MinimumReplacedHeight()); | 85 SetHeight(MinimumReplacedHeight()); |
86 | 86 |
87 UpdateLogicalWidth(); | 87 UpdateLogicalWidth(); |
88 UpdateLogicalHeight(); | 88 UpdateLogicalHeight(); |
89 | 89 |
90 overflow_.reset(); | 90 overflow_.reset(); |
91 AddVisualEffectOverflow(); | 91 AddVisualEffectOverflow(); |
92 UpdateLayerTransformAfterLayout(); | 92 UpdateAfterLayout(); |
93 InvalidateBackgroundObscurationStatus(); | 93 InvalidateBackgroundObscurationStatus(); |
94 | 94 |
95 ClearNeedsLayout(); | 95 ClearNeedsLayout(); |
96 | 96 |
97 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 97 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && |
98 ReplacedContentRect() != old_content_rect) | 98 ReplacedContentRect() != old_content_rect) |
99 SetShouldDoFullPaintInvalidation(); | 99 SetShouldDoFullPaintInvalidation(); |
100 } | 100 } |
101 | 101 |
102 void LayoutReplaced::IntrinsicSizeChanged() { | 102 void LayoutReplaced::IntrinsicSizeChanged() { |
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 InlineBoxWrapper()->Root().SetHasSelectedChildren(state != SelectionNone); | 948 InlineBoxWrapper()->Root().SetHasSelectedChildren(state != SelectionNone); |
949 } | 949 } |
950 | 950 |
951 void LayoutReplaced::IntrinsicSizingInfo::Transpose() { | 951 void LayoutReplaced::IntrinsicSizingInfo::Transpose() { |
952 size = size.TransposedSize(); | 952 size = size.TransposedSize(); |
953 aspect_ratio = aspect_ratio.TransposedSize(); | 953 aspect_ratio = aspect_ratio.TransposedSize(); |
954 std::swap(has_width, has_height); | 954 std::swap(has_width, has_height); |
955 } | 955 } |
956 | 956 |
957 } // namespace blink | 957 } // namespace blink |
OLD | NEW |