Changeset 41379 in webkit


Ignore:
Timestamp:
Mar 2, 2009 10:15:51 PM (15 years ago)
Author:
Simon Fraser
Message:

2009-03-02 Simon Fraser <Simon Fraser>

Reviewed by Adele Peterson

https://bugs.webkit.org/show_bug.cgi?id=24313

If RenderTextControlSingleLine::nodeAtPoint() pokes a node into the
HitTestResult, then it had better well return |true|. And m_innerBlock
could never have been set as the hit node by the superclass, because
the superclass knows nothing about m_innerBlock.

Test: fast/forms/input-hit-test-border.html

  • rendering/RenderTextControlSingleLine.cpp: (WebCore::RenderTextControlSingleLine::nodeAtPoint):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r41344 r41379  
     12009-03-02  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Reviewed by Adele Peterson
     4       
     5        https://bugs.webkit.org/show_bug.cgi?id=24313
     6       
     7        Test hit testing on the border and padding of inputs, after
     8        touching code that referenced <rdar://problem/4617841>.
     9
     10        * fast/forms/input-hit-test-border-expected.txt: Added.
     11        * fast/forms/input-hit-test-border.html: Added.
     12
    1132009-03-01  David Levin  <levin@chromium.org>
    214
  • trunk/WebCore/ChangeLog

    r41378 r41379  
     12009-03-02  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Reviewed by Adele Peterson
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=24313
     6       
     7        If RenderTextControlSingleLine::nodeAtPoint() pokes a node into the
     8        HitTestResult, then it had better well return |true|. And m_innerBlock
     9        could never have been set as the hit node by the superclass, because
     10        the superclass knows nothing about m_innerBlock.
     11       
     12        Test: fast/forms/input-hit-test-border.html
     13
     14        * rendering/RenderTextControlSingleLine.cpp:
     15        (WebCore::RenderTextControlSingleLine::nodeAtPoint):
     16
    1172009-03-02  Sam Weinig  <sam@webkit.org>
    218
  • trunk/WebCore/rendering/RenderTextControlSingleLine.cpp

    r40871 r41379  
    271271        return false;
    272272
    273     if (result.innerNode() != node() && result.innerNode() != m_innerBlock.get())
     273    if (result.innerNode() != node() && result.innerNode() != innerTextElement())
    274274        return false;
    275275
Note: See TracChangeset for help on using the changeset viewer.