Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: Source/core/rendering/style/StyleRareNonInheritedData.cpp

Issue 643893002: Store [-webkit-]perspective-origin as a LengthPoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 #include "core/rendering/style/StyleFilterData.h" 29 #include "core/rendering/style/StyleFilterData.h"
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_aspectRatio(RenderStyle::initialAspectRatio()) 37 , m_aspectRatio(RenderStyle::initialAspectRatio())
38 , m_perspective(RenderStyle::initialPerspective()) 38 , m_perspective(RenderStyle::initialPerspective())
39 , m_perspectiveOriginX(RenderStyle::initialPerspectiveOriginX()) 39 , m_perspectiveOrigin(RenderStyle::initialPerspectiveOrigin())
40 , m_perspectiveOriginY(RenderStyle::initialPerspectiveOriginY())
41 , lineClamp(RenderStyle::initialLineClamp()) 40 , lineClamp(RenderStyle::initialLineClamp())
42 , m_draggableRegionMode(DraggableRegionNone) 41 , m_draggableRegionMode(DraggableRegionNone)
43 , m_mask(MaskFillLayer, true) 42 , m_mask(MaskFillLayer, true)
44 , m_pageSize() 43 , m_pageSize()
45 , m_shapeOutside(RenderStyle::initialShapeOutside()) 44 , m_shapeOutside(RenderStyle::initialShapeOutside())
46 , m_shapeMargin(RenderStyle::initialShapeMargin()) 45 , m_shapeMargin(RenderStyle::initialShapeMargin())
47 , m_shapeImageThreshold(RenderStyle::initialShapeImageThreshold()) 46 , m_shapeImageThreshold(RenderStyle::initialShapeImageThreshold())
48 , m_clipPath(RenderStyle::initialClipPath()) 47 , m_clipPath(RenderStyle::initialClipPath())
49 , m_textDecorationColor(StyleColor::currentColor()) 48 , m_textDecorationColor(StyleColor::currentColor())
50 , m_visitedLinkTextDecorationColor(StyleColor::currentColor()) 49 , m_visitedLinkTextDecorationColor(StyleColor::currentColor())
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 , m_hasInlineTransform(false) 94 , m_hasInlineTransform(false)
96 { 95 {
97 m_maskBoxImage.setMaskDefaults(); 96 m_maskBoxImage.setMaskDefaults();
98 } 97 }
99 98
100 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o) 99 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o)
101 : RefCounted<StyleRareNonInheritedData>() 100 : RefCounted<StyleRareNonInheritedData>()
102 , opacity(o.opacity) 101 , opacity(o.opacity)
103 , m_aspectRatio(o.m_aspectRatio) 102 , m_aspectRatio(o.m_aspectRatio)
104 , m_perspective(o.m_perspective) 103 , m_perspective(o.m_perspective)
105 , m_perspectiveOriginX(o.m_perspectiveOriginX) 104 , m_perspectiveOrigin(o.m_perspectiveOrigin)
106 , m_perspectiveOriginY(o.m_perspectiveOriginY)
107 , lineClamp(o.lineClamp) 105 , lineClamp(o.lineClamp)
108 , m_draggableRegionMode(o.m_draggableRegionMode) 106 , m_draggableRegionMode(o.m_draggableRegionMode)
109 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox) 107 , m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox)
110 , m_flexibleBox(o.m_flexibleBox) 108 , m_flexibleBox(o.m_flexibleBox)
111 , m_marquee(o.m_marquee) 109 , m_marquee(o.m_marquee)
112 , m_multiCol(o.m_multiCol) 110 , m_multiCol(o.m_multiCol)
113 , m_transform(o.m_transform) 111 , m_transform(o.m_transform)
114 , m_willChange(o.m_willChange) 112 , m_willChange(o.m_willChange)
115 , m_filter(o.m_filter) 113 , m_filter(o.m_filter)
116 , m_grid(o.m_grid) 114 , m_grid(o.m_grid)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 const FilterOperations& filterOperations = m_filter->m_operations; 181 const FilterOperations& filterOperations = m_filter->m_operations;
184 for (unsigned i = 0; i < filterOperations.size(); ++i) 182 for (unsigned i = 0; i < filterOperations.size(); ++i)
185 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations. at(i)); 183 ReferenceFilterBuilder::clearDocumentResourceReference(filterOperations. at(i));
186 } 184 }
187 185
188 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c onst 186 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c onst
189 { 187 {
190 return opacity == o.opacity 188 return opacity == o.opacity
191 && m_aspectRatio == o.m_aspectRatio 189 && m_aspectRatio == o.m_aspectRatio
192 && m_perspective == o.m_perspective 190 && m_perspective == o.m_perspective
193 && m_perspectiveOriginX == o.m_perspectiveOriginX 191 && m_perspectiveOrigin == o.m_perspectiveOrigin
194 && m_perspectiveOriginY == o.m_perspectiveOriginY
195 && lineClamp == o.lineClamp 192 && lineClamp == o.lineClamp
196 && m_draggableRegionMode == o.m_draggableRegionMode 193 && m_draggableRegionMode == o.m_draggableRegionMode
197 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox 194 && m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox
198 && m_flexibleBox == o.m_flexibleBox 195 && m_flexibleBox == o.m_flexibleBox
199 && m_marquee == o.m_marquee 196 && m_marquee == o.m_marquee
200 && m_multiCol == o.m_multiCol 197 && m_multiCol == o.m_multiCol
201 && m_transform == o.m_transform 198 && m_transform == o.m_transform
202 && m_willChange == o.m_willChange 199 && m_willChange == o.m_willChange
203 && m_filter == o.m_filter 200 && m_filter == o.m_filter
204 && m_grid == o.m_grid 201 && m_grid == o.m_grid
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 return false; 305 return false;
309 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); 306 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions);
310 } 307 }
311 308
312 bool StyleRareNonInheritedData::hasFilters() const 309 bool StyleRareNonInheritedData::hasFilters() const
313 { 310 {
314 return m_filter.get() && !m_filter->m_operations.isEmpty(); 311 return m_filter.get() && !m_filter->m_operations.isEmpty();
315 } 312 }
316 313
317 } // namespace blink 314 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698