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

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

Issue 2737673003: Revert of Catch up the spec update in CSS Rhythmic Sizing (Closed)
Patch Set: 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 lineHeightStep; 52 uint8_t snapHeight;
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),
105 hyphenationLimitBefore(-1), 106 hyphenationLimitBefore(-1),
106 hyphenationLimitAfter(-1), 107 hyphenationLimitAfter(-1),
107 hyphenationLimitLines(-1), 108 hyphenationLimitLines(-1),
108 m_lineHeightStep(0), 109 m_snapHeightUnit(0),
109 tapHighlightColor(ComputedStyle::initialTapHighlightColor()), 110 tapHighlightColor(ComputedStyle::initialTapHighlightColor()),
110 m_tabSize(ComputedStyle::initialTabSize()), 111 m_tabSize(ComputedStyle::initialTabSize()),
111 m_textSizeAdjust(ComputedStyle::initialTextSizeAdjust()) {} 112 m_textSizeAdjust(ComputedStyle::initialTextSizeAdjust()) {}
112 113
113 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o) 114 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
114 : RefCounted<StyleRareInheritedData>(), 115 : RefCounted<StyleRareInheritedData>(),
115 listStyleImage(o.listStyleImage), 116 listStyleImage(o.listStyleImage),
116 m_textStrokeColor(o.m_textStrokeColor), 117 m_textStrokeColor(o.m_textStrokeColor),
117 textStrokeWidth(o.textStrokeWidth), 118 textStrokeWidth(o.textStrokeWidth),
118 m_textFillColor(o.m_textFillColor), 119 m_textFillColor(o.m_textFillColor),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 m_textIndentLine(o.m_textIndentLine), 162 m_textIndentLine(o.m_textIndentLine),
162 m_textIndentType(o.m_textIndentType), 163 m_textIndentType(o.m_textIndentType),
163 m_imageRendering(o.m_imageRendering), 164 m_imageRendering(o.m_imageRendering),
164 m_textUnderlinePosition(o.m_textUnderlinePosition), 165 m_textUnderlinePosition(o.m_textUnderlinePosition),
165 m_textDecorationSkip(o.m_textDecorationSkip), 166 m_textDecorationSkip(o.m_textDecorationSkip),
166 m_rubyPosition(o.m_rubyPosition), 167 m_rubyPosition(o.m_rubyPosition),
167 m_subtreeWillChangeContents(o.m_subtreeWillChangeContents), 168 m_subtreeWillChangeContents(o.m_subtreeWillChangeContents),
168 m_selfOrAncestorHasDirAutoAttribute( 169 m_selfOrAncestorHasDirAutoAttribute(
169 o.m_selfOrAncestorHasDirAutoAttribute), 170 o.m_selfOrAncestorHasDirAutoAttribute),
170 m_respectImageOrientation(o.m_respectImageOrientation), 171 m_respectImageOrientation(o.m_respectImageOrientation),
172 m_snapHeightPosition(o.m_snapHeightPosition),
171 hyphenationString(o.hyphenationString), 173 hyphenationString(o.hyphenationString),
172 hyphenationLimitBefore(o.hyphenationLimitBefore), 174 hyphenationLimitBefore(o.hyphenationLimitBefore),
173 hyphenationLimitAfter(o.hyphenationLimitAfter), 175 hyphenationLimitAfter(o.hyphenationLimitAfter),
174 hyphenationLimitLines(o.hyphenationLimitLines), 176 hyphenationLimitLines(o.hyphenationLimitLines),
175 m_lineHeightStep(o.m_lineHeightStep), 177 m_snapHeightUnit(o.m_snapHeightUnit),
176 textEmphasisCustomMark(o.textEmphasisCustomMark), 178 textEmphasisCustomMark(o.textEmphasisCustomMark),
177 tapHighlightColor(o.tapHighlightColor), 179 tapHighlightColor(o.tapHighlightColor),
178 appliedTextDecorations(o.appliedTextDecorations), 180 appliedTextDecorations(o.appliedTextDecorations),
179 m_tabSize(o.m_tabSize), 181 m_tabSize(o.m_tabSize),
180 variables(o.variables), 182 variables(o.variables),
181 m_textSizeAdjust(o.m_textSizeAdjust) {} 183 m_textSizeAdjust(o.m_textSizeAdjust) {}
182 184
183 StyleRareInheritedData::~StyleRareInheritedData() {} 185 StyleRareInheritedData::~StyleRareInheritedData() {}
184 186
185 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const { 187 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 m_textAlignLast == o.m_textAlignLast && 227 m_textAlignLast == o.m_textAlignLast &&
226 m_textJustify == o.m_textJustify && 228 m_textJustify == o.m_textJustify &&
227 m_textOrientation == o.m_textOrientation && 229 m_textOrientation == o.m_textOrientation &&
228 m_textCombine == o.m_textCombine && 230 m_textCombine == o.m_textCombine &&
229 m_textIndentLine == o.m_textIndentLine && 231 m_textIndentLine == o.m_textIndentLine &&
230 m_textIndentType == o.m_textIndentType && 232 m_textIndentType == o.m_textIndentType &&
231 m_subtreeWillChangeContents == o.m_subtreeWillChangeContents && 233 m_subtreeWillChangeContents == o.m_subtreeWillChangeContents &&
232 m_selfOrAncestorHasDirAutoAttribute == 234 m_selfOrAncestorHasDirAutoAttribute ==
233 o.m_selfOrAncestorHasDirAutoAttribute && 235 o.m_selfOrAncestorHasDirAutoAttribute &&
234 m_respectImageOrientation == o.m_respectImageOrientation && 236 m_respectImageOrientation == o.m_respectImageOrientation &&
237 m_snapHeightPosition == o.m_snapHeightPosition &&
235 hyphenationString == o.hyphenationString && 238 hyphenationString == o.hyphenationString &&
236 m_lineHeightStep == o.m_lineHeightStep && 239 m_snapHeightUnit == o.m_snapHeightUnit &&
237 textEmphasisCustomMark == o.textEmphasisCustomMark && 240 textEmphasisCustomMark == o.textEmphasisCustomMark &&
238 quotesDataEquivalent(o) && m_tabSize == o.m_tabSize && 241 quotesDataEquivalent(o) && m_tabSize == o.m_tabSize &&
239 m_imageRendering == o.m_imageRendering && 242 m_imageRendering == o.m_imageRendering &&
240 m_textUnderlinePosition == o.m_textUnderlinePosition && 243 m_textUnderlinePosition == o.m_textUnderlinePosition &&
241 m_textDecorationSkip == o.m_textDecorationSkip && 244 m_textDecorationSkip == o.m_textDecorationSkip &&
242 m_rubyPosition == o.m_rubyPosition && 245 m_rubyPosition == o.m_rubyPosition &&
243 dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) && 246 dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) &&
244 dataEquivalent(appliedTextDecorations, o.appliedTextDecorations) && 247 dataEquivalent(appliedTextDecorations, o.appliedTextDecorations) &&
245 dataEquivalent(variables, o.variables) && 248 dataEquivalent(variables, o.variables) &&
246 m_textSizeAdjust == o.m_textSizeAdjust; 249 m_textSizeAdjust == o.m_textSizeAdjust;
247 } 250 }
248 251
249 bool StyleRareInheritedData::shadowDataEquivalent( 252 bool StyleRareInheritedData::shadowDataEquivalent(
250 const StyleRareInheritedData& o) const { 253 const StyleRareInheritedData& o) const {
251 return dataEquivalent(textShadow.get(), o.textShadow.get()); 254 return dataEquivalent(textShadow.get(), o.textShadow.get());
252 } 255 }
253 256
254 bool StyleRareInheritedData::quotesDataEquivalent( 257 bool StyleRareInheritedData::quotesDataEquivalent(
255 const StyleRareInheritedData& o) const { 258 const StyleRareInheritedData& o) const {
256 return dataEquivalent(quotes, o.quotes); 259 return dataEquivalent(quotes, o.quotes);
257 } 260 }
258 261
259 } // namespace blink 262 } // 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