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

Changeset 237449 in webkit


Ignore:
Timestamp:
Oct 26, 2018, 6:16:03 AM (8 years ago)
Author:
ajuma@chromium.org
Message:

REGRESSION (r237255): Text selection is broken in form fields
​https://bugs.webkit.org/show_bug.cgi?id=190899

Reviewed by Ryosuke Niwa.

Source/WebCore:

Fix missing negation when checking for a fully-clipped-out rect. This was causing
RenderObject::computeVisibleRectInContainer to incorrectly early-out.

Test: fast/repaint/text-selection-overflow-hidden.html

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::computeVisibleRectInContainer const):

LayoutTests:

Add layout test coverage.

  • fast/repaint/text-selection-overflow-hidden-expected.txt: Added.
  • fast/repaint/text-selection-overflow-hidden.html: Added.
  • platform/win/fast/repaint/text-selection-overflow-hidden-expected.txt: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r237443 r237449  
     12018-10-26  Ali Juma  <ajuma@chromium.org>
     2
     3        REGRESSION (r237255): Text selection is broken in form fields
     4        https://bugs.webkit.org/show_bug.cgi?id=190899
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Add layout test coverage.
     9
     10        * fast/repaint/text-selection-overflow-hidden-expected.txt: Added.
     11        * fast/repaint/text-selection-overflow-hidden.html: Added.
     12        * platform/win/fast/repaint/text-selection-overflow-hidden-expected.txt: Added.
     13
    1142018-10-25  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r237446 r237449  
     12018-10-26  Ali Juma  <ajuma@chromium.org>
     2
     3        REGRESSION (r237255): Text selection is broken in form fields
     4        https://bugs.webkit.org/show_bug.cgi?id=190899
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Fix missing negation when checking for a fully-clipped-out rect. This was causing
     9        RenderObject::computeVisibleRectInContainer to incorrectly early-out.
     10
     11        Test: fast/repaint/text-selection-overflow-hidden.html
     12
     13        * rendering/RenderObject.cpp:
     14        (WebCore::RenderObject::computeVisibleRectInContainer const):
     15
    1162018-10-25  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r237266 r237449  
    10011001    LayoutRect adjustedRect = rect;
    10021002    if (parent->hasOverflowClip()) {
    1003         bool isEmpty = downcast<RenderBox>(*parent).applyCachedClipAndScrollPosition(adjustedRect, container, context);
     1003        bool isEmpty = !downcast<RenderBox>(*parent).applyCachedClipAndScrollPosition(adjustedRect, container, context);
    10041004        if (isEmpty) {
    10051005            if (context.m_options.contains(VisibleRectContextOption::UseEdgeInclusiveIntersection))
Note: See TracChangeset for help on using the changeset viewer.