Reviewed by Dave.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 May 2004 22:44:23 +0000 (22:44 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 May 2004 22:44:23 +0000 (22:44 +0000)
        - fixed <rdar://problem/3650026>: "background property doesn't work right on webdevtips.com due to background:inherit"

        * khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::applyDeclarations):
        Added CSS_PROP_BACKGROUND to the list of properties that must be applied in the first pass.

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

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

index 489caa5fa541172655ddbe3c5dfa8d7a50be1769..e25f6eb9ddb65723ae69c5cc2afe9e4f982517c1 100644 (file)
@@ -1,3 +1,12 @@
+2004-05-14  Darin Adler  <darin@apple.com>
+
+        Reviewed by Dave.
+
+        - fixed <rdar://problem/3650026>: "background property doesn't work right on webdevtips.com due to background:inherit"
+
+        * khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::applyDeclarations):
+        Added CSS_PROP_BACKGROUND to the list of properties that must be applied in the first pass.
+
 2004-05-13  David Hyatt  <hyatt@apple.com>
 
        Fix image loading for <input type=image> and <object>.  Make sure it works dynamically and make sure
index b2bbda0028a0fb5d89ad7626ddc735e3ca03b6de..64bfdf61033d29043c48eeefe69306a812d6b650 100644 (file)
@@ -1632,14 +1632,15 @@ void CSSStyleSelector::applyDeclarations(bool applyFirst, bool isImportant,
                     bool first;
                     switch(current->id())
                     {
-                        case CSS_PROP_FONT_STYLE:
-                        case CSS_PROP_FONT_SIZE:
-                        case CSS_PROP_FONT_WEIGHT:
-                        case CSS_PROP_FONT_FAMILY:
-                        case CSS_PROP_FONT:
-                        case CSS_PROP_COLOR:
+                        case CSS_PROP_BACKGROUND:
                         case CSS_PROP_BACKGROUND_IMAGE:
+                        case CSS_PROP_COLOR:
                         case CSS_PROP_DISPLAY:
+                        case CSS_PROP_FONT:
+                        case CSS_PROP_FONT_SIZE:
+                        case CSS_PROP_FONT_STYLE:
+                        case CSS_PROP_FONT_FAMILY:
+                        case CSS_PROP_FONT_WEIGHT:
                             // these have to be applied first, because other properties use the computed
                             // values of these porperties.
                             first = true;