| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 AtomicString atomicStrings[4]; | 42 AtomicString atomicStrings[4]; |
| 43 void* refPtrs[3]; | 43 void* refPtrs[3]; |
| 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 short hyphenationShorts[3]; | 48 short hyphenationShorts[3]; |
| 49 | 49 |
| 50 Color touchColors; | 50 Color touchColors; |
| 51 TabSize tabSize; | 51 TabSize tabSize; |
| 52 void* variables[1]; |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 static_assert(sizeof(StyleRareInheritedData) == sizeof(SameSizeAsStyleRareInheri
tedData), "StyleRareInheritedData should stay small"); | 55 static_assert(sizeof(StyleRareInheritedData) == sizeof(SameSizeAsStyleRareInheri
tedData), "StyleRareInheritedData should stay small"); |
| 55 | 56 |
| 56 StyleRareInheritedData::StyleRareInheritedData() | 57 StyleRareInheritedData::StyleRareInheritedData() |
| 57 : listStyleImage(ComputedStyle::initialListStyleImage()) | 58 : listStyleImage(ComputedStyle::initialListStyleImage()) |
| 58 , textStrokeWidth(ComputedStyle::initialTextStrokeWidth()) | 59 , textStrokeWidth(ComputedStyle::initialTextStrokeWidth()) |
| 59 , indent(ComputedStyle::initialTextIndent()) | 60 , indent(ComputedStyle::initialTextIndent()) |
| 60 , m_effectiveZoom(ComputedStyle::initialZoom()) | 61 , m_effectiveZoom(ComputedStyle::initialZoom()) |
| 61 , widows(ComputedStyle::initialWidows()) | 62 , widows(ComputedStyle::initialWidows()) |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 , m_selfOrAncestorHasDirAutoAttribute(o.m_selfOrAncestorHasDirAutoAttribute) | 146 , m_selfOrAncestorHasDirAutoAttribute(o.m_selfOrAncestorHasDirAutoAttribute) |
| 146 , hyphenationString(o.hyphenationString) | 147 , hyphenationString(o.hyphenationString) |
| 147 , hyphenationLimitBefore(o.hyphenationLimitBefore) | 148 , hyphenationLimitBefore(o.hyphenationLimitBefore) |
| 148 , hyphenationLimitAfter(o.hyphenationLimitAfter) | 149 , hyphenationLimitAfter(o.hyphenationLimitAfter) |
| 149 , hyphenationLimitLines(o.hyphenationLimitLines) | 150 , hyphenationLimitLines(o.hyphenationLimitLines) |
| 150 , locale(o.locale) | 151 , locale(o.locale) |
| 151 , textEmphasisCustomMark(o.textEmphasisCustomMark) | 152 , textEmphasisCustomMark(o.textEmphasisCustomMark) |
| 152 , tapHighlightColor(o.tapHighlightColor) | 153 , tapHighlightColor(o.tapHighlightColor) |
| 153 , appliedTextDecorations(o.appliedTextDecorations) | 154 , appliedTextDecorations(o.appliedTextDecorations) |
| 154 , m_tabSize(o.m_tabSize) | 155 , m_tabSize(o.m_tabSize) |
| 156 , variables(o.variables) |
| 155 { | 157 { |
| 156 } | 158 } |
| 157 | 159 |
| 158 StyleRareInheritedData::~StyleRareInheritedData() | 160 StyleRareInheritedData::~StyleRareInheritedData() |
| 159 { | 161 { |
| 160 } | 162 } |
| 161 | 163 |
| 162 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const | 164 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const |
| 163 { | 165 { |
| 164 return m_textStrokeColor == o.m_textStrokeColor | 166 return m_textStrokeColor == o.m_textStrokeColor |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 && m_selfOrAncestorHasDirAutoAttribute == o.m_selfOrAncestorHasDirAutoAt
tribute | 209 && m_selfOrAncestorHasDirAutoAttribute == o.m_selfOrAncestorHasDirAutoAt
tribute |
| 208 && hyphenationString == o.hyphenationString | 210 && hyphenationString == o.hyphenationString |
| 209 && locale == o.locale | 211 && locale == o.locale |
| 210 && textEmphasisCustomMark == o.textEmphasisCustomMark | 212 && textEmphasisCustomMark == o.textEmphasisCustomMark |
| 211 && quotesDataEquivalent(o) | 213 && quotesDataEquivalent(o) |
| 212 && m_tabSize == o.m_tabSize | 214 && m_tabSize == o.m_tabSize |
| 213 && m_imageRendering == o.m_imageRendering | 215 && m_imageRendering == o.m_imageRendering |
| 214 && m_textUnderlinePosition == o.m_textUnderlinePosition | 216 && m_textUnderlinePosition == o.m_textUnderlinePosition |
| 215 && m_rubyPosition == o.m_rubyPosition | 217 && m_rubyPosition == o.m_rubyPosition |
| 216 && dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) | 218 && dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) |
| 217 && dataEquivalent(appliedTextDecorations, o.appliedTextDecorations); | 219 && dataEquivalent(appliedTextDecorations, o.appliedTextDecorations) |
| 220 && variables == o.variables; |
| 218 } | 221 } |
| 219 | 222 |
| 220 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const | 223 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const |
| 221 { | 224 { |
| 222 return dataEquivalent(textShadow.get(), o.textShadow.get()); | 225 return dataEquivalent(textShadow.get(), o.textShadow.get()); |
| 223 } | 226 } |
| 224 | 227 |
| 225 bool StyleRareInheritedData::quotesDataEquivalent(const StyleRareInheritedData&
o) const | 228 bool StyleRareInheritedData::quotesDataEquivalent(const StyleRareInheritedData&
o) const |
| 226 { | 229 { |
| 227 return dataEquivalent(quotes, o.quotes); | 230 return dataEquivalent(quotes, o.quotes); |
| 228 } | 231 } |
| 229 | 232 |
| 230 } // namespace blink | 233 } // namespace blink |
| OLD | NEW |