diff options
author | Bart Sears <bsears@google.com> | 2011-11-30 22:11:17 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-30 22:11:17 -0800 |
commit | 42e973186ecf6f1a040f14b7169bb99e0f100563 (patch) | |
tree | 8962f4f09ee774f71ed8fcae8b76f1c091b9cd10 | |
parent | ed03bc998bd1c1a64a99ee631f3bc31466590bf1 (diff) | |
parent | 965fc3e3a2ae0316a67f7e1c82a04bc533a383d4 (diff) | |
download | external_webkit-42e973186ecf6f1a040f14b7169bb99e0f100563.zip external_webkit-42e973186ecf6f1a040f14b7169bb99e0f100563.tar.gz external_webkit-42e973186ecf6f1a040f14b7169bb99e0f100563.tar.bz2 |
Merge "A WAR to enable the slider touch event on youtube.com" into ics-mr1
-rw-r--r-- | Source/WebCore/rendering/RenderBox.cpp | 7 |
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; } |