Lines Matching refs:other
34 bool TextStyle::equals(const TextStyle& other) const {
36 if (fIsPlaceholder || other.fIsPlaceholder) {
40 if (fColor != other.fColor) {
43 if (!(fDecoration == other.fDecoration)) {
46 if (!(fFontStyle == other.fFontStyle)) {
49 if (fFontFamilies != other.fFontFamilies) {
52 if (fLetterSpacing != other.fLetterSpacing) {
55 if (fWordSpacing != other.fWordSpacing) {
58 if (fHeight != other.fHeight) {
61 if (fHeightOverride != other.fHeightOverride) {
64 if (fHalfLeading != other.fHalfLeading) {
67 if (fBaselineShift != other.fBaselineShift) {
70 if (fFontSize != other.fFontSize) {
73 if (fLocale != other.fLocale) {
76 if (fHasForeground != other.fHasForeground || fForeground != other.fForeground) {
79 if (fHasBackground != other.fHasBackground || fBackground != other.fBackground) {
82 if (fTextShadows.size() != other.fTextShadows.size()) {
86 if (fTextShadows[i] != other.fTextShadows[i]) {
90 if (fFontFeatures.size() != other.fFontFeatures.size()) {
94 if (!(fFontFeatures[i] == other.fFontFeatures[i])) {
98 if (fFontArguments != other.fFontArguments) {
101 if (fStyleId != other.fStyleId || fBackgroundRect != other.fBackgroundRect) {
125 bool TextStyle::matchOneAttribute(StyleType styleType, const TextStyle& other) const {
128 return (!fHasForeground && !other.fHasForeground && fColor == other.fColor) ||
129 ( fHasForeground && other.fHasForeground && fForeground == other.fForeground);
132 return (!fHasBackground && !other.fHasBackground) ||
133 ( fHasBackground && other.fHasBackground && fBackground == other.fBackground);
136 if (fTextShadows.size() != other.fTextShadows.size()) {
141 if (fTextShadows[i] != other.fTextShadows[i]) {
148 return this->fDecoration == other.fDecoration;
151 return fLetterSpacing == other.fLetterSpacing;
154 return fWordSpacing == other.fWordSpacing;
157 return this->equals(other);
161 return fFontStyle == other.fFontStyle &&
162 fLocale == other.fLocale &&
163 fFontFamilies == other.fFontFamilies &&
164 fFontSize == other.fFontSize &&
165 fHeight == other.fHeight &&
166 fHalfLeading == other.fHalfLeading &&
167 fBaselineShift == other.fBaselineShift &&
168 fFontArguments == other.fFontArguments &&
169 fStyleId == other.fStyleId &&
170 fBackgroundRect == other.fBackgroundRect;
233 bool PlaceholderStyle::equals(const PlaceholderStyle& other) const {
234 return nearlyEqual(fWidth, other.fWidth) &&
235 nearlyEqual(fHeight, other.fHeight) &&
236 fAlignment == other.fAlignment &&
237 fBaseline == other.fBaseline &&
239 nearlyEqual(fBaselineOffset, other.fBaselineOffset));