Changeset 79900 in webkit


Ignore:
Timestamp:
Feb 28, 2011 12:51:44 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-28 Chang Shu <cshu@webkit.org>

Reviewed by Adele Peterson.

REGRESSION (r79762): Items in <select multiple> have focus rings, but shouldn't
https://bugs.webkit.org/show_bug.cgi?id=55323

Added test case to make sure no focus ring is drawn on selected items.

  • fast/forms/select-listbox-multiple-no-focusring.html: Added.
  • platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.checksum: Added.
  • platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.png: Added.
  • platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.txt: Added.

2011-02-28 Chang Shu <cshu@webkit.org>

Reviewed by Adele Peterson.

REGRESSION (r79762): Items in <select multiple> have focus rings, but shouldn't
https://bugs.webkit.org/show_bug.cgi?id=55323

Draw focus ring on selected items only if spatial navigation is enabled.

Test: fast/forms/select-listbox-multiple-no-focusring.html

  • rendering/RenderBlock.h:
  • rendering/RenderListBox.cpp: (WebCore::RenderListBox::addFocusRingRects):
Location:
trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r79897 r79900  
     12011-02-28  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Adele Peterson.
     4
     5        REGRESSION (r79762): Items in <select multiple> have focus rings, but shouldn't
     6        https://bugs.webkit.org/show_bug.cgi?id=55323
     7
     8        Added test case to make sure no focus ring is drawn on selected items.
     9
     10        * fast/forms/select-listbox-multiple-no-focusring.html: Added.
     11        * platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.checksum: Added.
     12        * platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.png: Added.
     13        * platform/mac/fast/forms/select-listbox-multiple-no-focusring-expected.txt: Added.
     14
    1152011-02-28  Abhishek Arya  <inferno@chromium.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r79897 r79900  
     12011-02-28  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Adele Peterson.
     4
     5        REGRESSION (r79762): Items in <select multiple> have focus rings, but shouldn't
     6        https://bugs.webkit.org/show_bug.cgi?id=55323
     7
     8        Draw focus ring on selected items only if spatial navigation is enabled.
     9
     10        Test: fast/forms/select-listbox-multiple-no-focusring.html
     11
     12        * rendering/RenderBlock.h:
     13        * rendering/RenderListBox.cpp:
     14        (WebCore::RenderListBox::addFocusRingRects):
     15
    1162011-02-28  Abhishek Arya  <inferno@chromium.org>
    217
  • trunk/Source/WebCore/rendering/RenderBlock.h

    r79834 r79900  
    303303    void addOverflowFromInlineChildren();
    304304
     305    virtual void addFocusRingRects(Vector<IntRect>&, int tx, int ty);
     306
    305307#if ENABLE(SVG)
    306308protected:
     
    587589
    588590    virtual IntRect localCaretRect(InlineBox*, int caretOffset, int* extraWidthToEndOfLine = 0);
    589 
    590     virtual void addFocusRingRects(Vector<IntRect>&, int tx, int ty);
    591591
    592592    void adjustPointToColumnContents(IntPoint&) const;
  • trunk/Source/WebCore/rendering/RenderListBox.cpp

    r79762 r79900  
    281281void RenderListBox::addFocusRingRects(Vector<IntRect>& rects, int tx, int ty)
    282282{
     283    if (!isSpatialNavigationEnabled(frame()))
     284        return RenderBlock::addFocusRingRects(rects, tx, ty);
     285
    283286    SelectElement* select = toSelectElement(static_cast<Element*>(node()));
    284287
Note: See TracChangeset for help on using the changeset viewer.