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/resolver/StyleResolver.h" | 32 #include "core/css/resolver/StyleResolver.h" |
33 | 33 |
34 #include <stdlib.h> | 34 #include <stdlib.h> |
35 #include "CSSPropertyNames.h" | 35 #include "CSSPropertyNames.h" |
36 #include "SVGNames.h" | |
37 #include "core/css/CSSPrimitiveValueMappings.h" | 36 #include "core/css/CSSPrimitiveValueMappings.h" |
38 #include "core/css/CSSValueList.h" | 37 #include "core/css/CSSValueList.h" |
39 #include "core/css/ShadowValue.h" | 38 #include "core/css/ShadowValue.h" |
40 #include "core/dom/Document.h" | |
41 #include "core/rendering/style/SVGRenderStyle.h" | 39 #include "core/rendering/style/SVGRenderStyle.h" |
42 #include "core/rendering/style/SVGRenderStyleDefs.h" | 40 #include "core/rendering/style/SVGRenderStyleDefs.h" |
43 #include "core/svg/SVGColor.h" | 41 #include "core/svg/SVGColor.h" |
44 #include "core/svg/SVGPaint.h" | 42 #include "core/svg/SVGPaint.h" |
45 #include "core/svg/SVGStyledElement.h" | |
46 #include "core/svg/SVGURIReference.h" | 43 #include "core/svg/SVGURIReference.h" |
47 #include <wtf/MathExtras.h> | 44 #include <wtf/MathExtras.h> |
48 | 45 |
49 #define HANDLE_INHERIT(prop, Prop) \ | 46 #define HANDLE_INHERIT(prop, Prop) \ |
50 if (isInherit) \ | 47 if (isInherit) \ |
51 { \ | 48 { \ |
52 svgstyle->set##Prop(state.parentStyle()->svgStyle()->prop()); \ | 49 svgstyle->set##Prop(state.parentStyle()->svgStyle()->prop()); \ |
53 return; \ | 50 return; \ |
54 } | 51 } |
55 | 52 |
(...skipping 552 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 | 605 // 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 | 606 // in either this switch statement or the one in StyleResolver::appl
yProperty |
610 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", id); | 607 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", id); |
611 return; | 608 return; |
612 } | 609 } |
613 } | 610 } |
614 | 611 |
615 } | 612 } |
616 | 613 |
617 #endif | 614 #endif |
OLD | NEW |