| 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/style/QuotesData.h" | 30 #include "core/style/QuotesData.h" |
| 31 #include "core/style/ShadowList.h" | 31 #include "core/style/ShadowList.h" |
| 32 #include "core/style/StyleImage.h" | 32 #include "core/style/StyleImage.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareI
nheritedData> { | 36 struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareI
nheritedData> { |
| 37 void* styleImage; | 37 void* styleImage; |
| 38 Color firstColor; | 38 Color firstColor; |
| 39 float firstFloat; | 39 float firstFloat; |
| 40 Color colors[5]; | 40 Color colors[7]; |
| 41 void* ownPtrs[1]; | 41 void* ownPtrs[1]; |
| 42 AtomicString atomicStrings[4]; | 42 AtomicString atomicStrings[4]; |
| 43 #if ENABLE(OILPAN) | 43 #if ENABLE(OILPAN) |
| 44 void* refPtrs[1]; | 44 void* refPtrs[1]; |
| 45 Persistent<void*> persistentHandles[2]; | 45 Persistent<void*> persistentHandles[2]; |
| 46 #else | 46 #else |
| 47 void* refPtrs[3]; | 47 void* refPtrs[3]; |
| 48 #endif | 48 #endif |
| 49 Length lengths[1]; | 49 Length lengths[1]; |
| 50 float secondFloat; | 50 float secondFloat; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 , textEmphasisFill(TextEmphasisFillFilled) | 83 , textEmphasisFill(TextEmphasisFillFilled) |
| 84 , textEmphasisMark(TextEmphasisMarkNone) | 84 , textEmphasisMark(TextEmphasisMarkNone) |
| 85 , textEmphasisPosition(TextEmphasisPositionOver) | 85 , textEmphasisPosition(TextEmphasisPositionOver) |
| 86 , m_textAlignLast(ComputedStyle::initialTextAlignLast()) | 86 , m_textAlignLast(ComputedStyle::initialTextAlignLast()) |
| 87 , m_textJustify(ComputedStyle::initialTextJustify()) | 87 , m_textJustify(ComputedStyle::initialTextJustify()) |
| 88 , m_textOrientation(TextOrientationVerticalRight) | 88 , m_textOrientation(TextOrientationVerticalRight) |
| 89 , m_textCombine(ComputedStyle::initialTextCombine()) | 89 , m_textCombine(ComputedStyle::initialTextCombine()) |
| 90 , m_textIndentLine(ComputedStyle::initialTextIndentLine()) | 90 , m_textIndentLine(ComputedStyle::initialTextIndentLine()) |
| 91 , m_textIndentType(ComputedStyle::initialTextIndentLine()) | 91 , m_textIndentType(ComputedStyle::initialTextIndentLine()) |
| 92 , m_imageRendering(ComputedStyle::initialImageRendering()) | 92 , m_imageRendering(ComputedStyle::initialImageRendering()) |
| 93 , m_textUnderlinePosition(ComputedStyle::initialTextUnderlinePosition()) | 93 , m_hasSimpleUnderlinePosition(ComputedStyle::initialTextUnderlinePosition()
) |
| 94 , m_rubyPosition(ComputedStyle::initialRubyPosition()) | 94 , m_rubyPosition(ComputedStyle::initialRubyPosition()) |
| 95 , m_subtreeWillChangeContents(false) | 95 , m_subtreeWillChangeContents(false) |
| 96 , m_selfOrAncestorHasDirAutoAttribute(false) | 96 , m_selfOrAncestorHasDirAutoAttribute(false) |
| 97 , m_respectImageOrientation(false) | 97 , m_respectImageOrientation(false) |
| 98 , hyphenationLimitBefore(-1) | 98 , hyphenationLimitBefore(-1) |
| 99 , hyphenationLimitAfter(-1) | 99 , hyphenationLimitAfter(-1) |
| 100 , hyphenationLimitLines(-1) | 100 , hyphenationLimitLines(-1) |
| 101 , tapHighlightColor(ComputedStyle::initialTapHighlightColor()) | 101 , tapHighlightColor(ComputedStyle::initialTapHighlightColor()) |
| 102 , simpleUnderlineColor(Color::transparent) |
| 103 , simpleUnderlineVisitedColor(Color::transparent) |
| 102 , m_tabSize(ComputedStyle::initialTabSize()) | 104 , m_tabSize(ComputedStyle::initialTabSize()) |
| 103 { | 105 { |
| 104 } | 106 } |
| 105 | 107 |
| 106 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o) | 108 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o) |
| 107 : RefCounted<StyleRareInheritedData>() | 109 : RefCounted<StyleRareInheritedData>() |
| 108 , listStyleImage(o.listStyleImage) | 110 , listStyleImage(o.listStyleImage) |
| 109 , m_textStrokeColor(o.m_textStrokeColor) | 111 , m_textStrokeColor(o.m_textStrokeColor) |
| 110 , textStrokeWidth(o.textStrokeWidth) | 112 , textStrokeWidth(o.textStrokeWidth) |
| 111 , m_textFillColor(o.m_textFillColor) | 113 , m_textFillColor(o.m_textFillColor) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 138 , textEmphasisFill(o.textEmphasisFill) | 140 , textEmphasisFill(o.textEmphasisFill) |
| 139 , textEmphasisMark(o.textEmphasisMark) | 141 , textEmphasisMark(o.textEmphasisMark) |
| 140 , textEmphasisPosition(o.textEmphasisPosition) | 142 , textEmphasisPosition(o.textEmphasisPosition) |
| 141 , m_textAlignLast(o.m_textAlignLast) | 143 , m_textAlignLast(o.m_textAlignLast) |
| 142 , m_textJustify(o.m_textJustify) | 144 , m_textJustify(o.m_textJustify) |
| 143 , m_textOrientation(o.m_textOrientation) | 145 , m_textOrientation(o.m_textOrientation) |
| 144 , m_textCombine(o.m_textCombine) | 146 , m_textCombine(o.m_textCombine) |
| 145 , m_textIndentLine(o.m_textIndentLine) | 147 , m_textIndentLine(o.m_textIndentLine) |
| 146 , m_textIndentType(o.m_textIndentType) | 148 , m_textIndentType(o.m_textIndentType) |
| 147 , m_imageRendering(o.m_imageRendering) | 149 , m_imageRendering(o.m_imageRendering) |
| 148 , m_textUnderlinePosition(o.m_textUnderlinePosition) | 150 , m_hasSimpleUnderlinePosition(o.m_hasSimpleUnderlinePosition) |
| 149 , m_rubyPosition(o.m_rubyPosition) | 151 , m_rubyPosition(o.m_rubyPosition) |
| 150 , m_subtreeWillChangeContents(o.m_subtreeWillChangeContents) | 152 , m_subtreeWillChangeContents(o.m_subtreeWillChangeContents) |
| 151 , m_selfOrAncestorHasDirAutoAttribute(o.m_selfOrAncestorHasDirAutoAttribute) | 153 , m_selfOrAncestorHasDirAutoAttribute(o.m_selfOrAncestorHasDirAutoAttribute) |
| 152 , m_respectImageOrientation(o.m_respectImageOrientation) | 154 , m_respectImageOrientation(o.m_respectImageOrientation) |
| 153 , hyphenationString(o.hyphenationString) | 155 , hyphenationString(o.hyphenationString) |
| 154 , hyphenationLimitBefore(o.hyphenationLimitBefore) | 156 , hyphenationLimitBefore(o.hyphenationLimitBefore) |
| 155 , hyphenationLimitAfter(o.hyphenationLimitAfter) | 157 , hyphenationLimitAfter(o.hyphenationLimitAfter) |
| 156 , hyphenationLimitLines(o.hyphenationLimitLines) | 158 , hyphenationLimitLines(o.hyphenationLimitLines) |
| 157 , locale(o.locale) | 159 , locale(o.locale) |
| 158 , textEmphasisCustomMark(o.textEmphasisCustomMark) | 160 , textEmphasisCustomMark(o.textEmphasisCustomMark) |
| 159 , tapHighlightColor(o.tapHighlightColor) | 161 , tapHighlightColor(o.tapHighlightColor) |
| 162 , simpleUnderlineColor(o.simpleUnderlineColor) |
| 163 , simpleUnderlineVisitedColor(o.simpleUnderlineVisitedColor) |
| 160 , appliedTextDecorations(o.appliedTextDecorations) | 164 , appliedTextDecorations(o.appliedTextDecorations) |
| 161 , m_tabSize(o.m_tabSize) | 165 , m_tabSize(o.m_tabSize) |
| 162 { | 166 { |
| 163 } | 167 } |
| 164 | 168 |
| 165 StyleRareInheritedData::~StyleRareInheritedData() | 169 StyleRareInheritedData::~StyleRareInheritedData() |
| 166 { | 170 { |
| 167 } | 171 } |
| 168 | 172 |
| 169 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const | 173 bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 && m_textIndentType == o.m_textIndentType | 216 && m_textIndentType == o.m_textIndentType |
| 213 && m_subtreeWillChangeContents == o.m_subtreeWillChangeContents | 217 && m_subtreeWillChangeContents == o.m_subtreeWillChangeContents |
| 214 && m_selfOrAncestorHasDirAutoAttribute == o.m_selfOrAncestorHasDirAutoAt
tribute | 218 && m_selfOrAncestorHasDirAutoAttribute == o.m_selfOrAncestorHasDirAutoAt
tribute |
| 215 && m_respectImageOrientation == o.m_respectImageOrientation | 219 && m_respectImageOrientation == o.m_respectImageOrientation |
| 216 && hyphenationString == o.hyphenationString | 220 && hyphenationString == o.hyphenationString |
| 217 && locale == o.locale | 221 && locale == o.locale |
| 218 && textEmphasisCustomMark == o.textEmphasisCustomMark | 222 && textEmphasisCustomMark == o.textEmphasisCustomMark |
| 219 && quotesDataEquivalent(o) | 223 && quotesDataEquivalent(o) |
| 220 && m_tabSize == o.m_tabSize | 224 && m_tabSize == o.m_tabSize |
| 221 && m_imageRendering == o.m_imageRendering | 225 && m_imageRendering == o.m_imageRendering |
| 222 && m_textUnderlinePosition == o.m_textUnderlinePosition | 226 && m_hasSimpleUnderlinePosition == o.m_hasSimpleUnderlinePosition |
| 223 && m_rubyPosition == o.m_rubyPosition | 227 && m_rubyPosition == o.m_rubyPosition |
| 224 && dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) | 228 && dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) |
| 229 && simpleUnderlineColor == o.simpleUnderlineColor |
| 230 && simpleUnderlineVisitedColor == o.simpleUnderlineVisitedColor |
| 225 && dataEquivalent(appliedTextDecorations, o.appliedTextDecorations); | 231 && dataEquivalent(appliedTextDecorations, o.appliedTextDecorations); |
| 226 } | 232 } |
| 227 | 233 |
| 228 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const | 234 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const |
| 229 { | 235 { |
| 230 return dataEquivalent(textShadow.get(), o.textShadow.get()); | 236 return dataEquivalent(textShadow.get(), o.textShadow.get()); |
| 231 } | 237 } |
| 232 | 238 |
| 233 bool StyleRareInheritedData::quotesDataEquivalent(const StyleRareInheritedData&
o) const | 239 bool StyleRareInheritedData::quotesDataEquivalent(const StyleRareInheritedData&
o) const |
| 234 { | 240 { |
| 235 return dataEquivalent(quotes, o.quotes); | 241 return dataEquivalent(quotes, o.quotes); |
| 236 } | 242 } |
| 237 | 243 |
| 238 } // namespace blink | 244 } // namespace blink |
| OLD | NEW |