Commit 234a1acd authored by rwlbuis@webkit.org's avatar rwlbuis@webkit.org

2011-05-12 Rob Buis <rwlbuis@gmail.com>

        Reviewed by Darin Adler.

        REGRESSION(79985): Changes in fill-opacity should trigger repaint but don't
        https://bugs.webkit.org/show_bug.cgi?id=59941

        Improve test to not need a click. Offer a stroke-opacity variant as well.

        * platform/mac/svg/custom/fill-opacity-update-expected.png:
        * platform/mac/svg/custom/fill-opacity-update-expected.txt:
        * platform/mac/svg/custom/stroke-opacity-update-expected.png: Added.
        * platform/mac/svg/custom/stroke-opacity-update-expected.txt: Added.
        * svg/custom/fill-opacity-update.svg:
        * svg/custom/stroke-opacity-update.svg: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2b1c9808
2011-05-12 Rob Buis <rwlbuis@gmail.com>
Reviewed by Darin Adler.
REGRESSION(79985): Changes in fill-opacity should trigger repaint but don't
https://bugs.webkit.org/show_bug.cgi?id=59941
Improve test to not need a click. Offer a stroke-opacity variant as well.
* platform/mac/svg/custom/fill-opacity-update-expected.png:
* platform/mac/svg/custom/fill-opacity-update-expected.txt:
* platform/mac/svg/custom/stroke-opacity-update-expected.png: Added.
* platform/mac/svg/custom/stroke-opacity-update-expected.txt: Added.
* svg/custom/fill-opacity-update.svg:
* svg/custom/stroke-opacity-update.svg: Added.
2011-05-12 Simon Fraser <simon.fraser@apple.com> 2011-05-12 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dan Bernstein. Reviewed by Dan Bernstein.
layer at (0,0) size 800x600 layer at (0,0) size 800x600
RenderView at (0,0) size 800x600 RenderView at (0,0) size 800x600
layer at (0,0) size 226x188 layer at (0,0) size 800x600
RenderSVGRoot {svg} at (75,47) size 76x76 RenderSVGRoot {svg} at (0,0) size 200x200
RenderSVGPath {circle} at (75,47) size 76x76 [fill={[type=SOLID] [color=#008000]}] [cx=300.00] [cy=225.00] [r=100.00] RenderSVGPath {circle} at (0,0) size 200x200 [fill={[type=SOLID] [color=#008000]}] [cx=100.00] [cy=100.00] [r=100.00]
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderSVGRoot {svg} at (0,0) size 203x203
RenderSVGPath {circle} at (0,0) size 203x203 [stroke={[type=SOLID] [color=#008000] [stroke width=5.00]}] [cx=100.00] [cy=100.00] [r=100.00]
<?xml version="1.0" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" onload="setTimeout('runTest()', 0)">
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" <circle cx="100" cy="100" r="100" fill="green" fill-opacity="0"/>
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="6cm" height="5cm" viewBox="0 0 600 500"
xmlns="http://www.w3.org/2000/svg" version="1.1" onload="setTimeout('runTest()', 0)">
<script> <script>
if (window.layoutTestController) if (window.layoutTestController)
window.layoutTestController.waitUntilDone(); window.layoutTestController.waitUntilDone();
function circle_click(evt) { function runTest() {
evt.target.setAttribute("fill-opacity", "1"); document.getElementsByTagName("circle")[0].setAttribute("fill-opacity", "1");
if (window.layoutTestController) if (window.layoutTestController)
layoutTestController.notifyDone(); window.layoutTestController.notifyDone();
}
function runTest() {
if (window.eventSender) {
eventSender.mouseMoveTo(100, 100);
eventSender.mouseDown();
eventSender.mouseUp();
} }
}
</script> </script>
<circle onclick="circle_click(evt)" cx="300" cy="225" r="100" fill="green" fill-opacity="0"/>
</svg> </svg>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" onload="setTimeout('runTest()', 0)">
<circle cx="100" cy="100" r="100" fill="none" stroke="green" stroke-width="5px" stroke-opacity="0"/>
<script>
if (window.layoutTestController)
window.layoutTestController.waitUntilDone();
function runTest() {
document.getElementsByTagName("circle")[0].setAttribute("stroke-opacity", "1");
if (window.layoutTestController)
window.layoutTestController.notifyDone();
}
</script>
</svg>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment