Changeset 168580 in webkit


Ignore:
Timestamp:
May 10, 2014 12:50:34 PM (10 years ago)
Author:
Darin Adler
Message:

REGRESSION (r166853): fast/preloader/document-write.html is very flaky
https://bugs.webkit.org/show_bug.cgi?id=130942

Reviewed by Anders Carlsson.

Source/WebCore:

  • style/StyleResolveTree.cpp:

(WebCore::Style::suspendMemoryCacheClientCalls): Use a RefPtr to the main
frame as a weak pointer to a Page that will work unless the page is destroyed.
The old code tried to do it with a RefPtr to a document, but as the FIXME
points out, that won't work if the document is disassociated with its frame.

LayoutTests:

  • platform/mac/TestExpectations: Turned the test back on.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r168577 r168580  
     12014-05-10  Darin Adler  <darin@apple.com>
     2
     3        REGRESSION (r166853): fast/preloader/document-write.html is very flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=130942
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * platform/mac/TestExpectations: Turned the test back on.
     9
    1102014-05-09  Dean Jackson  <dino@apple.com>
    211
  • trunk/LayoutTests/platform/mac/TestExpectations

    r168554 r168580  
    13531353webkit.org/b/130972 transitions/3d/interrupted-transition.html [ Pass Failure Timeout ]
    13541354
    1355 webkit.org/b/130942 fast/preloader/document-write.html [ Pass Failure ]
    1356 
    13571355webkit.org/b/118153 compositing/repaint/positioned-movement.html [ Pass Failure ]
    13581356
  • trunk/Source/WebCore/ChangeLog

    r168579 r168580  
     12014-05-10  Darin Adler  <darin@apple.com>
     2
     3        REGRESSION (r166853): fast/preloader/document-write.html is very flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=130942
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * style/StyleResolveTree.cpp:
     9        (WebCore::Style::suspendMemoryCacheClientCalls): Use a RefPtr to the main
     10        frame as a weak pointer to a Page that will work unless the page is destroyed.
     11        The old code tried to do it with a RefPtr to a document, but as the FIXME
     12        points out, that won't work if the document is disassociated with its frame.
     13
    1142014-05-10  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebCore/style/StyleResolveTree.cpp

    r166853 r168580  
    3535#include "InsertionPoint.h"
    3636#include "LoaderStrategy.h"
     37#include "MainFrame.h"
    3738#include "NodeRenderStyle.h"
    3839#include "NodeRenderingTraversal.h"
     
    988989    page->setMemoryCacheClientCallsEnabled(false);
    989990
    990     RefPtr<Document> protectedDocument = &document;
    991     postResolutionCallbackQueue().append([protectedDocument]{
    992         // FIXME: If the document becomes unassociated with the page during style resolution
    993         // then this won't work and the memory cache client calls will be permanently disabled.
    994         if (Page* page = protectedDocument->page())
     991    RefPtr<MainFrame> protectedMainFrame = &page->mainFrame();
     992    postResolutionCallbackQueue().append([protectedMainFrame]{
     993        if (Page* page = protectedMainFrame->page())
    995994            page->setMemoryCacheClientCallsEnabled(true);
    996995    });
Note: See TracChangeset for help on using the changeset viewer.