| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 CSSPropertyFontWeight, | 75 CSSPropertyFontWeight, |
| 76 CSSPropertyLetterSpacing, | 76 CSSPropertyLetterSpacing, |
| 77 CSSPropertyLineHeight, | 77 CSSPropertyLineHeight, |
| 78 CSSPropertyTextAlign, | 78 CSSPropertyTextAlign, |
| 79 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text | 79 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text |
| 80 // Decoration feature is no longer experimental. | 80 // Decoration feature is no longer experimental. |
| 81 CSSPropertyTextDecoration, | 81 CSSPropertyTextDecoration, |
| 82 CSSPropertyTextDecorationLine, | 82 CSSPropertyTextDecorationLine, |
| 83 CSSPropertyTextIndent, | 83 CSSPropertyTextIndent, |
| 84 CSSPropertyWhiteSpace, | 84 CSSPropertyWhiteSpace, |
| 85 CSSPropertyWidows, | |
| 86 CSSPropertyWordSpacing, | 85 CSSPropertyWordSpacing, |
| 87 CSSPropertyWebkitTextDecorationsInEffect, | 86 CSSPropertyWebkitTextDecorationsInEffect, |
| 88 CSSPropertyWebkitTextFillColor, | 87 CSSPropertyWebkitTextFillColor, |
| 89 CSSPropertyWebkitTextStrokeColor, | 88 CSSPropertyWebkitTextStrokeColor, |
| 90 CSSPropertyWebkitTextStrokeWidth, | 89 CSSPropertyWebkitTextStrokeWidth, |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 enum EditingPropertiesType { OnlyInheritableEditingProperties, AllEditingPropert
ies }; | 92 enum EditingPropertiesType { OnlyInheritableEditingProperties, AllEditingPropert
ies }; |
| 94 | 93 |
| 95 static const Vector<CSSPropertyID>& allEditingProperties() | 94 static const Vector<CSSPropertyID>& allEditingProperties() |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 { | 576 { |
| 578 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { | 577 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { |
| 579 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); | 578 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); |
| 580 if (!hasTransparentBackgroundColor(ancestorStyle.get())) | 579 if (!hasTransparentBackgroundColor(ancestorStyle.get())) |
| 581 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); | 580 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); |
| 582 } | 581 } |
| 583 return nullptr; | 582 return nullptr; |
| 584 } | 583 } |
| 585 | 584 |
| 586 } | 585 } |
| OLD | NEW |