Title: [196908] releases/WebKitGTK/webkit-2.10
- Revision
- 196908
- Author
- carlo...@webkit.org
- Date
- 2016-02-22 01:06:13 -0800 (Mon, 22 Feb 2016)
Log Message
Merge r196052 - ASSERTION FAILED: roundedIntPoint(rendererMappedResult) == roundedIntPoint(result)
https://bugs.webkit.org/show_bug.cgi?id=153576
Patch by Fujii Hironori <hironori.fu...@jp.sony.com> on 2016-02-02
Reviewed by Darin Adler.
Source/WebCore:
Tests: fast/block/geometry-map-assertion-with-rounding-negative-half.html
The results of roundedIntPoint of FloatPoint and LayoutPoint may be different
because of the uniqueness of LayoutUnit::round introduced by this bug
<https://bugs.webkit.org/show_bug.cgi?id=107208>.
Should convert a FloatPoint to a LayoutPoint before rounding.
* rendering/RenderGeometryMap.cpp:
(WebCore::RenderGeometryMap::mapToContainer):
LayoutTests:
* fast/block/geometry-map-assertion-with-rounding-negative-half-expected.txt: Added.
* fast/block/geometry-map-assertion-with-rounding-negative-half.html: Added.
Modified Paths
Added Paths
Diff
Modified: releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog (196907 => 196908)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog 2016-02-22 09:04:43 UTC (rev 196907)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog 2016-02-22 09:06:13 UTC (rev 196908)
@@ -1,3 +1,13 @@
+2016-02-02 Fujii Hironori <hironori.fu...@jp.sony.com>
+
+ ASSERTION FAILED: roundedIntPoint(rendererMappedResult) == roundedIntPoint(result)
+ https://bugs.webkit.org/show_bug.cgi?id=153576
+
+ Reviewed by Darin Adler.
+
+ * fast/block/geometry-map-assertion-with-rounding-negative-half-expected.txt: Added.
+ * fast/block/geometry-map-assertion-with-rounding-negative-half.html: Added.
+
2015-12-22 Pranjal Jumde <pju...@apple.com>
Test to check for stack recursion when indexed propertyNames defined using Object.defineProperty are deleted.
Added: releases/WebKitGTK/webkit-2.10/LayoutTests/fast/block/geometry-map-assertion-with-rounding-negative-half-expected.txt (0 => 196908)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/fast/block/geometry-map-assertion-with-rounding-negative-half-expected.txt (rev 0)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/fast/block/geometry-map-assertion-with-rounding-negative-half-expected.txt 2016-02-22 09:06:13 UTC (rev 196908)
@@ -0,0 +1,2 @@
+PASS if no assert or crash in debug build.
+
Added: releases/WebKitGTK/webkit-2.10/LayoutTests/fast/block/geometry-map-assertion-with-rounding-negative-half.html (0 => 196908)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/fast/block/geometry-map-assertion-with-rounding-negative-half.html (rev 0)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/fast/block/geometry-map-assertion-with-rounding-negative-half.html 2016-02-22 09:06:13 UTC (rev 196908)
@@ -0,0 +1,32 @@
+<div>PASS if no assert or crash in debug build.</div>
+<div id="a"><span id="x"></span><span id="b"></span></div>
+<style>
+#a {
+ background: pink;
+ display: inline-block;
+ position: absolute;
+ width: auto;
+ top: -300px;
+ left: -400px;
+}
+#b {
+ display: inline-block;
+ position: absolute;
+ height: 100%;
+ width: 100%;
+ overflow: scroll
+}
+#x {
+ display: inline-block;
+ height: 30px;
+ width: 100.5px;
+}
+</style>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ document.addEventListener("DOMContentLoaded", function() {
+ document.getElementById('a').offsetWidth;
+ }, false);
+</script>
Modified: releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog (196907 => 196908)
--- releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog 2016-02-22 09:04:43 UTC (rev 196907)
+++ releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog 2016-02-22 09:06:13 UTC (rev 196908)
@@ -1,3 +1,20 @@
+2016-02-02 Fujii Hironori <hironori.fu...@jp.sony.com>
+
+ ASSERTION FAILED: roundedIntPoint(rendererMappedResult) == roundedIntPoint(result)
+ https://bugs.webkit.org/show_bug.cgi?id=153576
+
+ Reviewed by Darin Adler.
+
+ Tests: fast/block/geometry-map-assertion-with-rounding-negative-half.html
+
+ The results of roundedIntPoint of FloatPoint and LayoutPoint may be different
+ because of the uniqueness of LayoutUnit::round introduced by this bug
+ <https://bugs.webkit.org/show_bug.cgi?id=107208>.
+ Should convert a FloatPoint to a LayoutPoint before rounding.
+
+ * rendering/RenderGeometryMap.cpp:
+ (WebCore::RenderGeometryMap::mapToContainer):
+
2016-02-02 Jinyoung Hur <hur....@navercorp.com>
WEBGL_debug_shaders should be disabled for OpenGLES backend also
Modified: releases/WebKitGTK/webkit-2.10/Source/WebCore/rendering/RenderGeometryMap.cpp (196907 => 196908)
--- releases/WebKitGTK/webkit-2.10/Source/WebCore/rendering/RenderGeometryMap.cpp 2016-02-22 09:04:43 UTC (rev 196907)
+++ releases/WebKitGTK/webkit-2.10/Source/WebCore/rendering/RenderGeometryMap.cpp 2016-02-22 09:06:13 UTC (rev 196908)
@@ -104,20 +104,21 @@
FloatPoint RenderGeometryMap::mapToContainer(const FloatPoint& p, const RenderLayerModelObject* container) const
{
FloatPoint result;
+#if !ASSERT_DISABLED
+ FloatPoint rendererMappedResult = m_mapping.last().m_renderer->localToAbsolute(p, m_mapCoordinatesFlags);
+#endif
- if (!hasFixedPositionStep() && !hasTransformStep() && !hasNonUniformStep() && (!container || (m_mapping.size() && container == m_mapping[0].m_renderer)))
+ if (!hasFixedPositionStep() && !hasTransformStep() && !hasNonUniformStep() && (!container || (m_mapping.size() && container == m_mapping[0].m_renderer))) {
result = p + roundedIntSize(m_accumulatedOffset);
- else {
+ // Should convert to a LayoutPoint because of the uniqueness of LayoutUnit::round
+ ASSERT(roundedIntPoint(LayoutPoint(rendererMappedResult)) == result);
+ } else {
TransformState transformState(TransformState::ApplyTransformDirection, p);
mapToContainer(transformState, container);
result = transformState.lastPlanarPoint();
+ ASSERT(rendererMappedResult == result);
}
-#if !ASSERT_DISABLED
- FloatPoint rendererMappedResult = m_mapping.last().m_renderer->localToAbsolute(p, m_mapCoordinatesFlags);
- ASSERT(roundedIntPoint(rendererMappedResult) == roundedIntPoint(result));
-#endif
-
return result;
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes