| 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 12 matching lines...) Expand all Loading... |
| 23 You should have received a copy of the GNU Library General Public License | 23 You should have received a copy of the GNU Library General Public License |
| 24 along with this library; see the file COPYING.LIB. If not, write to | 24 along with this library; see the file COPYING.LIB. If not, write to |
| 25 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 25 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 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 #include "core/css/resolver/StyleResolver.h" | 31 #include "core/css/resolver/StyleResolver.h" |
| 32 | 32 |
| 33 #include <stdlib.h> | |
| 34 #include "CSSPropertyNames.h" | 33 #include "CSSPropertyNames.h" |
| 35 #include "core/css/CSSPrimitiveValueMappings.h" | 34 #include "core/css/CSSPrimitiveValueMappings.h" |
| 36 #include "core/css/CSSValueList.h" | 35 #include "core/css/CSSValueList.h" |
| 37 #include "core/css/ShadowValue.h" | 36 #include "core/css/ShadowValue.h" |
| 38 #include "core/rendering/style/SVGRenderStyle.h" | 37 #include "core/rendering/style/SVGRenderStyle.h" |
| 39 #include "core/rendering/style/SVGRenderStyleDefs.h" | 38 #include "core/rendering/style/SVGRenderStyleDefs.h" |
| 40 #include "core/svg/SVGColor.h" | 39 #include "core/svg/SVGColor.h" |
| 41 #include "core/svg/SVGPaint.h" | 40 #include "core/svg/SVGPaint.h" |
| 42 #include "core/svg/SVGURIReference.h" | 41 #include "core/svg/SVGURIReference.h" |
| 43 #include <wtf/MathExtras.h> | 42 #include "wtf/MathExtras.h" |
| 44 | 43 |
| 45 #define HANDLE_INHERIT(prop, Prop) \ | 44 #define HANDLE_INHERIT(prop, Prop) \ |
| 46 if (isInherit) \ | 45 if (isInherit) \ |
| 47 { \ | 46 { \ |
| 48 svgstyle->set##Prop(state.parentStyle()->svgStyle()->prop()); \ | 47 svgstyle->set##Prop(state.parentStyle()->svgStyle()->prop()); \ |
| 49 return; \ | 48 return; \ |
| 50 } | 49 } |
| 51 | 50 |
| 52 #define HANDLE_INHERIT_AND_INITIAL(prop, Prop) \ | 51 #define HANDLE_INHERIT_AND_INITIAL(prop, Prop) \ |
| 53 HANDLE_INHERIT(prop, Prop) \ | 52 HANDLE_INHERIT(prop, Prop) \ |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 } | 601 } |
| 603 default: | 602 default: |
| 604 // If you crash here, it's because you added a css property and are
not handling it | 603 // If you crash here, it's because you added a css property and are
not handling it |
| 605 // in either this switch statement or the one in StyleResolver::appl
yProperty | 604 // in either this switch statement or the one in StyleResolver::appl
yProperty |
| 606 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", id); | 605 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", id); |
| 607 return; | 606 return; |
| 608 } | 607 } |
| 609 } | 608 } |
| 610 | 609 |
| 611 } | 610 } |
| OLD | NEW |