OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2005 Apple Computer, Inc. | 2 Copyright (C) 2005 Apple Computer, Inc. |
3 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 2004, 2005, 2008 Rob Buis <buis@kde.org> | 4 2004, 2005, 2008 Rob Buis <buis@kde.org> |
5 Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
6 | 6 |
7 Based on khtml css code by: | 7 Based on khtml css code by: |
8 Copyright(C) 1999-2003 Lars Knoll(knoll@kde.org) | 8 Copyright(C) 1999-2003 Lars Knoll(knoll@kde.org) |
9 (C) 2003 Apple Computer, Inc. | 9 (C) 2003 Apple Computer, Inc. |
10 (C) 2004 Allan Sandfeld Jensen(kde@carewolf.com) | 10 (C) 2004 Allan Sandfeld Jensen(kde@carewolf.com) |
(...skipping 15 matching lines...) Expand all Loading... |
26 Boston, MA 02110-1301, USA. | 26 Boston, MA 02110-1301, USA. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 | 30 |
31 #if ENABLE(SVG) | 31 #if ENABLE(SVG) |
32 #include "core/css/StyleResolver.h" | 32 #include "core/css/StyleResolver.h" |
33 | 33 |
34 #include <stdlib.h> | 34 #include <stdlib.h> |
35 #include "CSSPropertyNames.h" | 35 #include "CSSPropertyNames.h" |
36 #include "Document.h" | |
37 #include "SVGColor.h" | 36 #include "SVGColor.h" |
38 #include "SVGNames.h" | 37 #include "SVGNames.h" |
39 #include "SVGPaint.h" | 38 #include "SVGPaint.h" |
40 #include "SVGStyledElement.h" | 39 #include "SVGStyledElement.h" |
41 #include "SVGURIReference.h" | 40 #include "SVGURIReference.h" |
42 #include "core/css/CSSPrimitiveValueMappings.h" | 41 #include "core/css/CSSPrimitiveValueMappings.h" |
43 #include "core/css/CSSValueList.h" | 42 #include "core/css/CSSValueList.h" |
44 #include "core/css/ShadowValue.h" | 43 #include "core/css/ShadowValue.h" |
| 44 #include "core/dom/Document.h" |
45 #include "core/rendering/style/SVGRenderStyle.h" | 45 #include "core/rendering/style/SVGRenderStyle.h" |
46 #include "core/rendering/style/SVGRenderStyleDefs.h" | 46 #include "core/rendering/style/SVGRenderStyleDefs.h" |
47 #include <wtf/MathExtras.h> | 47 #include <wtf/MathExtras.h> |
48 | 48 |
49 #define HANDLE_INHERIT(prop, Prop) \ | 49 #define HANDLE_INHERIT(prop, Prop) \ |
50 if (isInherit) \ | 50 if (isInherit) \ |
51 { \ | 51 { \ |
52 svgstyle->set##Prop(state.parentStyle()->svgStyle()->prop()); \ | 52 svgstyle->set##Prop(state.parentStyle()->svgStyle()->prop()); \ |
53 return; \ | 53 return; \ |
54 } | 54 } |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 // If you crash here, it's because you added a css property and are
not handling it | 608 // If you crash here, it's because you added a css property and are
not handling it |
609 // in either this switch statement or the one in StyleResolver::appl
yProperty | 609 // in either this switch statement or the one in StyleResolver::appl
yProperty |
610 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", id); | 610 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", id); |
611 return; | 611 return; |
612 } | 612 } |
613 } | 613 } |
614 | 614 |
615 } | 615 } |
616 | 616 |
617 #endif | 617 #endif |
OLD | NEW |