Changeset 187134 in webkit


Ignore:
Timestamp:
Jul 21, 2015 4:31:44 PM (9 years ago)
Author:
Simon Fraser
Message:

Add a logging channel for Layout, remove the LiveConnect channel
https://bugs.webkit.org/show_bug.cgi?id=147170

Reviewed by Zalan Bujtas.

Add a layout logging channel to WebCore, and remove the LiveConnect channel.

Source/WebCore:

  • page/FrameView.cpp:

(WebCore::FrameView::adjustViewSize):
(WebCore::FrameView::forceLayoutParentViewIfNeeded):
(WebCore::FrameView::layout):
(WebCore::FrameView::performPostLayoutTasks):
(WebCore::FrameView::autoSizeIfEnabled):

  • platform/Logging.h:

Source/WebKit/mac:

  • Misc/WebKitLogging.h:
  • Plugins/WebNetscapePluginPackage.mm:

(-[WebNetscapePluginPackage _tryLoad]): Deleted.

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r187133 r187134  
     12015-07-21  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Add a logging channel for Layout, remove the LiveConnect channel
     4        https://bugs.webkit.org/show_bug.cgi?id=147170
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Add a layout logging channel to WebCore, and remove the LiveConnect channel.
     9
     10        * page/FrameView.cpp:
     11        (WebCore::FrameView::adjustViewSize):
     12        (WebCore::FrameView::forceLayoutParentViewIfNeeded):
     13        (WebCore::FrameView::layout):
     14        (WebCore::FrameView::performPostLayoutTasks):
     15        (WebCore::FrameView::autoSizeIfEnabled):
     16        * platform/Logging.h:
     17
    1182015-07-21  Benjamin Poulain  <bpoulain@apple.com>
    219
  • trunk/Source/WebCore/page/FrameView.cpp

    r186786 r187134  
    615615    ScrollView::setScrollOrigin(IntPoint(-rect.x(), -rect.y()), !frame().document()->printing(), size == contentsSize());
    616616
     617    LOG(Layout, "FrameView %p adjustViewSize: unscaled document size changed to %dx%d (scaled to %dx%d)", this, renderView->unscaledDocumentRect().width(), renderView->unscaledDocumentRect().height(), size.width(), size.height());
     618
    617619    setContentsSize(size);
    618620}
     
    11471149        return;
    11481150
     1151    LOG(Layout, "FrameView %p forceLayoutParentViewIfNeeded scheduling layout on parent FrameView %p", this, &ownerRenderer->view().frameView());
     1152
    11491153    // If the embedded SVG document appears the first time, the ownerRenderer has already finished
    11501154    // layout without knowing about the existence of the embedded SVG document, because RenderReplaced
     
    11611165void FrameView::layout(bool allowSubtree)
    11621166{
    1163     if (isInLayout())
    1164         return;
    1165 
    1166     if (layoutDisallowed())
    1167         return;
     1167    LOG(Layout, "FrameView %p (%dx%d) layout, main frameview %d, allowSubtree=%d", this, size().width(), size().height(), frame().isMainFrame(), allowSubtree);
     1168    if (isInLayout()) {
     1169        LOG(Layout, "  in layout, bailing");
     1170        return;
     1171    }
     1172
     1173    if (layoutDisallowed()) {
     1174        LOG(Layout, "  layout is disallowed, bailing");
     1175        return;
     1176    }
    11681177
    11691178    // Protect the view from being deleted during layout (in recalcStyle).
     
    11811190    if (inChildFrameLayoutWithFrameFlattening) {
    11821191        startLayoutAtMainFrameViewIfNeeded(allowSubtree);
     1192        LOG(Layout, "  frame flattening, starting from root");
    11831193        RenderElement* root = m_layoutRoot ? m_layoutRoot : frame().document()->renderView();
    11841194        if (!root || !root->needsLayout())
     
    12321242        StyleResolver* styleResolver = document.styleResolverIfExists();
    12331243        if (!styleResolver || styleResolver->hasMediaQueriesAffectedByViewportChange()) {
     1244            LOG(Layout, "  hasMediaQueriesAffectedByViewportChange, enqueueing style recalc");
    12341245            document.styleResolverChanged(DeferRecalcStyle);
    12351246            // FIXME: This instrumentation event is not strictly accurate since cached media query results do not persist across StyleResolver rebuilds.
     
    13261337
    13271338            if (oldSize != m_size) {
     1339                LOG(Layout, "  layout size changed from %.3fx%.3f to %.3fx%.3f", oldSize.width().toFloat(), oldSize.height().toFloat(), m_size.width().toFloat(), m_size.height().toFloat());
    13281340                m_needsFullRepaint = true;
    13291341                if (!m_firstLayout) {
     
    30153027void FrameView::performPostLayoutTasks()
    30163028{
     3029    LOG(Layout, "FrameView %p performPostLayoutTasks", this);
     3030
    30173031    // FIXME: We should not run any JavaScript code in this function.
    30183032
     
    31633177    if (m_inAutoSize)
    31643178        return;
     3179
     3180    LOG(Layout, "FrameView %p autoSizeIfEnabled", this);
    31653181
    31663182    TemporaryChange<bool> changeInAutoSize(m_inAutoSize, true);
  • trunk/Source/WebCore/platform/Logging.h

    r183702 r187134  
    5454    M(History) \
    5555    M(IconDatabase) \
    56     M(LiveConnect) \
     56    M(Layout) \
    5757    M(Loading) \
    5858    M(Media) \
  • trunk/Source/WebKit/mac/ChangeLog

    r187103 r187134  
     12015-07-21  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Add a logging channel for Layout, remove the LiveConnect channel
     4        https://bugs.webkit.org/show_bug.cgi?id=147170
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Add a layout logging channel to WebCore, and remove the LiveConnect channel.
     9
     10        * Misc/WebKitLogging.h:
     11        * Plugins/WebNetscapePluginPackage.mm:
     12        (-[WebNetscapePluginPackage _tryLoad]): Deleted.
     13
    1142015-07-21  Brady Eidson  <beidson@apple.com>
    215
  • trunk/Source/WebKit/mac/Misc/WebKitLogging.h

    r184853 r187134  
    5454    M(History) \
    5555    M(IconDatabase) \
    56     M(LiveConnect) \
    5756    M(Loading) \
    5857    M(PageCache) \
  • trunk/Source/WebKit/mac/Plugins/WebNetscapePluginPackage.mm

    r185294 r187134  
    260260    pluginVersion = pluginFuncs.version;
    261261
    262     if (pluginFuncs.javaClass)
    263         LOG(LiveConnect, "%@:  mach-o entry point for NPP_GetJavaClass = %p", (NSString *)[self pluginInfo].name, pluginFuncs.javaClass);
    264     else
    265         LOG(LiveConnect, "%@:  no entry point for NPP_GetJavaClass", (NSString *)[self pluginInfo].name);
    266 
    267262#if !LOG_DISABLED
    268263    currentTime = CFAbsoluteTimeGetCurrent();
Note: See TracChangeset for help on using the changeset viewer.