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 29 matching lines...) Expand all Loading... |
40 #include "core/css/resolver/StyleResolver.h" | 40 #include "core/css/resolver/StyleResolver.h" |
41 #include "core/dom/Node.h" | 41 #include "core/dom/Node.h" |
42 #include "core/dom/NodeTraversal.h" | 42 #include "core/dom/NodeTraversal.h" |
43 #include "core/dom/Position.h" | 43 #include "core/dom/Position.h" |
44 #include "core/dom/QualifiedName.h" | 44 #include "core/dom/QualifiedName.h" |
45 #include "core/dom/StyledElement.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" | |
51 #include "core/editing/htmlediting.h" | 50 #include "core/editing/htmlediting.h" |
52 #include "core/html/HTMLFontElement.h" | 51 #include "core/html/HTMLFontElement.h" |
53 #include "core/page/Frame.h" | 52 #include "core/page/Frame.h" |
54 #include "core/page/RuntimeCSSEnabled.h" | 53 #include "core/page/RuntimeCSSEnabled.h" |
55 #include "core/rendering/style/RenderStyle.h" | 54 #include "core/rendering/style/RenderStyle.h" |
56 #include <wtf/HashSet.h> | 55 #include <wtf/HashSet.h> |
57 | 56 |
58 namespace WebCore { | 57 namespace WebCore { |
59 | 58 |
60 // Editing style properties must be preserved during editing operation. | 59 // Editing style properties must be preserved during editing operation. |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 { | 1615 { |
1617 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { | 1616 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { |
1618 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); | 1617 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl
aration::create(ancestor); |
1619 if (!hasTransparentBackgroundColor(ancestorStyle.get())) | 1618 if (!hasTransparentBackgroundColor(ancestorStyle.get())) |
1620 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); | 1619 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor
); |
1621 } | 1620 } |
1622 return 0; | 1621 return 0; |
1623 } | 1622 } |
1624 | 1623 |
1625 } | 1624 } |
OLD | NEW |