summaryrefslogtreecommitdiffstats
path: root/Source/WebCore
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore')
-rw-r--r--Source/WebCore/rendering/RenderBox.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/rendering/RenderBox.cpp b/Source/WebCore/rendering/RenderBox.cpp
index 80d5699..fb1dd2c 100644
--- a/Source/WebCore/rendering/RenderBox.cpp
+++ b/Source/WebCore/rendering/RenderBox.cpp
@@ -1562,6 +1562,13 @@ void RenderBox::computeLogicalWidth()
// https://bugs.webkit.org/show_bug.cgi?id=46418
if (hasOverrideSize() && parent()->style()->boxOrient() == HORIZONTAL
&& parent()->isFlexibleBox() && parent()->isFlexingChildren()) {
+#if PLATFORM(ANDROID)
+ // Strangely, the slider is get overrided as width 0 on youtube.com
+ // The wrong width will cause the touch hit test for the slider failed.
+ // This WAR should be safe since it is only targeted to slider.
+ // TODO: root cause this and see if any webkit update fix this.
+ if (!(isSlider() && overrideSize() == 0))
+#endif
setLogicalWidth(overrideSize());
return;
}