| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009 Apple Computer, Inc. | 2 * Copyright (C) 2007, 2008, 2009 Apple Computer, Inc. |
| 3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 CSSPropertyFontSize, CSSPropertyFontStyle, CSSPropertyFontVariantLigatures, | 82 CSSPropertyFontSize, CSSPropertyFontStyle, CSSPropertyFontVariantLigatures, |
| 83 CSSPropertyFontVariantCaps, CSSPropertyFontWeight, CSSPropertyLetterSpacing, | 83 CSSPropertyFontVariantCaps, CSSPropertyFontWeight, CSSPropertyLetterSpacing, |
| 84 CSSPropertyOrphans, CSSPropertyTextAlign, | 84 CSSPropertyOrphans, CSSPropertyTextAlign, |
| 85 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text | 85 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text |
| 86 // Decoration feature is no longer experimental. | 86 // Decoration feature is no longer experimental. |
| 87 CSSPropertyTextDecoration, CSSPropertyTextDecorationLine, | 87 CSSPropertyTextDecoration, CSSPropertyTextDecorationLine, |
| 88 CSSPropertyTextIndent, CSSPropertyTextTransform, CSSPropertyWhiteSpace, | 88 CSSPropertyTextIndent, CSSPropertyTextTransform, CSSPropertyWhiteSpace, |
| 89 CSSPropertyWidows, CSSPropertyWordSpacing, | 89 CSSPropertyWidows, CSSPropertyWordSpacing, |
| 90 CSSPropertyWebkitTextDecorationsInEffect, CSSPropertyWebkitTextFillColor, | 90 CSSPropertyWebkitTextDecorationsInEffect, CSSPropertyWebkitTextFillColor, |
| 91 CSSPropertyWebkitTextStrokeColor, CSSPropertyWebkitTextStrokeWidth, | 91 CSSPropertyWebkitTextStrokeColor, CSSPropertyWebkitTextStrokeWidth, |
| 92 }; | 92 CSSPropertyCaretColor}; |
| 93 | 93 |
| 94 enum EditingPropertiesType { | 94 enum EditingPropertiesType { |
| 95 OnlyInheritableEditingProperties, | 95 OnlyInheritableEditingProperties, |
| 96 AllEditingProperties | 96 AllEditingProperties |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 static const Vector<CSSPropertyID>& allEditingProperties() { | 99 static const Vector<CSSPropertyID>& allEditingProperties() { |
| 100 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); | 100 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); |
| 101 if (properties.isEmpty()) { | 101 if (properties.isEmpty()) { |
| 102 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector( | 102 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector( |
| (...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2036 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { | 2036 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { |
| 2037 CSSComputedStyleDeclaration* ancestorStyle = | 2037 CSSComputedStyleDeclaration* ancestorStyle = |
| 2038 CSSComputedStyleDeclaration::create(ancestor); | 2038 CSSComputedStyleDeclaration::create(ancestor); |
| 2039 if (!hasTransparentBackgroundColor(ancestorStyle)) | 2039 if (!hasTransparentBackgroundColor(ancestorStyle)) |
| 2040 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor); | 2040 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor); |
| 2041 } | 2041 } |
| 2042 return nullptr; | 2042 return nullptr; |
| 2043 } | 2043 } |
| 2044 | 2044 |
| 2045 } // namespace blink | 2045 } // namespace blink |
| OLD | NEW |