Reviewed by Hyatt.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 Oct 2006 04:57:35 +0000 (04:57 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 Oct 2006 04:57:35 +0000 (04:57 +0000)
        Fix some bad formatting.

        * css/cssstyleselector.cpp:
        (WebCore::CSSStyleSelector::checkOneSelector):

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

WebCore/ChangeLog
WebCore/css/cssstyleselector.cpp

index b7905af0dd6def4d0b7c48aa479fd60308ea6149..f9c0bb386258537d65f4bf9dfe7a453159c6eb6c 100644 (file)
@@ -1,3 +1,12 @@
+2006-10-20  Timothy Hatcher  <timothy@apple.com>
+
+        Reviewed by Hyatt.
+
+        Fix some bad formatting.
+
+        * css/cssstyleselector.cpp:
+        (WebCore::CSSStyleSelector::checkOneSelector):
+
 2006-10-20  Darin Adler  <darin@apple.com>
 
         Reviewed by John.
 2006-10-20  Darin Adler  <darin@apple.com>
 
         Reviewed by John.
index be7999f8c297c2d5043601ed0c3643028c3aefd0..0a9c2b5726454712d119205d5319b1455fde61d3 100644 (file)
@@ -1530,10 +1530,10 @@ bool CSSStyleSelector::checkOneSelector(CSSSelector* sel, Element* e, bool isSub
                 if (strictParsing || isSubSelector || sel->relation() == CSSSelector::SubSelector || (sel->hasTag() && !e->hasTagName(aTag)) || e->isLink()) {
                     if (element == e && style)
                         style->setAffectedByHoverRules(true);
                 if (strictParsing || isSubSelector || sel->relation() == CSSSelector::SubSelector || (sel->hasTag() && !e->hasTagName(aTag)) || e->isLink()) {
                     if (element == e && style)
                         style->setAffectedByHoverRules(true);
-                        if (element != e && e->renderStyle())
-                            e->renderStyle()->setAffectedByHoverRules(true);
-                        if (e->hovered())
-                            return true;
+                    if (element != e && e->renderStyle())
+                        e->renderStyle()->setAffectedByHoverRules(true);
+                    if (e->hovered())
+                        return true;
                 }
                 break;
             }
                 }
                 break;
             }
@@ -1617,13 +1617,13 @@ bool CSSStyleSelector::checkOneSelector(CSSSelector* sel, Element* e, bool isSub
             // Pseudo-elements:
             case CSSSelector::PseudoFirstLine:
                 if (subject) {
             // Pseudo-elements:
             case CSSSelector::PseudoFirstLine:
                 if (subject) {
-                    dynamicPseudo=RenderStyle::FIRST_LINE;
+                    dynamicPseudo = RenderStyle::FIRST_LINE;
                     return true;
                 }
                 break;
             case CSSSelector::PseudoFirstLetter:
                 if (subject) {
                     return true;
                 }
                 break;
             case CSSSelector::PseudoFirstLetter:
                 if (subject) {
-                    dynamicPseudo=RenderStyle::FIRST_LETTER;
+                    dynamicPseudo = RenderStyle::FIRST_LETTER;
                     return true;
                 }
                 break;
                     return true;
                 }
                 break;