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

Side by Side Diff: sky/engine/core/rendering/style/StyleRareNonInheritedData.cpp

Issue 893093002: Delete remaining masks dead code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 19 matching lines...) Expand all
30 30
31 namespace blink { 31 namespace blink {
32 32
33 StyleRareNonInheritedData::StyleRareNonInheritedData() 33 StyleRareNonInheritedData::StyleRareNonInheritedData()
34 : opacity(RenderStyle::initialOpacity()) 34 : opacity(RenderStyle::initialOpacity())
35 , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator()) 35 , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator())
36 , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator()) 36 , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator())
37 , m_perspective(RenderStyle::initialPerspective()) 37 , m_perspective(RenderStyle::initialPerspective())
38 , m_perspectiveOriginX(RenderStyle::initialPerspectiveOriginX()) 38 , m_perspectiveOriginX(RenderStyle::initialPerspectiveOriginX())
39 , m_perspectiveOriginY(RenderStyle::initialPerspectiveOriginY()) 39 , m_perspectiveOriginY(RenderStyle::initialPerspectiveOriginY())
40 , m_mask(MaskFillLayer, true)
41 , m_pageSize() 40 , m_pageSize()
42 , m_clipPath(RenderStyle::initialClipPath()) 41 , m_clipPath(RenderStyle::initialClipPath())
43 , m_textDecorationColor(StyleColor::currentColor()) 42 , m_textDecorationColor(StyleColor::currentColor())
44 , m_order(RenderStyle::initialOrder()) 43 , m_order(RenderStyle::initialOrder())
45 , m_objectPosition(RenderStyle::initialObjectPosition()) 44 , m_objectPosition(RenderStyle::initialObjectPosition())
46 , m_pageSizeType(PAGE_SIZE_AUTO) 45 , m_pageSizeType(PAGE_SIZE_AUTO)
47 , m_transformStyle3D(RenderStyle::initialTransformStyle3D()) 46 , m_transformStyle3D(RenderStyle::initialTransformStyle3D())
48 , m_backfaceVisibility(RenderStyle::initialBackfaceVisibility()) 47 , m_backfaceVisibility(RenderStyle::initialBackfaceVisibility())
49 , m_alignContent(RenderStyle::initialAlignContent()) 48 , m_alignContent(RenderStyle::initialAlignContent())
50 , m_alignItems(RenderStyle::initialAlignItems()) 49 , m_alignItems(RenderStyle::initialAlignItems())
51 , m_alignItemsOverflowAlignment(RenderStyle::initialAlignItemsOverflowAlignm ent()) 50 , m_alignItemsOverflowAlignment(RenderStyle::initialAlignItemsOverflowAlignm ent())
52 , m_alignSelf(RenderStyle::initialAlignSelf()) 51 , m_alignSelf(RenderStyle::initialAlignSelf())
53 , m_alignSelfOverflowAlignment(RenderStyle::initialAlignSelfOverflowAlignmen t()) 52 , m_alignSelfOverflowAlignment(RenderStyle::initialAlignSelfOverflowAlignmen t())
54 , m_justifyContent(RenderStyle::initialJustifyContent()) 53 , m_justifyContent(RenderStyle::initialJustifyContent())
55 , userDrag(RenderStyle::initialUserDrag()) 54 , userDrag(RenderStyle::initialUserDrag())
56 , textOverflow(RenderStyle::initialTextOverflow()) 55 , textOverflow(RenderStyle::initialTextOverflow())
57 , m_textDecorationStyle(RenderStyle::initialTextDecorationStyle()) 56 , m_textDecorationStyle(RenderStyle::initialTextDecorationStyle())
58 , m_wrapFlow(RenderStyle::initialWrapFlow()) 57 , m_wrapFlow(RenderStyle::initialWrapFlow())
59 , m_wrapThrough(RenderStyle::initialWrapThrough()) 58 , m_wrapThrough(RenderStyle::initialWrapThrough())
60 , m_hasAspectRatio(false) 59 , m_hasAspectRatio(false)
61 , m_touchAction(RenderStyle::initialTouchAction()) 60 , m_touchAction(RenderStyle::initialTouchAction())
62 , m_objectFit(RenderStyle::initialObjectFit()) 61 , m_objectFit(RenderStyle::initialObjectFit())
63 , m_justifyItems(RenderStyle::initialJustifyItems()) 62 , m_justifyItems(RenderStyle::initialJustifyItems())
64 , m_justifyItemsOverflowAlignment(RenderStyle::initialJustifyItemsOverflowAl ignment()) 63 , m_justifyItemsOverflowAlignment(RenderStyle::initialJustifyItemsOverflowAl ignment())
65 , m_justifyItemsPositionType(RenderStyle::initialJustifyItemsPositionType()) 64 , m_justifyItemsPositionType(RenderStyle::initialJustifyItemsPositionType())
66 , m_justifySelf(RenderStyle::initialJustifySelf()) 65 , m_justifySelf(RenderStyle::initialJustifySelf())
67 , m_justifySelfOverflowAlignment(RenderStyle::initialJustifySelfOverflowAlig nment()) 66 , m_justifySelfOverflowAlignment(RenderStyle::initialJustifySelfOverflowAlig nment())
68 { 67 {
69 m_maskBoxImage.setMaskDefaults();
70 } 68 }
71 69
72 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o) 70 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited Data& o)
73 : RefCounted<StyleRareNonInheritedData>() 71 : RefCounted<StyleRareNonInheritedData>()
74 , opacity(o.opacity) 72 , opacity(o.opacity)
75 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) 73 , m_aspectRatioDenominator(o.m_aspectRatioDenominator)
76 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) 74 , m_aspectRatioNumerator(o.m_aspectRatioNumerator)
77 , m_perspective(o.m_perspective) 75 , m_perspective(o.m_perspective)
78 , m_perspectiveOriginX(o.m_perspectiveOriginX) 76 , m_perspectiveOriginX(o.m_perspectiveOriginX)
79 , m_perspectiveOriginY(o.m_perspectiveOriginY) 77 , m_perspectiveOriginY(o.m_perspectiveOriginY)
80 , m_flexibleBox(o.m_flexibleBox) 78 , m_flexibleBox(o.m_flexibleBox)
81 , m_transform(o.m_transform) 79 , m_transform(o.m_transform)
82 , m_willChange(o.m_willChange) 80 , m_willChange(o.m_willChange)
83 , m_filter(o.m_filter) 81 , m_filter(o.m_filter)
84 , m_counterDirectives(o.m_counterDirectives ? clone(*o.m_counterDirectives) : nullptr) 82 , m_counterDirectives(o.m_counterDirectives ? clone(*o.m_counterDirectives) : nullptr)
85 , m_boxShadow(o.m_boxShadow) 83 , m_boxShadow(o.m_boxShadow)
86 , m_animations(o.m_animations ? CSSAnimationData::create(*o.m_animations) : nullptr) 84 , m_animations(o.m_animations ? CSSAnimationData::create(*o.m_animations) : nullptr)
87 , m_transitions(o.m_transitions ? CSSTransitionData::create(*o.m_transitions ) : nullptr) 85 , m_transitions(o.m_transitions ? CSSTransitionData::create(*o.m_transitions ) : nullptr)
88 , m_mask(o.m_mask)
89 , m_maskBoxImage(o.m_maskBoxImage)
90 , m_pageSize(o.m_pageSize) 86 , m_pageSize(o.m_pageSize)
91 , m_clipPath(o.m_clipPath) 87 , m_clipPath(o.m_clipPath)
92 , m_textDecorationColor(o.m_textDecorationColor) 88 , m_textDecorationColor(o.m_textDecorationColor)
93 , m_order(o.m_order) 89 , m_order(o.m_order)
94 , m_objectPosition(o.m_objectPosition) 90 , m_objectPosition(o.m_objectPosition)
95 , m_pageSizeType(o.m_pageSizeType) 91 , m_pageSizeType(o.m_pageSizeType)
96 , m_transformStyle3D(o.m_transformStyle3D) 92 , m_transformStyle3D(o.m_transformStyle3D)
97 , m_backfaceVisibility(o.m_backfaceVisibility) 93 , m_backfaceVisibility(o.m_backfaceVisibility)
98 , m_alignContent(o.m_alignContent) 94 , m_alignContent(o.m_alignContent)
99 , m_alignItems(o.m_alignItems) 95 , m_alignItems(o.m_alignItems)
(...skipping 30 matching lines...) Expand all
130 && m_perspectiveOriginX == o.m_perspectiveOriginX 126 && m_perspectiveOriginX == o.m_perspectiveOriginX
131 && m_perspectiveOriginY == o.m_perspectiveOriginY 127 && m_perspectiveOriginY == o.m_perspectiveOriginY
132 && m_flexibleBox == o.m_flexibleBox 128 && m_flexibleBox == o.m_flexibleBox
133 && m_transform == o.m_transform 129 && m_transform == o.m_transform
134 && m_willChange == o.m_willChange 130 && m_willChange == o.m_willChange
135 && m_filter == o.m_filter 131 && m_filter == o.m_filter
136 && counterDataEquivalent(o) 132 && counterDataEquivalent(o)
137 && shadowDataEquivalent(o) 133 && shadowDataEquivalent(o)
138 && animationDataEquivalent(o) 134 && animationDataEquivalent(o)
139 && transitionDataEquivalent(o) 135 && transitionDataEquivalent(o)
140 && m_mask == o.m_mask
141 && m_maskBoxImage == o.m_maskBoxImage
142 && m_pageSize == o.m_pageSize 136 && m_pageSize == o.m_pageSize
143 && m_clipPath == o.m_clipPath 137 && m_clipPath == o.m_clipPath
144 && m_textDecorationColor == o.m_textDecorationColor 138 && m_textDecorationColor == o.m_textDecorationColor
145 && m_order == o.m_order 139 && m_order == o.m_order
146 && m_objectPosition == o.m_objectPosition 140 && m_objectPosition == o.m_objectPosition
147 && m_pageSizeType == o.m_pageSizeType 141 && m_pageSizeType == o.m_pageSizeType
148 && m_transformStyle3D == o.m_transformStyle3D 142 && m_transformStyle3D == o.m_transformStyle3D
149 && m_backfaceVisibility == o.m_backfaceVisibility 143 && m_backfaceVisibility == o.m_backfaceVisibility
150 && m_alignContent == o.m_alignContent 144 && m_alignContent == o.m_alignContent
151 && m_alignItems == o.m_alignItems 145 && m_alignItems == o.m_alignItems
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 return false; 189 return false;
196 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions); 190 return m_transitions->transitionsMatchForStyleRecalc(*o.m_transitions);
197 } 191 }
198 192
199 bool StyleRareNonInheritedData::hasFilters() const 193 bool StyleRareNonInheritedData::hasFilters() const
200 { 194 {
201 return m_filter.get() && !m_filter->m_operations.isEmpty(); 195 return m_filter.get() && !m_filter->m_operations.isEmpty();
202 } 196 }
203 197
204 } // namespace blink 198 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/style/StyleRareNonInheritedData.h ('k') | sky/engine/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698