⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 105401 in webkit


Ignore:
Timestamp:
Jan 19, 2012, 4:17:09 AM (15 years ago)
Author:
Nikolas Zimmermann
Message:

RenderSVGRoot should inherit from RenderReplaced
https://bugs.webkit.org/show_bug.cgi?id=76446

Reviewed by Pavel Feldman.

Fix Chromium specific problem with svg/text/select-x-list-4.svg, making it fail on the bots.
After transforming the endPos.x + 1 -> absEndPos.x, subtract -1 again, to be sure we don't
select text too far after the end position, making the selection currently disappear, which
is a bug, but can be avoided in this testcase.

  • platform/chromium/test_expectations.txt: Unskip test.
  • svg/text/resources/SelectionTestCase.js:

(selectRange): Subtract -1 from absEndPos.x.

Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r105397 r105401  
     12012-01-19  Nikolas Zimmermann  <nzimmermann@rim.com>
     2
     3        RenderSVGRoot should inherit from RenderReplaced
     4        https://bugs.webkit.org/show_bug.cgi?id=76446
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Fix Chromium specific problem with svg/text/select-x-list-4.svg, making it fail on the bots.
     9        After transforming the endPos.x + 1 -> absEndPos.x, subtract -1 again, to be sure we don't
     10        select text too far after the end position, making the selection currently disappear, which
     11        is a bug, but can be avoided in this testcase.
     12
     13        * platform/chromium/test_expectations.txt: Unskip test.
     14        * svg/text/resources/SelectionTestCase.js:
     15        (selectRange): Subtract -1 from absEndPos.x.
     16
    1172012-01-19  Csaba Osztrogonác  <ossy@webkit.org>
    218
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r105392 r105401  
    38573857BUGWK76562 : fast/canvas/webgl/drawingbuffer-test.html = TEXT
    38583858
    3859 BUGWK76446 : svg/text/select-x-list-4.svg = IMAGE+TEXT
    3860 
    38613859// This test is passing, but it doesn't seem possible to add GPU+Leopard specific baselines.
    38623860BUGJAMESR LEOPARD GPU : fast/canvas/quadraticCurveTo.xml = IMAGE
  • trunk/LayoutTests/svg/text/resources/SelectionTestCase.js

    r83710 r105401  
    6767        var absStartPos = toAbsoluteCoordinates(startPos, element);
    6868        var absEndPos = toAbsoluteCoordinates(endPos, element);
     69        absEndPos.x -= 1;
    6970
    7071        // Move to selection origin and hold down mouse
Note: See TracChangeset for help on using the changeset viewer.