Fix for 3721453, CSS3 initial property caused crashes because the macros were not...
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jul 2004 20:22:01 +0000 (20:22 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jul 2004 20:22:01 +0000 (20:22 +0000)
        Reviewed by john

        * khtml/css/cssstyleselector.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6976 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/css/cssstyleselector.cpp

index e1cb507..b969d39 100644 (file)
@@ -1,3 +1,11 @@
+2004-07-08  David Hyatt  <hyatt@apple.com>
+
+       Fix for 3721453, CSS3 initial property caused crashes because the macros were not written correctly.
+       
+        Reviewed by john
+
+        * khtml/css/cssstyleselector.cpp:
+
 === Safari-151 ===
 
 2004-07-07  David Hyatt  <hyatt@apple.com>
index 7e23f12..f688578 100644 (file)
@@ -79,12 +79,18 @@ if (isInherit) \
 #define HANDLE_INHERIT_AND_INITIAL(prop, Prop) \
 HANDLE_INHERIT(prop, Prop) \
 else if (isInitial) \
-    style->set##Prop(RenderStyle::initial##Prop());
+{\
+    style->set##Prop(RenderStyle::initial##Prop());\
+    return;\
+}
 
 #define HANDLE_INHERIT_AND_INITIAL_WITH_VALUE(prop, Prop, Value) \
 HANDLE_INHERIT(prop, Prop) \
 else if (isInitial) \
-    style->set##Prop(RenderStyle::initial##Value());
+{\
+    style->set##Prop(RenderStyle::initial##Value());\
+    return;\
+}
 
 #define HANDLE_INHERIT_COND(propID, prop, Prop) \
 if (id == propID) \