[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:29:49 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 2f5ac59ae8b9e12d5e282212ea90dac41e01de41
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Mar 14 23:27:38 2003 +0000
Make :target match the root element if no #fragment is specified in
the URL.
Reviewed by john
* khtml/css/cssstyleselector.cpp:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 9c46a35..b8cbf9b 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,12 @@
+2003-03-14 David Hyatt <hyatt at apple.com>
+
+ Make :target match the root element if no #fragment is specified in
+ the URL.
+
+ Reviewed by john
+
+ * khtml/css/cssstyleselector.cpp:
+
2003-03-14 Maciej Stachowiak <mjs at apple.com>
Reviewed by NOBODY (OOPS!).
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 9c46a35..b8cbf9b 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,12 @@
+2003-03-14 David Hyatt <hyatt at apple.com>
+
+ Make :target match the root element if no #fragment is specified in
+ the URL.
+
+ Reviewed by john
+
+ * khtml/css/cssstyleselector.cpp:
+
2003-03-14 Maciej Stachowiak <mjs at apple.com>
Reviewed by NOBODY (OOPS!).
diff --git a/WebCore/khtml/css/cssstyleselector.cpp b/WebCore/khtml/css/cssstyleselector.cpp
index f6a9ca4..c99cb15 100644
--- a/WebCore/khtml/css/cssstyleselector.cpp
+++ b/WebCore/khtml/css/cssstyleselector.cpp
@@ -902,7 +902,10 @@ bool CSSStyleSelector::checkOneSelector(DOM::CSSSelector *sel, DOM::ElementImpl
}
break;
case CSSSelector::PseudoTarget:
- if (e && e == e->getDocument()->getCSSTarget())
+ if (!e->getDocument()->getCSSTarget() && // :target matches the root when no CSS target exists
+ e == e->getDocument()->documentElement())
+ return true;
+ if (e == e->getDocument()->getCSSTarget())
return true;
break;
case CSSSelector::PseudoLink:
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list