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

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

Issue 710113003: Initial step of removing CSS zoom related properties. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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, 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 Color touchColors; 51 Color touchColors;
52 }; 52 };
53 53
54 COMPILE_ASSERT(sizeof(StyleRareInheritedData) == sizeof(SameSizeAsStyleRareInher itedData), StyleRareInheritedData_should_bit_pack); 54 COMPILE_ASSERT(sizeof(StyleRareInheritedData) == sizeof(SameSizeAsStyleRareInher itedData), StyleRareInheritedData_should_bit_pack);
55 55
56 StyleRareInheritedData::StyleRareInheritedData() 56 StyleRareInheritedData::StyleRareInheritedData()
57 : listStyleImage(RenderStyle::initialListStyleImage()) 57 : listStyleImage(RenderStyle::initialListStyleImage())
58 , textStrokeWidth(RenderStyle::initialTextStrokeWidth()) 58 , textStrokeWidth(RenderStyle::initialTextStrokeWidth())
59 , indent(RenderStyle::initialTextIndent()) 59 , indent(RenderStyle::initialTextIndent())
60 , m_effectiveZoom(RenderStyle::initialZoom())
61 , widows(RenderStyle::initialWidows()) 60 , widows(RenderStyle::initialWidows())
62 , orphans(RenderStyle::initialOrphans()) 61 , orphans(RenderStyle::initialOrphans())
63 , m_hasAutoWidows(true) 62 , m_hasAutoWidows(true)
64 , m_hasAutoOrphans(true) 63 , m_hasAutoOrphans(true)
65 , m_textStrokeColorIsCurrentColor(true) 64 , m_textStrokeColorIsCurrentColor(true)
66 , m_textFillColorIsCurrentColor(true) 65 , m_textFillColorIsCurrentColor(true)
67 , m_textEmphasisColorIsCurrentColor(true) 66 , m_textEmphasisColorIsCurrentColor(true)
68 , userModify(READ_ONLY) 67 , userModify(READ_ONLY)
69 , wordBreak(RenderStyle::initialWordBreak()) 68 , wordBreak(RenderStyle::initialWordBreak())
70 , overflowWrap(RenderStyle::initialOverflowWrap()) 69 , overflowWrap(RenderStyle::initialOverflowWrap())
(...skipping 26 matching lines...) Expand all
97 : RefCounted<StyleRareInheritedData>() 96 : RefCounted<StyleRareInheritedData>()
98 , listStyleImage(o.listStyleImage) 97 , listStyleImage(o.listStyleImage)
99 , m_textStrokeColor(o.m_textStrokeColor) 98 , m_textStrokeColor(o.m_textStrokeColor)
100 , textStrokeWidth(o.textStrokeWidth) 99 , textStrokeWidth(o.textStrokeWidth)
101 , m_textFillColor(o.m_textFillColor) 100 , m_textFillColor(o.m_textFillColor)
102 , m_textEmphasisColor(o.m_textEmphasisColor) 101 , m_textEmphasisColor(o.m_textEmphasisColor)
103 , textShadow(o.textShadow) 102 , textShadow(o.textShadow)
104 , highlight(o.highlight) 103 , highlight(o.highlight)
105 , cursorData(o.cursorData) 104 , cursorData(o.cursorData)
106 , indent(o.indent) 105 , indent(o.indent)
107 , m_effectiveZoom(o.m_effectiveZoom)
108 , widows(o.widows) 106 , widows(o.widows)
109 , orphans(o.orphans) 107 , orphans(o.orphans)
110 , m_hasAutoWidows(o.m_hasAutoWidows) 108 , m_hasAutoWidows(o.m_hasAutoWidows)
111 , m_hasAutoOrphans(o.m_hasAutoOrphans) 109 , m_hasAutoOrphans(o.m_hasAutoOrphans)
112 , m_textStrokeColorIsCurrentColor(o.m_textStrokeColorIsCurrentColor) 110 , m_textStrokeColorIsCurrentColor(o.m_textStrokeColorIsCurrentColor)
113 , m_textFillColorIsCurrentColor(o.m_textFillColorIsCurrentColor) 111 , m_textFillColorIsCurrentColor(o.m_textFillColorIsCurrentColor)
114 , m_textEmphasisColorIsCurrentColor(o.m_textEmphasisColorIsCurrentColor) 112 , m_textEmphasisColorIsCurrentColor(o.m_textEmphasisColorIsCurrentColor)
115 , userModify(o.userModify) 113 , userModify(o.userModify)
116 , wordBreak(o.wordBreak) 114 , wordBreak(o.wordBreak)
117 , overflowWrap(o.overflowWrap) 115 , overflowWrap(o.overflowWrap)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 { 150 {
153 return m_textStrokeColor == o.m_textStrokeColor 151 return m_textStrokeColor == o.m_textStrokeColor
154 && textStrokeWidth == o.textStrokeWidth 152 && textStrokeWidth == o.textStrokeWidth
155 && m_textFillColor == o.m_textFillColor 153 && m_textFillColor == o.m_textFillColor
156 && m_textEmphasisColor == o.m_textEmphasisColor 154 && m_textEmphasisColor == o.m_textEmphasisColor
157 && tapHighlightColor == o.tapHighlightColor 155 && tapHighlightColor == o.tapHighlightColor
158 && shadowDataEquivalent(o) 156 && shadowDataEquivalent(o)
159 && highlight == o.highlight 157 && highlight == o.highlight
160 && dataEquivalent(cursorData.get(), o.cursorData.get()) 158 && dataEquivalent(cursorData.get(), o.cursorData.get())
161 && indent == o.indent 159 && indent == o.indent
162 && m_effectiveZoom == o.m_effectiveZoom
163 && widows == o.widows 160 && widows == o.widows
164 && orphans == o.orphans 161 && orphans == o.orphans
165 && m_hasAutoWidows == o.m_hasAutoWidows 162 && m_hasAutoWidows == o.m_hasAutoWidows
166 && m_hasAutoOrphans == o.m_hasAutoOrphans 163 && m_hasAutoOrphans == o.m_hasAutoOrphans
167 && m_textStrokeColorIsCurrentColor == o.m_textStrokeColorIsCurrentColor 164 && m_textStrokeColorIsCurrentColor == o.m_textStrokeColorIsCurrentColor
168 && m_textFillColorIsCurrentColor == o.m_textFillColorIsCurrentColor 165 && m_textFillColorIsCurrentColor == o.m_textFillColorIsCurrentColor
169 && m_textEmphasisColorIsCurrentColor == o.m_textEmphasisColorIsCurrentCo lor 166 && m_textEmphasisColorIsCurrentColor == o.m_textEmphasisColorIsCurrentCo lor
170 && userModify == o.userModify 167 && userModify == o.userModify
171 && wordBreak == o.wordBreak 168 && wordBreak == o.wordBreak
172 && overflowWrap == o.overflowWrap 169 && overflowWrap == o.overflowWrap
(...skipping 30 matching lines...) Expand all
203 { 200 {
204 return dataEquivalent(textShadow.get(), o.textShadow.get()); 201 return dataEquivalent(textShadow.get(), o.textShadow.get());
205 } 202 }
206 203
207 bool StyleRareInheritedData::quotesDataEquivalent(const StyleRareInheritedData& o) const 204 bool StyleRareInheritedData::quotesDataEquivalent(const StyleRareInheritedData& o) const
208 { 205 {
209 return dataEquivalent(quotes, o.quotes); 206 return dataEquivalent(quotes, o.quotes);
210 } 207 }
211 208
212 } // namespace blink 209 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/style/StyleRareInheritedData.h ('k') | sky/engine/core/rendering/style/StyleVisualData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698