OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
4 * reserved. | 4 * reserved. |
5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 5 * Copyright (C) 2011 Adobe Systems Incorporated. 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 | 122 |
123 ALWAYS_INLINE ComputedStyle::ComputedStyle() | 123 ALWAYS_INLINE ComputedStyle::ComputedStyle() |
124 : ComputedStyleBase(), RefCounted<ComputedStyle>() { | 124 : ComputedStyleBase(), RefCounted<ComputedStyle>() { |
125 rare_non_inherited_data_.Init(); | 125 rare_non_inherited_data_.Init(); |
126 rare_non_inherited_data_.Access()->deprecated_flexible_box_data_.Init(); | 126 rare_non_inherited_data_.Access()->deprecated_flexible_box_data_.Init(); |
127 rare_non_inherited_data_.Access()->flexible_box_data_.Init(); | 127 rare_non_inherited_data_.Access()->flexible_box_data_.Init(); |
128 rare_non_inherited_data_.Access()->multi_col_data_.Init(); | 128 rare_non_inherited_data_.Access()->multi_col_data_.Init(); |
129 rare_non_inherited_data_.Access()->transform_data_.Init(); | 129 rare_non_inherited_data_.Access()->transform_data_.Init(); |
130 rare_non_inherited_data_.Access()->will_change_data_.Init(); | 130 rare_non_inherited_data_.Access()->will_change_data_.Init(); |
131 rare_non_inherited_data_.Access()->filter_.Init(); | |
132 rare_non_inherited_data_.Access()->backdrop_filter_.Init(); | |
133 rare_non_inherited_data_.Access()->grid_data_.Init(); | 131 rare_non_inherited_data_.Access()->grid_data_.Init(); |
134 rare_non_inherited_data_.Access()->grid_item_data_.Init(); | 132 rare_non_inherited_data_.Access()->grid_item_data_.Init(); |
135 rare_non_inherited_data_.Access()->scroll_snap_data_.Init(); | 133 rare_non_inherited_data_.Access()->scroll_snap_data_.Init(); |
136 svg_style_.Init(); | 134 svg_style_.Init(); |
137 } | 135 } |
138 | 136 |
139 ALWAYS_INLINE ComputedStyle::ComputedStyle(const ComputedStyle& o) | 137 ALWAYS_INLINE ComputedStyle::ComputedStyle(const ComputedStyle& o) |
140 : ComputedStyleBase(o), | 138 : ComputedStyleBase(o), |
141 RefCounted<ComputedStyle>(), | 139 RefCounted<ComputedStyle>(), |
142 rare_non_inherited_data_(o.rare_non_inherited_data_), | 140 rare_non_inherited_data_(o.rare_non_inherited_data_), |
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2351 if (value < 0) | 2349 if (value < 0) |
2352 fvalue -= 0.5f; | 2350 fvalue -= 0.5f; |
2353 else | 2351 else |
2354 fvalue += 0.5f; | 2352 fvalue += 0.5f; |
2355 } | 2353 } |
2356 | 2354 |
2357 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); | 2355 return RoundForImpreciseConversion<int>(fvalue / zoom_factor); |
2358 } | 2356 } |
2359 | 2357 |
2360 } // namespace blink | 2358 } // namespace blink |
OLD | NEW |