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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp

Issue 2704343003: Catch up the spec update in CSS Rhythmic Sizing (Closed)
Patch Set: Sorted CSSProperties.json5 alphabetically (meade@'s nit) Created 3 years, 9 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 | « third_party/WebKit/Source/core/style/StyleRareInheritedData.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, 2009, 2010 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 Color colors[7]; 42 Color colors[7];
43 void* ownPtrs[1]; 43 void* ownPtrs[1];
44 AtomicString atomicStrings[3]; 44 AtomicString atomicStrings[3];
45 void* refPtrs[1]; 45 void* refPtrs[1];
46 Persistent<void*> persistentHandles[2]; 46 Persistent<void*> persistentHandles[2];
47 Length lengths[1]; 47 Length lengths[1];
48 float secondFloat; 48 float secondFloat;
49 unsigned m_bitfields[2]; 49 unsigned m_bitfields[2];
50 short pagedMediaShorts[2]; 50 short pagedMediaShorts[2];
51 short hyphenationShorts[3]; 51 short hyphenationShorts[3];
52 uint8_t snapHeight; 52 uint8_t lineHeightStep;
53 53
54 Color touchColors; 54 Color touchColors;
55 TabSize tabSize; 55 TabSize tabSize;
56 void* variables[1]; 56 void* variables[1];
57 TextSizeAdjust textSizeAdjust; 57 TextSizeAdjust textSizeAdjust;
58 }; 58 };
59 59
60 static_assert(sizeof(StyleRareInheritedData) <= 60 static_assert(sizeof(StyleRareInheritedData) <=
61 sizeof(SameSizeAsStyleRareInheritedData), 61 sizeof(SameSizeAsStyleRareInheritedData),
62 "StyleRareInheritedData should stay small"); 62 "StyleRareInheritedData should stay small");
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 m_textCombine(ComputedStyle::initialTextCombine()), 95 m_textCombine(ComputedStyle::initialTextCombine()),
96 m_textIndentLine(ComputedStyle::initialTextIndentLine()), 96 m_textIndentLine(ComputedStyle::initialTextIndentLine()),
97 m_textIndentType(ComputedStyle::initialTextIndentLine()), 97 m_textIndentType(ComputedStyle::initialTextIndentLine()),
98 m_imageRendering(ComputedStyle::initialImageRendering()), 98 m_imageRendering(ComputedStyle::initialImageRendering()),
99 m_textUnderlinePosition(ComputedStyle::initialTextUnderlinePosition()), 99 m_textUnderlinePosition(ComputedStyle::initialTextUnderlinePosition()),
100 m_textDecorationSkip(ComputedStyle::initialTextDecorationSkip()), 100 m_textDecorationSkip(ComputedStyle::initialTextDecorationSkip()),
101 m_rubyPosition(ComputedStyle::initialRubyPosition()), 101 m_rubyPosition(ComputedStyle::initialRubyPosition()),
102 m_subtreeWillChangeContents(false), 102 m_subtreeWillChangeContents(false),
103 m_selfOrAncestorHasDirAutoAttribute(false), 103 m_selfOrAncestorHasDirAutoAttribute(false),
104 m_respectImageOrientation(false), 104 m_respectImageOrientation(false),
105 m_snapHeightPosition(0),
106 hyphenationLimitBefore(-1), 105 hyphenationLimitBefore(-1),
107 hyphenationLimitAfter(-1), 106 hyphenationLimitAfter(-1),
108 hyphenationLimitLines(-1), 107 hyphenationLimitLines(-1),
109 m_snapHeightUnit(0), 108 m_lineHeightStep(0),
110 tapHighlightColor(ComputedStyle::initialTapHighlightColor()), 109 tapHighlightColor(ComputedStyle::initialTapHighlightColor()),
111 m_tabSize(ComputedStyle::initialTabSize()), 110 m_tabSize(ComputedStyle::initialTabSize()),
112 m_textSizeAdjust(ComputedStyle::initialTextSizeAdjust()) {} 111 m_textSizeAdjust(ComputedStyle::initialTextSizeAdjust()) {}
113 112
114 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o) 113 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
115 : RefCounted<StyleRareInheritedData>(), 114 : RefCounted<StyleRareInheritedData>(),
116 listStyleImage(o.listStyleImage), 115 listStyleImage(o.listStyleImage),
117 m_textStrokeColor(o.m_textStrokeColor), 116 m_textStrokeColor(o.m_textStrokeColor),
118 textStrokeWidth(o.textStrokeWidth), 117 textStrokeWidth(o.textStrokeWidth),
119 m_textFillColor(o.m_textFillColor), 118 m_textFillColor(o.m_textFillColor),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 m_textIndentLine(o.m_textIndentLine), 161 m_textIndentLine(o.m_textIndentLine),
163 m_textIndentType(o.m_textIndentType), 162 m_textIndentType(o.m_textIndentType),
164 m_imageRendering(o.m_imageRendering), 163 m_imageRendering(o.m_imageRendering),
165 m_textUnderlinePosition(o.m_textUnderlinePosition), 164 m_textUnderlinePosition(o.m_textUnderlinePosition),
166 m_textDecorationSkip(o.m_textDecorationSkip), 165 m_textDecorationSkip(o.m_textDecorationSkip),
167 m_rubyPosition(o.m_rubyPosition), 166 m_rubyPosition(o.m_rubyPosition),
168 m_subtreeWillChangeContents(o.m_subtreeWillChangeContents), 167 m_subtreeWillChangeContents(o.m_subtreeWillChangeContents),
169 m_selfOrAncestorHasDirAutoAttribute( 168 m_selfOrAncestorHasDirAutoAttribute(
170 o.m_selfOrAncestorHasDirAutoAttribute), 169 o.m_selfOrAncestorHasDirAutoAttribute),
171 m_respectImageOrientation(o.m_respectImageOrientation), 170 m_respectImageOrientation(o.m_respectImageOrientation),
172 m_snapHeightPosition(o.m_snapHeightPosition),
173 hyphenationString(o.hyphenationString), 171 hyphenationString(o.hyphenationString),
174 hyphenationLimitBefore(o.hyphenationLimitBefore), 172 hyphenationLimitBefore(o.hyphenationLimitBefore),
175 hyphenationLimitAfter(o.hyphenationLimitAfter), 173 hyphenationLimitAfter(o.hyphenationLimitAfter),
176 hyphenationLimitLines(o.hyphenationLimitLines), 174 hyphenationLimitLines(o.hyphenationLimitLines),
177 m_snapHeightUnit(o.m_snapHeightUnit), 175 m_lineHeightStep(o.m_lineHeightStep),
178 textEmphasisCustomMark(o.textEmphasisCustomMark), 176 textEmphasisCustomMark(o.textEmphasisCustomMark),
179 tapHighlightColor(o.tapHighlightColor), 177 tapHighlightColor(o.tapHighlightColor),
180 appliedTextDecorations(o.appliedTextDecorations), 178 appliedTextDecorations(o.appliedTextDecorations),
181 m_tabSize(o.m_tabSize), 179 m_tabSize(o.m_tabSize),
182 variables(o.variables), 180 variables(o.variables),
183 m_textSizeAdjust(o.m_textSizeAdjust) {} 181 m_textSizeAdjust(o.m_textSizeAdjust) {}
184 182
185 StyleRareInheritedData::~StyleRareInheritedData() {} 183 StyleRareInheritedData::~StyleRareInheritedData() {}
186 184
187 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const { 185 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 m_textAlignLast == o.m_textAlignLast && 225 m_textAlignLast == o.m_textAlignLast &&
228 m_textJustify == o.m_textJustify && 226 m_textJustify == o.m_textJustify &&
229 m_textOrientation == o.m_textOrientation && 227 m_textOrientation == o.m_textOrientation &&
230 m_textCombine == o.m_textCombine && 228 m_textCombine == o.m_textCombine &&
231 m_textIndentLine == o.m_textIndentLine && 229 m_textIndentLine == o.m_textIndentLine &&
232 m_textIndentType == o.m_textIndentType && 230 m_textIndentType == o.m_textIndentType &&
233 m_subtreeWillChangeContents == o.m_subtreeWillChangeContents && 231 m_subtreeWillChangeContents == o.m_subtreeWillChangeContents &&
234 m_selfOrAncestorHasDirAutoAttribute == 232 m_selfOrAncestorHasDirAutoAttribute ==
235 o.m_selfOrAncestorHasDirAutoAttribute && 233 o.m_selfOrAncestorHasDirAutoAttribute &&
236 m_respectImageOrientation == o.m_respectImageOrientation && 234 m_respectImageOrientation == o.m_respectImageOrientation &&
237 m_snapHeightPosition == o.m_snapHeightPosition &&
238 hyphenationString == o.hyphenationString && 235 hyphenationString == o.hyphenationString &&
239 m_snapHeightUnit == o.m_snapHeightUnit && 236 m_lineHeightStep == o.m_lineHeightStep &&
240 textEmphasisCustomMark == o.textEmphasisCustomMark && 237 textEmphasisCustomMark == o.textEmphasisCustomMark &&
241 quotesDataEquivalent(o) && m_tabSize == o.m_tabSize && 238 quotesDataEquivalent(o) && m_tabSize == o.m_tabSize &&
242 m_imageRendering == o.m_imageRendering && 239 m_imageRendering == o.m_imageRendering &&
243 m_textUnderlinePosition == o.m_textUnderlinePosition && 240 m_textUnderlinePosition == o.m_textUnderlinePosition &&
244 m_textDecorationSkip == o.m_textDecorationSkip && 241 m_textDecorationSkip == o.m_textDecorationSkip &&
245 m_rubyPosition == o.m_rubyPosition && 242 m_rubyPosition == o.m_rubyPosition &&
246 dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) && 243 dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) &&
247 dataEquivalent(appliedTextDecorations, o.appliedTextDecorations) && 244 dataEquivalent(appliedTextDecorations, o.appliedTextDecorations) &&
248 dataEquivalent(variables, o.variables) && 245 dataEquivalent(variables, o.variables) &&
249 m_textSizeAdjust == o.m_textSizeAdjust; 246 m_textSizeAdjust == o.m_textSizeAdjust;
250 } 247 }
251 248
252 bool StyleRareInheritedData::shadowDataEquivalent( 249 bool StyleRareInheritedData::shadowDataEquivalent(
253 const StyleRareInheritedData& o) const { 250 const StyleRareInheritedData& o) const {
254 return dataEquivalent(textShadow.get(), o.textShadow.get()); 251 return dataEquivalent(textShadow.get(), o.textShadow.get());
255 } 252 }
256 253
257 bool StyleRareInheritedData::quotesDataEquivalent( 254 bool StyleRareInheritedData::quotesDataEquivalent(
258 const StyleRareInheritedData& o) const { 255 const StyleRareInheritedData& o) const {
259 return dataEquivalent(quotes, o.quotes); 256 return dataEquivalent(quotes, o.quotes);
260 } 257 }
261 258
262 } // namespace blink 259 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698