[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:28:20 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit b7e7f9d8035a18216e979b20d7f780d5cd4907fb
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Mar 8 00:04:17 2003 +0000

    	Fix for time.com regression.  Don't allow text-decoration to
    	apply to anchor elements with no href.
    
            Reviewed by darin
    
            * khtml/css/cssstyleselector.cpp:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3782 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 59b41d2..049b796 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,14 @@
 2003-03-07  David Hyatt  <hyatt at apple.com>
 
+	Fix for time.com regression.  Don't allow text-decoration to
+	apply to anchor elements with no href.
+	
+        Reviewed by darin
+
+        * khtml/css/cssstyleselector.cpp:
+
+2003-03-07  David Hyatt  <hyatt at apple.com>
+
 	Whoops. Fix regression causedb y previous checkin.
 	
         Reviewed by darin
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 59b41d2..049b796 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,14 @@
 2003-03-07  David Hyatt  <hyatt at apple.com>
 
+	Fix for time.com regression.  Don't allow text-decoration to
+	apply to anchor elements with no href.
+	
+        Reviewed by darin
+
+        * khtml/css/cssstyleselector.cpp:
+
+2003-03-07  David Hyatt  <hyatt at apple.com>
+
 	Whoops. Fix regression causedb y previous checkin.
 	
         Reviewed by darin
diff --git a/WebCore/khtml/css/cssstyleselector.cpp b/WebCore/khtml/css/cssstyleselector.cpp
index 637d964..84e2c99 100644
--- a/WebCore/khtml/css/cssstyleselector.cpp
+++ b/WebCore/khtml/css/cssstyleselector.cpp
@@ -2884,7 +2884,14 @@ void CSSStyleSelector::applyRule( int id, DOM::CSSValueImpl *value )
 	    }
         }
 
-	style->setTextDecoration(t);
+        // In quirks mode, we simply ignore text-decoration declarations on links with no href.
+        // People write lousy stylesheets (e.g., the articles on time.com) where they say:
+        // a { text-decoration: underline; }
+        // instead of:
+        // :link { text-decoration: underline; }
+        // So <a name="foo"> that wraps a bunch of content ends up causing underlines to be drawn.
+        if (strictParsing || element->id() != ID_A || element->hasAnchor())
+            style->setTextDecoration(t);
 	break;
     }
     case CSS_PROP__KONQ_FLOW_MODE:

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list