Title: [170621] trunk/Source/WebCore
- Revision
- 170621
- Author
- [email protected]
- Date
- 2014-06-30 17:38:12 -0700 (Mon, 30 Jun 2014)
Log Message
[iOS][WK2] Do not put tap highlight on images that are not in links, and on applet/embed/object
https://bugs.webkit.org/show_bug.cgi?id=134471
<rdar://problem/17513542>
Reviewed by Enrica Casucci.
UIKit has some special code to avoid tap highlight on certain type of object. This is not very flexible
since the page has no way of overriding that behavior.
This patch implement the same feature by changing the default stylesheet. The tap highlight is disabled
by default for those object, and enabled for images that are in a link.
* css/html.css:
(applet, embed, object, img):
(:-webkit-any-link img):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (170620 => 170621)
--- trunk/Source/WebCore/ChangeLog 2014-07-01 00:27:25 UTC (rev 170620)
+++ trunk/Source/WebCore/ChangeLog 2014-07-01 00:38:12 UTC (rev 170621)
@@ -1,3 +1,21 @@
+2014-06-30 Benjamin Poulain <[email protected]>
+
+ [iOS][WK2] Do not put tap highlight on images that are not in links, and on applet/embed/object
+ https://bugs.webkit.org/show_bug.cgi?id=134471
+ <rdar://problem/17513542>
+
+ Reviewed by Enrica Casucci.
+
+ UIKit has some special code to avoid tap highlight on certain type of object. This is not very flexible
+ since the page has no way of overriding that behavior.
+
+ This patch implement the same feature by changing the default stylesheet. The tap highlight is disabled
+ by default for those object, and enabled for images that are in a link.
+
+ * css/html.css:
+ (applet, embed, object, img):
+ (:-webkit-any-link img):
+
2014-06-30 Myles C. Maxfield <[email protected]>
All Indic text is rendered as boxes on iOS
Modified: trunk/Source/WebCore/css/html.css (170620 => 170621)
--- trunk/Source/WebCore/css/html.css 2014-07-01 00:27:25 UTC (rev 170620)
+++ trunk/Source/WebCore/css/html.css 2014-07-01 00:38:12 UTC (rev 170621)
@@ -2,7 +2,7 @@
* The default style sheet used to render HTML.
*
* Copyright (C) 2000 Lars Knoll ([email protected])
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
+ * Copyright (C) 2003-2011, 2014 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -1230,6 +1230,15 @@
unicode-bidi: bidi-override;
}
+#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS
+applet, embed, object, img {
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+:-webkit-any-link img {
+ -webkit-tap-highlight-color: inherit;
+}
+#endif
+
/* page */
@page {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes