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

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

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
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 reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 30 matching lines...) Expand all
41 void* ownPtrs[1]; 41 void* ownPtrs[1];
42 AtomicString atomicStrings[5]; 42 AtomicString atomicStrings[5];
43 void* refPtrs[2]; 43 void* refPtrs[2];
44 Length lengths[1]; 44 Length lengths[1];
45 float secondFloat; 45 float secondFloat;
46 unsigned m_bitfields[2]; 46 unsigned m_bitfields[2];
47 short pagedMediaShorts[2]; 47 short pagedMediaShorts[2];
48 unsigned unsigneds[1]; 48 unsigned unsigneds[1];
49 short hyphenationShorts[3]; 49 short hyphenationShorts[3];
50 50
51 #if ENABLE(TOUCH_EVENTS)
51 Color touchColors; 52 Color touchColors;
53 #endif
52 54
53 void* variableDataRefs[1]; 55 void* variableDataRefs[1];
54 }; 56 };
55 57
56 COMPILE_ASSERT(sizeof(StyleRareInheritedData) == sizeof(SameSizeAsStyleRareInher itedData), StyleRareInheritedData_should_bit_pack); 58 COMPILE_ASSERT(sizeof(StyleRareInheritedData) == sizeof(SameSizeAsStyleRareInher itedData), StyleRareInheritedData_should_bit_pack);
57 59
58 StyleRareInheritedData::StyleRareInheritedData() 60 StyleRareInheritedData::StyleRareInheritedData()
59 : listStyleImage(RenderStyle::initialListStyleImage()) 61 : listStyleImage(RenderStyle::initialListStyleImage())
60 , textStrokeWidth(RenderStyle::initialTextStrokeWidth()) 62 , textStrokeWidth(RenderStyle::initialTextStrokeWidth())
61 , indent(RenderStyle::initialTextIndent()) 63 , indent(RenderStyle::initialTextIndent())
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #if ENABLE(CSS3_TEXT) 96 #if ENABLE(CSS3_TEXT)
95 , m_textAlignLast(RenderStyle::initialTextAlignLast()) 97 , m_textAlignLast(RenderStyle::initialTextAlignLast())
96 , m_textUnderlinePosition(RenderStyle::initialTextUnderlinePosition()) 98 , m_textUnderlinePosition(RenderStyle::initialTextUnderlinePosition())
97 #endif // CSS3_TEXT 99 #endif // CSS3_TEXT
98 , m_rubyPosition(RenderStyle::initialRubyPosition()) 100 , m_rubyPosition(RenderStyle::initialRubyPosition())
99 , hyphenationLimitBefore(-1) 101 , hyphenationLimitBefore(-1)
100 , hyphenationLimitAfter(-1) 102 , hyphenationLimitAfter(-1)
101 , hyphenationLimitLines(-1) 103 , hyphenationLimitLines(-1)
102 , m_lineGrid(RenderStyle::initialLineGrid()) 104 , m_lineGrid(RenderStyle::initialLineGrid())
103 , m_tabSize(RenderStyle::initialTabSize()) 105 , m_tabSize(RenderStyle::initialTabSize())
106 #if ENABLE(TOUCH_EVENTS)
104 , tapHighlightColor(RenderStyle::initialTapHighlightColor()) 107 , tapHighlightColor(RenderStyle::initialTapHighlightColor())
108 #endif
105 { 109 {
106 m_variables.init(); 110 m_variables.init();
107 } 111 }
108 112
109 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o) 113 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
110 : RefCounted<StyleRareInheritedData>() 114 : RefCounted<StyleRareInheritedData>()
111 , listStyleImage(o.listStyleImage) 115 , listStyleImage(o.listStyleImage)
112 , textStrokeColor(o.textStrokeColor) 116 , textStrokeColor(o.textStrokeColor)
113 , textStrokeWidth(o.textStrokeWidth) 117 , textStrokeWidth(o.textStrokeWidth)
114 , textFillColor(o.textFillColor) 118 , textFillColor(o.textFillColor)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 #endif // CSS3_TEXT 162 #endif // CSS3_TEXT
159 , m_rubyPosition(o.m_rubyPosition) 163 , m_rubyPosition(o.m_rubyPosition)
160 , hyphenationString(o.hyphenationString) 164 , hyphenationString(o.hyphenationString)
161 , hyphenationLimitBefore(o.hyphenationLimitBefore) 165 , hyphenationLimitBefore(o.hyphenationLimitBefore)
162 , hyphenationLimitAfter(o.hyphenationLimitAfter) 166 , hyphenationLimitAfter(o.hyphenationLimitAfter)
163 , hyphenationLimitLines(o.hyphenationLimitLines) 167 , hyphenationLimitLines(o.hyphenationLimitLines)
164 , locale(o.locale) 168 , locale(o.locale)
165 , textEmphasisCustomMark(o.textEmphasisCustomMark) 169 , textEmphasisCustomMark(o.textEmphasisCustomMark)
166 , m_lineGrid(o.m_lineGrid) 170 , m_lineGrid(o.m_lineGrid)
167 , m_tabSize(o.m_tabSize) 171 , m_tabSize(o.m_tabSize)
172 #if ENABLE(TOUCH_EVENTS)
168 , tapHighlightColor(o.tapHighlightColor) 173 , tapHighlightColor(o.tapHighlightColor)
174 #endif
169 , m_variables(o.m_variables) 175 , m_variables(o.m_variables)
170 { 176 {
171 } 177 }
172 178
173 StyleRareInheritedData::~StyleRareInheritedData() 179 StyleRareInheritedData::~StyleRareInheritedData()
174 { 180 {
175 } 181 }
176 182
177 static bool cursorDataEquivalent(const CursorList* c1, const CursorList* c2) 183 static bool cursorDataEquivalent(const CursorList* c1, const CursorList* c2)
178 { 184 {
179 if (c1 == c2) 185 if (c1 == c2)
180 return true; 186 return true;
181 if ((!c1 && c2) || (c1 && !c2)) 187 if ((!c1 && c2) || (c1 && !c2))
182 return false; 188 return false;
183 return (*c1 == *c2); 189 return (*c1 == *c2);
184 } 190 }
185 191
186 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const 192 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const
187 { 193 {
188 return textStrokeColor == o.textStrokeColor 194 return textStrokeColor == o.textStrokeColor
189 && textStrokeWidth == o.textStrokeWidth 195 && textStrokeWidth == o.textStrokeWidth
190 && textFillColor == o.textFillColor 196 && textFillColor == o.textFillColor
191 && textEmphasisColor == o.textEmphasisColor 197 && textEmphasisColor == o.textEmphasisColor
192 && visitedLinkTextStrokeColor == o.visitedLinkTextStrokeColor 198 && visitedLinkTextStrokeColor == o.visitedLinkTextStrokeColor
193 && visitedLinkTextFillColor == o.visitedLinkTextFillColor 199 && visitedLinkTextFillColor == o.visitedLinkTextFillColor
194 && visitedLinkTextEmphasisColor == o.visitedLinkTextEmphasisColor 200 && visitedLinkTextEmphasisColor == o.visitedLinkTextEmphasisColor
201 #if ENABLE(TOUCH_EVENTS)
195 && tapHighlightColor == o.tapHighlightColor 202 && tapHighlightColor == o.tapHighlightColor
203 #endif
196 && shadowDataEquivalent(o) 204 && shadowDataEquivalent(o)
197 && highlight == o.highlight 205 && highlight == o.highlight
198 && cursorDataEquivalent(cursorData.get(), o.cursorData.get()) 206 && cursorDataEquivalent(cursorData.get(), o.cursorData.get())
199 && indent == o.indent 207 && indent == o.indent
200 && m_effectiveZoom == o.m_effectiveZoom 208 && m_effectiveZoom == o.m_effectiveZoom
201 && widows == o.widows 209 && widows == o.widows
202 && orphans == o.orphans 210 && orphans == o.orphans
203 && m_hasAutoWidows == o.m_hasAutoWidows 211 && m_hasAutoWidows == o.m_hasAutoWidows
204 && m_hasAutoOrphans == o.m_hasAutoOrphans 212 && m_hasAutoOrphans == o.m_hasAutoOrphans
205 && textSecurity == o.textSecurity 213 && textSecurity == o.textSecurity
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 info.addMember(cursorData, "cursorData"); 274 info.addMember(cursorData, "cursorData");
267 info.addMember(hyphenationString, "hyphenationString"); 275 info.addMember(hyphenationString, "hyphenationString");
268 info.addMember(locale, "locale"); 276 info.addMember(locale, "locale");
269 info.addMember(textEmphasisCustomMark, "textEmphasisCustomMark"); 277 info.addMember(textEmphasisCustomMark, "textEmphasisCustomMark");
270 info.addMember(quotes, "quotes"); 278 info.addMember(quotes, "quotes");
271 info.addMember(m_lineGrid, "lineGrid"); 279 info.addMember(m_lineGrid, "lineGrid");
272 info.addMember(m_variables, "variables"); 280 info.addMember(m_variables, "variables");
273 } 281 }
274 282
275 } // namespace WebCore 283 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/style/StyleRareInheritedData.h ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698