| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 static const CSSPropertyID staticEditingProperties[] = { | 76 static const CSSPropertyID staticEditingProperties[] = { |
| 77 CSSPropertyBackgroundColor, | 77 CSSPropertyBackgroundColor, |
| 78 CSSPropertyColor, | 78 CSSPropertyColor, |
| 79 CSSPropertyFontFamily, | 79 CSSPropertyFontFamily, |
| 80 CSSPropertyFontSize, | 80 CSSPropertyFontSize, |
| 81 CSSPropertyFontStyle, | 81 CSSPropertyFontStyle, |
| 82 CSSPropertyFontVariantLigatures, | 82 CSSPropertyFontVariantLigatures, |
| 83 CSSPropertyFontVariantCaps, | 83 CSSPropertyFontVariantCaps, |
| 84 CSSPropertyFontWeight, | 84 CSSPropertyFontWeight, |
| 85 CSSPropertyLetterSpacing, | 85 CSSPropertyLetterSpacing, |
| 86 CSSPropertyLineHeight, | |
| 87 CSSPropertyOrphans, | 86 CSSPropertyOrphans, |
| 88 CSSPropertyTextAlign, | 87 CSSPropertyTextAlign, |
| 89 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text | 88 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text |
| 90 // Decoration feature is no longer experimental. | 89 // Decoration feature is no longer experimental. |
| 91 CSSPropertyTextDecoration, | 90 CSSPropertyTextDecoration, |
| 92 CSSPropertyTextDecorationLine, | 91 CSSPropertyTextDecorationLine, |
| 93 CSSPropertyTextIndent, | 92 CSSPropertyTextIndent, |
| 94 CSSPropertyTextTransform, | 93 CSSPropertyTextTransform, |
| 95 CSSPropertyWhiteSpace, | 94 CSSPropertyWhiteSpace, |
| 96 CSSPropertyWidows, | 95 CSSPropertyWidows, |
| (...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1754 { | 1753 { |
| 1755 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { | 1754 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { |
| 1756 CSSComputedStyleDeclaration* ancestorStyle = CSSComputedStyleDeclaration
::create(ancestor); | 1755 CSSComputedStyleDeclaration* ancestorStyle = CSSComputedStyleDeclaration
::create(ancestor); |
| 1757 if (!hasTransparentBackgroundColor(ancestorStyle)) | 1756 if (!hasTransparentBackgroundColor(ancestorStyle)) |
| 1758 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); | 1757 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); |
| 1759 } | 1758 } |
| 1760 return nullptr; | 1759 return nullptr; |
| 1761 } | 1760 } |
| 1762 | 1761 |
| 1763 } // namespace blink | 1762 } // namespace blink |
| OLD | NEW |