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

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

Issue 1070143002: [Alignment] Single class for holding the alignment data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied suggested changes. Created 5 years, 8 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 , m_visitedLinkOutlineColor(StyleColor::currentColor()) 50 , m_visitedLinkOutlineColor(StyleColor::currentColor())
51 , m_visitedLinkBorderLeftColor(StyleColor::currentColor()) 51 , m_visitedLinkBorderLeftColor(StyleColor::currentColor())
52 , m_visitedLinkBorderRightColor(StyleColor::currentColor()) 52 , m_visitedLinkBorderRightColor(StyleColor::currentColor())
53 , m_visitedLinkBorderTopColor(StyleColor::currentColor()) 53 , m_visitedLinkBorderTopColor(StyleColor::currentColor())
54 , m_visitedLinkBorderBottomColor(StyleColor::currentColor()) 54 , m_visitedLinkBorderBottomColor(StyleColor::currentColor())
55 , m_order(ComputedStyle::initialOrder()) 55 , m_order(ComputedStyle::initialOrder())
56 , m_objectPosition(ComputedStyle::initialObjectPosition()) 56 , m_objectPosition(ComputedStyle::initialObjectPosition())
57 , m_pageSizeType(PAGE_SIZE_AUTO) 57 , m_pageSizeType(PAGE_SIZE_AUTO)
58 , m_transformStyle3D(ComputedStyle::initialTransformStyle3D()) 58 , m_transformStyle3D(ComputedStyle::initialTransformStyle3D())
59 , m_backfaceVisibility(ComputedStyle::initialBackfaceVisibility()) 59 , m_backfaceVisibility(ComputedStyle::initialBackfaceVisibility())
60 , m_alignContent(ComputedStyle::initialAlignContent()) 60 , m_alignContent(ComputedStyle::initialAlignContent(), ComputedStyle::initia lAlignContentDistribution(), ComputedStyle::initialAlignContentOverflowAlignment ())
61 , m_alignContentDistribution(ComputedStyle::initialAlignContentDistribution( )) 61 , m_alignItems(ComputedStyle::initialAlignItems(), ComputedStyle::initialAli gnItemsOverflowAlignment())
62 , m_alignContentOverflowAlignment(ComputedStyle::initialAlignContentOverflow Alignment()) 62 , m_alignSelf(ComputedStyle::initialAlignSelf(), ComputedStyle::initialAlign SelfOverflowAlignment())
63 , m_alignItems(ComputedStyle::initialAlignItems()) 63 , m_justifyContent(ComputedStyle::initialJustifyContent(), ComputedStyle::in itialJustifyContentDistribution(), ComputedStyle::initialJustifyContentOverflowA lignment())
64 , m_alignItemsOverflowAlignment(ComputedStyle::initialAlignItemsOverflowAlig nment())
65 , m_alignSelf(ComputedStyle::initialAlignSelf())
66 , m_alignSelfOverflowAlignment(ComputedStyle::initialAlignSelfOverflowAlignm ent())
67 , m_justifyContent(ComputedStyle::initialJustifyContent())
68 , m_justifyContentDistribution(ComputedStyle::initialJustifyContentDistribut ion())
69 , m_justifyContentOverflowAlignment(ComputedStyle::initialJustifyContentOver flowAlignment())
70 , userDrag(ComputedStyle::initialUserDrag()) 64 , userDrag(ComputedStyle::initialUserDrag())
71 , textOverflow(ComputedStyle::initialTextOverflow()) 65 , textOverflow(ComputedStyle::initialTextOverflow())
72 , marginBeforeCollapse(MCOLLAPSE) 66 , marginBeforeCollapse(MCOLLAPSE)
73 , marginAfterCollapse(MCOLLAPSE) 67 , marginAfterCollapse(MCOLLAPSE)
74 , m_appearance(ComputedStyle::initialAppearance()) 68 , m_appearance(ComputedStyle::initialAppearance())
75 , m_textCombine(ComputedStyle::initialTextCombine()) 69 , m_textCombine(ComputedStyle::initialTextCombine())
76 , m_textDecorationStyle(ComputedStyle::initialTextDecorationStyle()) 70 , m_textDecorationStyle(ComputedStyle::initialTextDecorationStyle())
77 , m_wrapFlow(ComputedStyle::initialWrapFlow()) 71 , m_wrapFlow(ComputedStyle::initialWrapFlow())
78 , m_wrapThrough(ComputedStyle::initialWrapThrough()) 72 , m_wrapThrough(ComputedStyle::initialWrapThrough())
79 , m_hasCurrentOpacityAnimation(false) 73 , m_hasCurrentOpacityAnimation(false)
80 , m_hasCurrentTransformAnimation(false) 74 , m_hasCurrentTransformAnimation(false)
81 , m_hasCurrentFilterAnimation(false) 75 , m_hasCurrentFilterAnimation(false)
82 , m_runningOpacityAnimationOnCompositor(false) 76 , m_runningOpacityAnimationOnCompositor(false)
83 , m_runningTransformAnimationOnCompositor(false) 77 , m_runningTransformAnimationOnCompositor(false)
84 , m_runningFilterAnimationOnCompositor(false) 78 , m_runningFilterAnimationOnCompositor(false)
85 , m_effectiveBlendMode(ComputedStyle::initialBlendMode()) 79 , m_effectiveBlendMode(ComputedStyle::initialBlendMode())
86 , m_touchAction(ComputedStyle::initialTouchAction()) 80 , m_touchAction(ComputedStyle::initialTouchAction())
87 , m_objectFit(ComputedStyle::initialObjectFit()) 81 , m_objectFit(ComputedStyle::initialObjectFit())
88 , m_isolation(ComputedStyle::initialIsolation()) 82 , m_isolation(ComputedStyle::initialIsolation())
89 , m_justifyItems(ComputedStyle::initialJustifyItems()) 83 , m_justifyItems(ComputedStyle::initialJustifyItems(), ComputedStyle::initia lJustifyItemsOverflowAlignment(), ComputedStyle::initialJustifyItemsPositionType ())
90 , m_justifyItemsOverflowAlignment(ComputedStyle::initialJustifyItemsOverflow Alignment()) 84 , m_justifySelf(ComputedStyle::initialJustifySelf(), ComputedStyle::initialJ ustifySelfOverflowAlignment())
91 , m_justifyItemsPositionType(ComputedStyle::initialJustifyItemsPositionType( ))
92 , m_justifySelf(ComputedStyle::initialJustifySelf())
93 , m_justifySelfOverflowAlignment(ComputedStyle::initialJustifySelfOverflowAl ignment())
94 , m_scrollBehavior(ComputedStyle::initialScrollBehavior()) 85 , m_scrollBehavior(ComputedStyle::initialScrollBehavior())
95 , m_scrollBlocksOn(ComputedStyle::initialScrollBlocksOn()) 86 , m_scrollBlocksOn(ComputedStyle::initialScrollBlocksOn())
96 , m_requiresAcceleratedCompositingForExternalReasons(false) 87 , m_requiresAcceleratedCompositingForExternalReasons(false)
97 , m_hasInlineTransform(false) 88 , m_hasInlineTransform(false)
98 , m_resize(ComputedStyle::initialResize()) 89 , m_resize(ComputedStyle::initialResize())
99 { 90 {
100 m_maskBoxImage.setMaskDefaults(); 91 m_maskBoxImage.setMaskDefaults();
101 } 92 }
102 93
103 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o) 94 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 , m_visitedLinkBorderLeftColor(o.m_visitedLinkBorderLeftColor) 126 , m_visitedLinkBorderLeftColor(o.m_visitedLinkBorderLeftColor)
136 , m_visitedLinkBorderRightColor(o.m_visitedLinkBorderRightColor) 127 , m_visitedLinkBorderRightColor(o.m_visitedLinkBorderRightColor)
137 , m_visitedLinkBorderTopColor(o.m_visitedLinkBorderTopColor) 128 , m_visitedLinkBorderTopColor(o.m_visitedLinkBorderTopColor)
138 , m_visitedLinkBorderBottomColor(o.m_visitedLinkBorderBottomColor) 129 , m_visitedLinkBorderBottomColor(o.m_visitedLinkBorderBottomColor)
139 , m_order(o.m_order) 130 , m_order(o.m_order)
140 , m_objectPosition(o.m_objectPosition) 131 , m_objectPosition(o.m_objectPosition)
141 , m_pageSizeType(o.m_pageSizeType) 132 , m_pageSizeType(o.m_pageSizeType)
142 , m_transformStyle3D(o.m_transformStyle3D) 133 , m_transformStyle3D(o.m_transformStyle3D)
143 , m_backfaceVisibility(o.m_backfaceVisibility) 134 , m_backfaceVisibility(o.m_backfaceVisibility)
144 , m_alignContent(o.m_alignContent) 135 , m_alignContent(o.m_alignContent)
145 , m_alignContentDistribution(o.m_alignContentDistribution)
146 , m_alignContentOverflowAlignment(o.m_alignContentOverflowAlignment)
147 , m_alignItems(o.m_alignItems) 136 , m_alignItems(o.m_alignItems)
148 , m_alignItemsOverflowAlignment(o.m_alignItemsOverflowAlignment)
149 , m_alignSelf(o.m_alignSelf) 137 , m_alignSelf(o.m_alignSelf)
150 , m_alignSelfOverflowAlignment(o.m_alignSelfOverflowAlignment)
151 , m_justifyContent(o.m_justifyContent) 138 , m_justifyContent(o.m_justifyContent)
152 , m_justifyContentDistribution(o.m_justifyContentDistribution)
153 , m_justifyContentOverflowAlignment(o.m_justifyContentOverflowAlignment)
154 , userDrag(o.userDrag) 139 , userDrag(o.userDrag)
155 , textOverflow(o.textOverflow) 140 , textOverflow(o.textOverflow)
156 , marginBeforeCollapse(o.marginBeforeCollapse) 141 , marginBeforeCollapse(o.marginBeforeCollapse)
157 , marginAfterCollapse(o.marginAfterCollapse) 142 , marginAfterCollapse(o.marginAfterCollapse)
158 , m_appearance(o.m_appearance) 143 , m_appearance(o.m_appearance)
159 , m_textCombine(o.m_textCombine) 144 , m_textCombine(o.m_textCombine)
160 , m_textDecorationStyle(o.m_textDecorationStyle) 145 , m_textDecorationStyle(o.m_textDecorationStyle)
161 , m_wrapFlow(o.m_wrapFlow) 146 , m_wrapFlow(o.m_wrapFlow)
162 , m_wrapThrough(o.m_wrapThrough) 147 , m_wrapThrough(o.m_wrapThrough)
163 , m_hasCurrentOpacityAnimation(o.m_hasCurrentOpacityAnimation) 148 , m_hasCurrentOpacityAnimation(o.m_hasCurrentOpacityAnimation)
164 , m_hasCurrentTransformAnimation(o.m_hasCurrentTransformAnimation) 149 , m_hasCurrentTransformAnimation(o.m_hasCurrentTransformAnimation)
165 , m_hasCurrentFilterAnimation(o.m_hasCurrentFilterAnimation) 150 , m_hasCurrentFilterAnimation(o.m_hasCurrentFilterAnimation)
166 , m_runningOpacityAnimationOnCompositor(o.m_runningOpacityAnimationOnComposi tor) 151 , m_runningOpacityAnimationOnCompositor(o.m_runningOpacityAnimationOnComposi tor)
167 , m_runningTransformAnimationOnCompositor(o.m_runningTransformAnimationOnCom positor) 152 , m_runningTransformAnimationOnCompositor(o.m_runningTransformAnimationOnCom positor)
168 , m_runningFilterAnimationOnCompositor(o.m_runningFilterAnimationOnComposito r) 153 , m_runningFilterAnimationOnCompositor(o.m_runningFilterAnimationOnComposito r)
169 , m_effectiveBlendMode(o.m_effectiveBlendMode) 154 , m_effectiveBlendMode(o.m_effectiveBlendMode)
170 , m_touchAction(o.m_touchAction) 155 , m_touchAction(o.m_touchAction)
171 , m_objectFit(o.m_objectFit) 156 , m_objectFit(o.m_objectFit)
172 , m_isolation(o.m_isolation) 157 , m_isolation(o.m_isolation)
173 , m_justifyItems(o.m_justifyItems) 158 , m_justifyItems(o.m_justifyItems)
174 , m_justifyItemsOverflowAlignment(o.m_justifyItemsOverflowAlignment)
175 , m_justifyItemsPositionType(o.m_justifyItemsPositionType)
176 , m_justifySelf(o.m_justifySelf) 159 , m_justifySelf(o.m_justifySelf)
177 , m_justifySelfOverflowAlignment(o.m_justifySelfOverflowAlignment)
178 , m_scrollBehavior(o.m_scrollBehavior) 160 , m_scrollBehavior(o.m_scrollBehavior)
179 , m_scrollBlocksOn(o.m_scrollBlocksOn) 161 , m_scrollBlocksOn(o.m_scrollBlocksOn)
180 , m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAccelerated CompositingForExternalReasons) 162 , m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAccelerated CompositingForExternalReasons)
181 , m_hasInlineTransform(o.m_hasInlineTransform) 163 , m_hasInlineTransform(o.m_hasInlineTransform)
182 , m_resize(o.m_resize) 164 , m_resize(o.m_resize)
183 { 165 {
184 } 166 }
185 167
186 StyleRareNonInheritedData::~StyleRareNonInheritedData() 168 StyleRareNonInheritedData::~StyleRareNonInheritedData()
187 { 169 {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 && m_visitedLinkBorderRightColor == o.m_visitedLinkBorderRightColor 208 && m_visitedLinkBorderRightColor == o.m_visitedLinkBorderRightColor
227 && m_visitedLinkBorderTopColor == o.m_visitedLinkBorderTopColor 209 && m_visitedLinkBorderTopColor == o.m_visitedLinkBorderTopColor
228 && m_visitedLinkBorderBottomColor == o.m_visitedLinkBorderBottomColor 210 && m_visitedLinkBorderBottomColor == o.m_visitedLinkBorderBottomColor
229 && m_order == o.m_order 211 && m_order == o.m_order
230 && m_objectPosition == o.m_objectPosition 212 && m_objectPosition == o.m_objectPosition
231 && m_callbackSelectors == o.m_callbackSelectors 213 && m_callbackSelectors == o.m_callbackSelectors
232 && m_pageSizeType == o.m_pageSizeType 214 && m_pageSizeType == o.m_pageSizeType
233 && m_transformStyle3D == o.m_transformStyle3D 215 && m_transformStyle3D == o.m_transformStyle3D
234 && m_backfaceVisibility == o.m_backfaceVisibility 216 && m_backfaceVisibility == o.m_backfaceVisibility
235 && m_alignContent == o.m_alignContent 217 && m_alignContent == o.m_alignContent
236 && m_alignContentDistribution == o.m_alignContentDistribution
237 && m_alignContentOverflowAlignment == o.m_alignContentOverflowAlignment
238 && m_alignItems == o.m_alignItems 218 && m_alignItems == o.m_alignItems
239 && m_alignItemsOverflowAlignment == o.m_alignItemsOverflowAlignment
240 && m_alignSelf == o.m_alignSelf 219 && m_alignSelf == o.m_alignSelf
241 && m_alignSelfOverflowAlignment == o.m_alignSelfOverflowAlignment
242 && m_justifyContent == o.m_justifyContent 220 && m_justifyContent == o.m_justifyContent
243 && m_justifyContentDistribution == o.m_justifyContentDistribution
244 && m_justifyContentOverflowAlignment == o.m_justifyContentOverflowAlignm ent
245 && userDrag == o.userDrag 221 && userDrag == o.userDrag
246 && textOverflow == o.textOverflow 222 && textOverflow == o.textOverflow
247 && marginBeforeCollapse == o.marginBeforeCollapse 223 && marginBeforeCollapse == o.marginBeforeCollapse
248 && marginAfterCollapse == o.marginAfterCollapse 224 && marginAfterCollapse == o.marginAfterCollapse
249 && m_appearance == o.m_appearance 225 && m_appearance == o.m_appearance
250 && m_textCombine == o.m_textCombine 226 && m_textCombine == o.m_textCombine
251 && m_textDecorationStyle == o.m_textDecorationStyle 227 && m_textDecorationStyle == o.m_textDecorationStyle
252 && m_wrapFlow == o.m_wrapFlow 228 && m_wrapFlow == o.m_wrapFlow
253 && m_wrapThrough == o.m_wrapThrough 229 && m_wrapThrough == o.m_wrapThrough
254 && m_hasCurrentOpacityAnimation == o.m_hasCurrentOpacityAnimation 230 && m_hasCurrentOpacityAnimation == o.m_hasCurrentOpacityAnimation
255 && m_hasCurrentTransformAnimation == o.m_hasCurrentTransformAnimation 231 && m_hasCurrentTransformAnimation == o.m_hasCurrentTransformAnimation
256 && m_hasCurrentFilterAnimation == o.m_hasCurrentFilterAnimation 232 && m_hasCurrentFilterAnimation == o.m_hasCurrentFilterAnimation
257 && m_effectiveBlendMode == o.m_effectiveBlendMode 233 && m_effectiveBlendMode == o.m_effectiveBlendMode
258 && m_touchAction == o.m_touchAction 234 && m_touchAction == o.m_touchAction
259 && m_objectFit == o.m_objectFit 235 && m_objectFit == o.m_objectFit
260 && m_isolation == o.m_isolation 236 && m_isolation == o.m_isolation
261 && m_justifyItems == o.m_justifyItems 237 && m_justifyItems == o.m_justifyItems
262 && m_justifyItemsOverflowAlignment == o.m_justifyItemsOverflowAlignment
263 && m_justifyItemsPositionType == o.m_justifyItemsPositionType
264 && m_justifySelf == o.m_justifySelf 238 && m_justifySelf == o.m_justifySelf
265 && m_justifySelfOverflowAlignment == o.m_justifySelfOverflowAlignment
266 && m_scrollBehavior == o.m_scrollBehavior 239 && m_scrollBehavior == o.m_scrollBehavior
267 && m_scrollBlocksOn == o.m_scrollBlocksOn 240 && m_scrollBlocksOn == o.m_scrollBlocksOn
268 && m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcc eleratedCompositingForExternalReasons 241 && m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcc eleratedCompositingForExternalReasons
269 && m_hasInlineTransform == o.m_hasInlineTransform 242 && m_hasInlineTransform == o.m_hasInlineTransform
270 && m_resize == o.m_resize; 243 && m_resize == o.m_resize;
271 } 244 }
272 245
273 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite dData& o) const 246 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite dData& o) const
274 { 247 {
275 ContentData* a = m_content.get(); 248 ContentData* a = m_content.get();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 { 298 {
326 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); 299 return dataEquivalent(m_shapeOutside, o.m_shapeOutside);
327 } 300 }
328 301
329 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit edData& o) const 302 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit edData& o) const
330 { 303 {
331 return dataEquivalent(m_clipPath, o.m_clipPath); 304 return dataEquivalent(m_clipPath, o.m_clipPath);
332 } 305 }
333 306
334 } // namespace blink 307 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698