| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 static const CSSPropertyID staticEditingProperties[] = { | 68 static const CSSPropertyID staticEditingProperties[] = { |
| 69 CSSPropertyBackgroundColor, | 69 CSSPropertyBackgroundColor, |
| 70 CSSPropertyColor, | 70 CSSPropertyColor, |
| 71 CSSPropertyFontFamily, | 71 CSSPropertyFontFamily, |
| 72 CSSPropertyFontSize, | 72 CSSPropertyFontSize, |
| 73 CSSPropertyFontStyle, | 73 CSSPropertyFontStyle, |
| 74 CSSPropertyFontVariant, | 74 CSSPropertyFontVariant, |
| 75 CSSPropertyFontWeight, | 75 CSSPropertyFontWeight, |
| 76 CSSPropertyLetterSpacing, | 76 CSSPropertyLetterSpacing, |
| 77 CSSPropertyLineHeight, | 77 CSSPropertyLineHeight, |
| 78 CSSPropertyOrphans, | |
| 79 CSSPropertyTextAlign, | 78 CSSPropertyTextAlign, |
| 80 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text | 79 // FIXME: CSSPropertyTextDecoration needs to be removed when CSS3 Text |
| 81 // Decoration feature is no longer experimental. | 80 // Decoration feature is no longer experimental. |
| 82 CSSPropertyTextDecoration, | 81 CSSPropertyTextDecoration, |
| 83 CSSPropertyTextDecorationLine, | 82 CSSPropertyTextDecorationLine, |
| 84 CSSPropertyTextIndent, | 83 CSSPropertyTextIndent, |
| 85 CSSPropertyWhiteSpace, | 84 CSSPropertyWhiteSpace, |
| 86 CSSPropertyWidows, | 85 CSSPropertyWidows, |
| 87 CSSPropertyWordSpacing, | 86 CSSPropertyWordSpacing, |
| 88 CSSPropertyWebkitTextDecorationsInEffect, | 87 CSSPropertyWebkitTextDecorationsInEffect, |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 { | 577 { |
| 579 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { | 578 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { |
| 580 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); | 579 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); |
| 581 if (!hasTransparentBackgroundColor(ancestorStyle.get())) | 580 if (!hasTransparentBackgroundColor(ancestorStyle.get())) |
| 582 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); | 581 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); |
| 583 } | 582 } |
| 584 return nullptr; | 583 return nullptr; |
| 585 } | 584 } |
| 586 | 585 |
| 587 } | 586 } |
| OLD | NEW |