Changeset 84512 in webkit


Ignore:
Timestamp:
Apr 21, 2011 9:57:02 AM (13 years ago)
Author:
mdelaney@apple.com
Message:

2011-04-20 MORITA Hajime <morrita@google.com>

Reviewed by Dimitri Glazkov.

Content of <summary> should be forwarded through the shadow DOM
https://bugs.webkit.org/show_bug.cgi?id=58914

  • Added test cases for dynamic DOM change.
  • Updated expectations details-open2.html because generated RenderTree slightly changed.
  • fast/html/details-add-summary-child-1.html: Added.
  • fast/html/details-add-summary-child-2.html: Added.
  • fast/html/details-remove-summary-child-1.html: Added.
  • fast/html/details-remove-summary-child-2.html: Added.
  • platform/chromium/test_expectations.txt:
  • platform/mac/fast/html/details-add-summary-child-1-expected.checksum: Added.
  • platform/mac/fast/html/details-add-summary-child-1-expected.png: Added.
  • platform/mac/fast/html/details-add-summary-child-1-expected.txt: Added.
  • platform/mac/fast/html/details-add-summary-child-2-expected.checksum: Added.
  • platform/mac/fast/html/details-add-summary-child-2-expected.png: Added.
  • platform/mac/fast/html/details-add-summary-child-2-expected.txt: Added.
  • platform/mac/fast/html/details-open2-expected.txt:
  • platform/mac/fast/html/details-remove-summary-child-1-expected.checksum: Added.
  • platform/mac/fast/html/details-remove-summary-child-1-expected.png: Added.
  • platform/mac/fast/html/details-remove-summary-child-1-expected.txt: Added.
  • platform/mac/fast/html/details-remove-summary-child-2-expected.checksum: Added.
  • platform/mac/fast/html/details-remove-summary-child-2-expected.png: Added.
  • platform/mac/fast/html/details-remove-summary-child-2-expected.txt: Added.

2011-04-20 Matthew Delaney <mdelaney@apple.com>

Reviewed by Maciej Stachowiak.

arc() should add a circle to the path when start and end angles are far enough apart
https://bugs.webkit.org/show_bug.cgi?id=58934

Test: fast/canvas/canvas_arc_largeangles.html

  • html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::arc):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r84511 r84512  
    2727        * platform/mac/fast/html/details-remove-summary-child-2-expected.png: Added.
    2828        * platform/mac/fast/html/details-remove-summary-child-2-expected.txt: Added.
     29
     302011-04-20  Matthew Delaney  <mdelaney@apple.com>
     31
     32        Reviewed by Maciej Stachowiak.
     33
     34        arc() should add a circle to the path when start and end angles are far enough apart
     35        https://bugs.webkit.org/show_bug.cgi?id=58934
     36
     37        * fast/canvas/canvas_arc_largeangles-expected.txt: Added.
     38        * fast/canvas/canvas_arc_largeangles.html: Added.
    2939
    30402011-04-20  Matthew Delaney  <mdelaney@apple.com>
  • trunk/Source/WebCore/ChangeLog

    r84511 r84512  
     12011-04-20  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        arc() should add a circle to the path when start and end angles are far enough apart
     6        https://bugs.webkit.org/show_bug.cgi?id=58934
     7
     8        Test: fast/canvas/canvas_arc_largeangles.html
     9
     10        * html/canvas/CanvasRenderingContext2D.cpp:
     11        (WebCore::CanvasRenderingContext2D::arc):
     12
    1132011-04-20  MORITA Hajime  <morrita@google.com>
    214
  • trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp

    r84504 r84512  
    852852    if (!state().m_invertibleCTM)
    853853        return;
     854
     855    // If 'sa' and 'ea' differ by more than 2Pi, just add a circle starting/ending at 'sa'
     856    if (anticlockwise && sa - ea >= 2 * piFloat) {
     857        m_path.addArc(FloatPoint(x, y), r, sa, sa - 2 * piFloat, anticlockwise);
     858        return;
     859    }
     860    if (!anticlockwise && ea - sa >= 2 * piFloat) {
     861        m_path.addArc(FloatPoint(x, y), r, sa, sa + 2 * piFloat, anticlockwise);
     862        return;
     863    }
     864
    854865    m_path.addArc(FloatPoint(x, y), r, sa, ea, anticlockwise);
    855866}
Note: See TracChangeset for help on using the changeset viewer.