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

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

Issue 15012010: Remove the CSS_COMPOSITING define, leaving the implementation under the runtime flag, since runtime… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed bogus test Created 7 years, 7 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
« no previous file with comments | « Source/core/rendering/style/StyleRareNonInheritedData.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 , m_appearance(RenderStyle::initialAppearance()) 75 , m_appearance(RenderStyle::initialAppearance())
76 , m_borderFit(RenderStyle::initialBorderFit()) 76 , m_borderFit(RenderStyle::initialBorderFit())
77 , m_textCombine(RenderStyle::initialTextCombine()) 77 , m_textCombine(RenderStyle::initialTextCombine())
78 #if ENABLE(CSS3_TEXT) 78 #if ENABLE(CSS3_TEXT)
79 , m_textDecorationStyle(RenderStyle::initialTextDecorationStyle()) 79 , m_textDecorationStyle(RenderStyle::initialTextDecorationStyle())
80 #endif // CSS3_TEXT 80 #endif // CSS3_TEXT
81 , m_wrapFlow(RenderStyle::initialWrapFlow()) 81 , m_wrapFlow(RenderStyle::initialWrapFlow())
82 , m_wrapThrough(RenderStyle::initialWrapThrough()) 82 , m_wrapThrough(RenderStyle::initialWrapThrough())
83 , m_runningAcceleratedAnimation(false) 83 , m_runningAcceleratedAnimation(false)
84 , m_hasAspectRatio(false) 84 , m_hasAspectRatio(false)
85 #if ENABLE(CSS_COMPOSITING)
86 , m_effectiveBlendMode(RenderStyle::initialBlendMode()) 85 , m_effectiveBlendMode(RenderStyle::initialBlendMode())
87 #endif
88 { 86 {
89 m_maskBoxImage.setMaskDefaults(); 87 m_maskBoxImage.setMaskDefaults();
90 } 88 }
91 89
92 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o) 90 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o)
93 : RefCounted<StyleRareNonInheritedData>() 91 : RefCounted<StyleRareNonInheritedData>()
94 , opacity(o.opacity) 92 , opacity(o.opacity)
95 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) 93 , m_aspectRatioDenominator(o.m_aspectRatioDenominator)
96 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) 94 , m_aspectRatioNumerator(o.m_aspectRatioNumerator)
97 , m_perspective(o.m_perspective) 95 , m_perspective(o.m_perspective)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 , m_appearance(o.m_appearance) 150 , m_appearance(o.m_appearance)
153 , m_borderFit(o.m_borderFit) 151 , m_borderFit(o.m_borderFit)
154 , m_textCombine(o.m_textCombine) 152 , m_textCombine(o.m_textCombine)
155 #if ENABLE(CSS3_TEXT) 153 #if ENABLE(CSS3_TEXT)
156 , m_textDecorationStyle(o.m_textDecorationStyle) 154 , m_textDecorationStyle(o.m_textDecorationStyle)
157 #endif // CSS3_TEXT 155 #endif // CSS3_TEXT
158 , m_wrapFlow(o.m_wrapFlow) 156 , m_wrapFlow(o.m_wrapFlow)
159 , m_wrapThrough(o.m_wrapThrough) 157 , m_wrapThrough(o.m_wrapThrough)
160 , m_runningAcceleratedAnimation(o.m_runningAcceleratedAnimation) 158 , m_runningAcceleratedAnimation(o.m_runningAcceleratedAnimation)
161 , m_hasAspectRatio(o.m_hasAspectRatio) 159 , m_hasAspectRatio(o.m_hasAspectRatio)
162 #if ENABLE(CSS_COMPOSITING)
163 , m_effectiveBlendMode(o.m_effectiveBlendMode) 160 , m_effectiveBlendMode(o.m_effectiveBlendMode)
164 #endif
165 { 161 {
166 } 162 }
167 163
168 StyleRareNonInheritedData::~StyleRareNonInheritedData() 164 StyleRareNonInheritedData::~StyleRareNonInheritedData()
169 { 165 {
170 } 166 }
171 167
172 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c onst 168 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c onst
173 { 169 {
174 return opacity == o.opacity 170 return opacity == o.opacity
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 && marginAfterCollapse == o.marginAfterCollapse 227 && marginAfterCollapse == o.marginAfterCollapse
232 && m_appearance == o.m_appearance 228 && m_appearance == o.m_appearance
233 && m_borderFit == o.m_borderFit 229 && m_borderFit == o.m_borderFit
234 && m_textCombine == o.m_textCombine 230 && m_textCombine == o.m_textCombine
235 #if ENABLE(CSS3_TEXT) 231 #if ENABLE(CSS3_TEXT)
236 && m_textDecorationStyle == o.m_textDecorationStyle 232 && m_textDecorationStyle == o.m_textDecorationStyle
237 #endif // CSS3_TEXT 233 #endif // CSS3_TEXT
238 && m_wrapFlow == o.m_wrapFlow 234 && m_wrapFlow == o.m_wrapFlow
239 && m_wrapThrough == o.m_wrapThrough 235 && m_wrapThrough == o.m_wrapThrough
240 && !m_runningAcceleratedAnimation && !o.m_runningAcceleratedAnimation 236 && !m_runningAcceleratedAnimation && !o.m_runningAcceleratedAnimation
241 #if ENABLE(CSS_COMPOSITING)
242 && m_effectiveBlendMode == o.m_effectiveBlendMode 237 && m_effectiveBlendMode == o.m_effectiveBlendMode
243 #endif
244 && m_hasAspectRatio == o.m_hasAspectRatio; 238 && m_hasAspectRatio == o.m_hasAspectRatio;
245 } 239 }
246 240
247 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite dData& o) const 241 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite dData& o) const
248 { 242 {
249 ContentData* a = m_content.get(); 243 ContentData* a = m_content.get();
250 ContentData* b = o.m_content.get(); 244 ContentData* b = o.m_content.get();
251 245
252 while (a && b && *a == *b) { 246 while (a && b && *a == *b) {
253 a = a->next(); 247 a = a->next();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 info.addMember(m_regionThread, "regionThread"); 323 info.addMember(m_regionThread, "regionThread");
330 324
331 info.ignoreMember(m_perspectiveOriginX); 325 info.ignoreMember(m_perspectiveOriginX);
332 info.ignoreMember(m_perspectiveOriginY); 326 info.ignoreMember(m_perspectiveOriginY);
333 info.ignoreMember(m_pageSize); 327 info.ignoreMember(m_pageSize);
334 info.ignoreMember(m_shapeMargin); 328 info.ignoreMember(m_shapeMargin);
335 info.ignoreMember(m_shapePadding); 329 info.ignoreMember(m_shapePadding);
336 } 330 }
337 331
338 } // namespace WebCore 332 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/style/StyleRareNonInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698