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 12 matching lines...) Expand all Loading... |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/editing/EditingStyle.h" | 28 #include "core/editing/EditingStyle.h" |
29 | 29 |
30 #include "CSSValueKeywords.h" | 30 #include "CSSValueKeywords.h" |
31 #include "HTMLFontElement.h" | 31 #include "HTMLFontElement.h" |
32 #include "HTMLNames.h" | 32 #include "HTMLNames.h" |
33 #include "Node.h" | |
34 #include "NodeTraversal.h" | |
35 #include "Position.h" | |
36 #include "QualifiedName.h" | |
37 #include "StyledElement.h" | |
38 #include "core/css/CSSComputedStyleDeclaration.h" | 33 #include "core/css/CSSComputedStyleDeclaration.h" |
39 #include "core/css/CSSParser.h" | 34 #include "core/css/CSSParser.h" |
40 #include "core/css/CSSRuleList.h" | 35 #include "core/css/CSSRuleList.h" |
41 #include "core/css/CSSStyleRule.h" | 36 #include "core/css/CSSStyleRule.h" |
42 #include "core/css/CSSValueList.h" | 37 #include "core/css/CSSValueList.h" |
43 #include "core/css/StylePropertySet.h" | 38 #include "core/css/StylePropertySet.h" |
44 #include "core/css/StyleResolver.h" | 39 #include "core/css/StyleResolver.h" |
45 #include "core/css/StyleRule.h" | 40 #include "core/css/StyleRule.h" |
| 41 #include "core/dom/Node.h" |
| 42 #include "core/dom/NodeTraversal.h" |
| 43 #include "core/dom/Position.h" |
| 44 #include "core/dom/QualifiedName.h" |
| 45 #include "core/dom/StyledElement.h" |
46 #include "core/editing/ApplyStyleCommand.h" | 46 #include "core/editing/ApplyStyleCommand.h" |
47 #include "core/editing/Editor.h" | 47 #include "core/editing/Editor.h" |
48 #include "core/editing/FrameSelection.h" | 48 #include "core/editing/FrameSelection.h" |
49 #include "core/editing/HTMLInterchange.h" | 49 #include "core/editing/HTMLInterchange.h" |
50 #include "core/editing/VisibleUnits.h" | 50 #include "core/editing/VisibleUnits.h" |
51 #include "core/editing/htmlediting.h" | 51 #include "core/editing/htmlediting.h" |
52 #include "core/page/Frame.h" | 52 #include "core/page/Frame.h" |
53 #include "core/page/RuntimeCSSEnabled.h" | 53 #include "core/page/RuntimeCSSEnabled.h" |
54 #include "core/rendering/style/RenderStyle.h" | 54 #include "core/rendering/style/RenderStyle.h" |
55 #include <wtf/HashSet.h> | 55 #include <wtf/HashSet.h> |
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 { | 1615 { |
1616 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { | 1616 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { |
1617 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); | 1617 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); |
1618 if (!hasTransparentBackgroundColor(ancestorStyle.get())) | 1618 if (!hasTransparentBackgroundColor(ancestorStyle.get())) |
1619 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); | 1619 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); |
1620 } | 1620 } |
1621 return 0; | 1621 return 0; |
1622 } | 1622 } |
1623 | 1623 |
1624 } | 1624 } |
OLD | NEW |