Changeset 100280 in webkit


Ignore:
Timestamp:
Nov 15, 2011 7:38:09 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Fix SVG hit testing when padding is present
https://bugs.webkit.org/show_bug.cgi?id=37325

Patch by Philip Rogers <pdr@google.com> on 2011-11-15
Reviewed by Nikolas Zimmermann.

Source/WebCore:

Test: svg/hittest/svg-padding.xhtml

  • rendering/svg/RenderSVGRoot.cpp:

(WebCore::RenderSVGRoot::nodeAtPoint):

LayoutTests:

  • svg/hittest/svg-padding-expected.txt: Added.
  • svg/hittest/svg-padding.xhtml: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r100279 r100280  
     12011-11-15  Philip Rogers  <pdr@google.com>
     2
     3        Fix SVG hit testing when padding is present
     4        https://bugs.webkit.org/show_bug.cgi?id=37325
     5
     6        Reviewed by Nikolas Zimmermann.
     7
     8        * svg/hittest/svg-padding-expected.txt: Added.
     9        * svg/hittest/svg-padding.xhtml: Added.
     10
    1112011-11-15  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r100277 r100280  
     12011-11-15  Philip Rogers  <pdr@google.com>
     2
     3        Fix SVG hit testing when padding is present
     4        https://bugs.webkit.org/show_bug.cgi?id=37325
     5
     6        Reviewed by Nikolas Zimmermann.
     7
     8        Test: svg/hittest/svg-padding.xhtml
     9
     10        * rendering/svg/RenderSVGRoot.cpp:
     11        (WebCore::RenderSVGRoot::nodeAtPoint):
     12
    1132011-11-15  Pavel Feldman  <pfeldman@google.com>
    214
  • trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp

    r100225 r100280  
    435435
    436436    // Note: For now, we're ignoring hits to border and padding for <svg>
    437     LayoutPoint pointInContentBox = pointInBorderBox - borderOriginToContentBox();
    438     if (!contentBoxRect().contains(pointInContentBox))
     437    if (!contentBoxRect().contains(pointInBorderBox))
    439438        return false;
    440439
Note: See TracChangeset for help on using the changeset viewer.