Changeset 194823 in webkit


Ignore:
Timestamp:
Jan 9, 2016 4:38:56 PM (8 years ago)
Author:
Alan Bujtas
Message:

REGRESSION (r194426): First email field is not autofilled on amazon.com
https://bugs.webkit.org/show_bug.cgi?id=152945
<rdar://problem/24082914>

Reviewed by Simon Fraser.

r194426 missed marking the m_layoutRoot for layout while converting to full layout (it only marked the new layout root).

Source/WebCore:

Test: fast/forms/multiple-subtree-layout-failure.html

  • page/FrameView.cpp:

(WebCore::FrameView::scheduleRelayoutOfSubtree):

LayoutTests:

  • fast/forms/multiple-subtree-layout-failure-expected.html: Added.
  • fast/forms/multiple-subtree-layout-failure.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r194817 r194823  
     12016-01-09  Zalan Bujtas  <zalan@apple.com>
     2
     3        REGRESSION (r194426): First email field is not autofilled on amazon.com
     4        https://bugs.webkit.org/show_bug.cgi?id=152945
     5        <rdar://problem/24082914>
     6
     7        Reviewed by Simon Fraser.
     8
     9        r194426 missed marking the m_layoutRoot for layout while converting to full layout (it only marked the new layout root).
     10
     11        * fast/forms/multiple-subtree-layout-failure-expected.html: Added.
     12        * fast/forms/multiple-subtree-layout-failure.html: Added.
     13
    1142016-01-08  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r194821 r194823  
     12016-01-09  Zalan Bujtas  <zalan@apple.com>
     2
     3        REGRESSION (r194426): First email field is not autofilled on amazon.com
     4        https://bugs.webkit.org/show_bug.cgi?id=152945
     5        <rdar://problem/24082914>
     6
     7        Reviewed by Simon Fraser.
     8
     9        r194426 missed marking the m_layoutRoot for layout while converting to full layout (it only marked the new layout root).
     10
     11        Test: fast/forms/multiple-subtree-layout-failure.html
     12
     13        * page/FrameView.cpp:
     14        (WebCore::FrameView::scheduleRelayoutOfSubtree):
     15
    1162016-01-09  Dan Bernstein  <mitz@apple.com>
    217
  • trunk/Source/WebCore/page/FrameView.cpp

    r194798 r194823  
    26492649
    26502650    if (!m_layoutRoot) {
    2651         // Just relayout the subtree.
     2651        // We already have a pending (full) layout. Just mark the subtree for layout.
    26522652        newRelayoutRoot.markContainingBlocksForLayout(ScheduleRelayout::No);
    26532653        InspectorInstrumentation::didInvalidateLayout(frame());
     
    26702670        return;
    26712671    }
    2672 
    2673     // Just do a full relayout.
    2674     m_layoutRoot = &newRelayoutRoot;
     2672    // Two disjoint subtrees need layout. Mark both of them and issue a full layout instead.
    26752673    convertSubtreeLayoutToFullLayout();
     2674    newRelayoutRoot.markContainingBlocksForLayout(ScheduleRelayout::No);
    26762675    InspectorInstrumentation::didInvalidateLayout(frame());
    26772676}
Note: See TracChangeset for help on using the changeset viewer.