summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-05-23 13:53:06 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-05-23 13:56:13 -0700
commitf87bff5dd7500912b64a1abb3c76228f2da50b5d (patch)
treed65032af448989d55a421adba1f021ab7be13440
parent10b539940b83c9b7ea6a6ebcf8707d9841b4284f (diff)
downloadexternal_webkit-f87bff5dd7500912b64a1abb3c76228f2da50b5d.zip
external_webkit-f87bff5dd7500912b64a1abb3c76228f2da50b5d.tar.gz
external_webkit-f87bff5dd7500912b64a1abb3c76228f2da50b5d.tar.bz2
The clip should be effective even if it is empty.
bug:4473188 Change-Id: Idc34c3132d1f9eba23c6e4944c843c9c19c4dbb8
-rw-r--r--Source/WebCore/platform/graphics/android/ShaderProgram.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp
index 6933890..0117bc0 100644
--- a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp
+++ b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp
@@ -333,9 +333,6 @@ void ShaderProgram::clip(const FloatRect& clip)
if (clip == m_clipRect)
return;
- if (clip.width() == 0 && clip.height() == 0)
- return;
-
// we should only call glScissor in this function, so that we can easily
// track the current clipping rect.