Changeset 167673 in webkit


Ignore:
Timestamp:
Apr 22, 2014 12:00:06 PM (10 years ago)
Author:
hyatt@apple.com
Message:

REGRESSION: Hitting asserts in new flow thread selection code.
https://bugs.webkit.org/show_bug.cgi?id=132019

Reviewed by Anders Carlsson.

Null checking flowThreadController is not enough. The list of threads
can be null even when the flowThreadController is not. That's why you
use hasRenderNamedFlowThreads. I patched the two bad places in the code
to use hasRenderNamedFlowThreads to stop the crashes.

  • rendering/RenderView.cpp:

(WebCore::RenderView::selectionBounds):
(WebCore::RenderView::repaintSelection):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167672 r167673  
     12014-04-22  David Hyatt  <hyatt@apple.com>
     2
     3        REGRESSION: Hitting asserts in new flow thread selection code.
     4        https://bugs.webkit.org/show_bug.cgi?id=132019
     5
     6        Reviewed by Anders Carlsson.
     7
     8        Null checking flowThreadController is not enough. The list of threads
     9        can be null even when the flowThreadController is not. That's why you
     10        use hasRenderNamedFlowThreads. I patched the two bad places in the code
     11        to use hasRenderNamedFlowThreads to stop the crashes.
     12       
     13        * rendering/RenderView.cpp:
     14        (WebCore::RenderView::selectionBounds):
     15        (WebCore::RenderView::repaintSelection):
     16
    1172014-04-22  Brent Fulgham  <bfulgham@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderView.cpp

    r167652 r167673  
    664664    LayoutRect selRect = subtreeSelectionBounds(*this, clipToVisibleContent);
    665665
    666     if (m_flowThreadController) {
     666    if (hasRenderNamedFlowThreads()) {
    667667        for (auto* namedFlowThread : *m_flowThreadController->renderNamedFlowThreadList()) {
    668668            LayoutRect currRect = subtreeSelectionBounds(*namedFlowThread, clipToVisibleContent);
     
    718718    repaintSubtreeSelection(*this);
    719719
    720     if (m_flowThreadController) {
     720    if (hasRenderNamedFlowThreads()) {
    721721        for (auto* namedFlowThread : *m_flowThreadController->renderNamedFlowThreadList())
    722722            repaintSubtreeSelection(*namedFlowThread);
Note: See TracChangeset for help on using the changeset viewer.