| 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 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "core/rendering/style/StyleTransformData.h" | 30 #include "core/rendering/style/StyleTransformData.h" |
| 31 #include "core/rendering/svg/ReferenceFilterBuilder.h" | 31 #include "core/rendering/svg/ReferenceFilterBuilder.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 StyleRareNonInheritedData::StyleRareNonInheritedData() | 35 StyleRareNonInheritedData::StyleRareNonInheritedData() |
| 36 : opacity(RenderStyle::initialOpacity()) | 36 : opacity(RenderStyle::initialOpacity()) |
| 37 , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator()) | 37 , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator()) |
| 38 , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator()) | 38 , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator()) |
| 39 , m_perspective(RenderStyle::initialPerspective()) | 39 , m_perspective(RenderStyle::initialPerspective()) |
| 40 , m_perspectiveOriginX(RenderStyle::initialPerspectiveOriginX()) | 40 , m_perspectiveOrigin(RenderStyle::initialPerspectiveOrigin()) |
| 41 , m_perspectiveOriginY(RenderStyle::initialPerspectiveOriginY()) | |
| 42 , lineClamp(RenderStyle::initialLineClamp()) | 41 , lineClamp(RenderStyle::initialLineClamp()) |
| 43 , m_draggableRegionMode(DraggableRegionNone) | 42 , m_draggableRegionMode(DraggableRegionNone) |
| 44 , m_mask(MaskFillLayer, true) | 43 , m_mask(MaskFillLayer, true) |
| 45 , m_pageSize() | 44 , m_pageSize() |
| 46 , m_shapeOutside(RenderStyle::initialShapeOutside()) | 45 , m_shapeOutside(RenderStyle::initialShapeOutside()) |
| 47 , m_shapeMargin(RenderStyle::initialShapeMargin()) | 46 , m_shapeMargin(RenderStyle::initialShapeMargin()) |
| 48 , m_shapeImageThreshold(RenderStyle::initialShapeImageThreshold()) | 47 , m_shapeImageThreshold(RenderStyle::initialShapeImageThreshold()) |
| 49 , m_clipPath(RenderStyle::initialClipPath()) | 48 , m_clipPath(RenderStyle::initialClipPath()) |
| 50 , m_textDecorationColor(StyleColor::currentColor()) | 49 , m_textDecorationColor(StyleColor::currentColor()) |
| 51 , m_visitedLinkTextDecorationColor(StyleColor::currentColor()) | 50 , m_visitedLinkTextDecorationColor(StyleColor::currentColor()) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 { | 96 { |
| 98 m_maskBoxImage.setMaskDefaults(); | 97 m_maskBoxImage.setMaskDefaults(); |
| 99 } | 98 } |
| 100 | 99 |
| 101 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) | 100 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) |
| 102 : RefCounted<StyleRareNonInheritedData>() | 101 : RefCounted<StyleRareNonInheritedData>() |
| 103 , opacity(o.opacity) | 102 , opacity(o.opacity) |
| 104 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) | 103 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) |
| 105 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) | 104 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) |
| 106 , m_perspective(o.m_perspective) | 105 , m_perspective(o.m_perspective) |
| 107 , m_perspectiveOriginX(o.m_perspectiveOriginX) | 106 , m_perspectiveOrigin(o.m_perspectiveOrigin) |
| 108 , m_perspectiveOriginY(o.m_perspectiveOriginY) | |
| 109 , lineClamp(o.lineClamp) | 107 , lineClamp(o.lineClamp) |
| 110 , m_draggableRegionMode(o.m_draggableRegionMode) | 108 , m_draggableRegionMode(o.m_draggableRegionMode) |
| 111 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox) | 109 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox) |
| 112 , m_flexibleBox(o.m_flexibleBox) | 110 , m_flexibleBox(o.m_flexibleBox) |
| 113 , m_marquee(o.m_marquee) | 111 , m_marquee(o.m_marquee) |
| 114 , m_multiCol(o.m_multiCol) | 112 , m_multiCol(o.m_multiCol) |
| 115 , m_transform(o.m_transform) | 113 , m_transform(o.m_transform) |
| 116 , m_willChange(o.m_willChange) | 114 , m_willChange(o.m_willChange) |
| 117 , m_filter(o.m_filter) | 115 , m_filter(o.m_filter) |
| 118 , m_grid(o.m_grid) | 116 , m_grid(o.m_grid) |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 for (unsigned i = 0; i < filterOperations.size(); ++i) | 184 for (unsigned i = 0; i < filterOperations.size(); ++i) |
| 187 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations.
at(i)); | 185 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations.
at(i)); |
| 188 } | 186 } |
| 189 | 187 |
| 190 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst | 188 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst |
| 191 { | 189 { |
| 192 return opacity == o.opacity | 190 return opacity == o.opacity |
| 193 && m_aspectRatioDenominator == o.m_aspectRatioDenominator | 191 && m_aspectRatioDenominator == o.m_aspectRatioDenominator |
| 194 && m_aspectRatioNumerator == o.m_aspectRatioNumerator | 192 && m_aspectRatioNumerator == o.m_aspectRatioNumerator |
| 195 && m_perspective == o.m_perspective | 193 && m_perspective == o.m_perspective |
| 196 && m_perspectiveOriginX == o.m_perspectiveOriginX | 194 && m_perspectiveOrigin == o.m_perspectiveOrigin |
| 197 && m_perspectiveOriginY == o.m_perspectiveOriginY | |
| 198 && lineClamp == o.lineClamp | 195 && lineClamp == o.lineClamp |
| 199 && m_draggableRegionMode == o.m_draggableRegionMode | 196 && m_draggableRegionMode == o.m_draggableRegionMode |
| 200 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox | 197 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox |
| 201 && m_flexibleBox == o.m_flexibleBox | 198 && m_flexibleBox == o.m_flexibleBox |
| 202 && m_marquee == o.m_marquee | 199 && m_marquee == o.m_marquee |
| 203 && m_multiCol == o.m_multiCol | 200 && m_multiCol == o.m_multiCol |
| 204 && m_transform == o.m_transform | 201 && m_transform == o.m_transform |
| 205 && m_willChange == o.m_willChange | 202 && m_willChange == o.m_willChange |
| 206 && m_filter == o.m_filter | 203 && m_filter == o.m_filter |
| 207 && m_grid == o.m_grid | 204 && m_grid == o.m_grid |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 return false; | 308 return false; |
| 312 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); | 309 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); |
| 313 } | 310 } |
| 314 | 311 |
| 315 bool StyleRareNonInheritedData::hasFilters() const | 312 bool StyleRareNonInheritedData::hasFilters() const |
| 316 { | 313 { |
| 317 return m_filter.get() && !m_filter->m_operations.isEmpty(); | 314 return m_filter.get() && !m_filter->m_operations.isEmpty(); |
| 318 } | 315 } |
| 319 | 316 |
| 320 } // namespace blink | 317 } // namespace blink |
| OLD | NEW |