Changeset 187134 in webkit
- Timestamp:
- Jul 21, 2015 4:31:44 PM (9 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r187133 r187134 1 2015-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 1 18 2015-07-21 Benjamin Poulain <bpoulain@apple.com> 2 19 -
trunk/Source/WebCore/page/FrameView.cpp
r186786 r187134 615 615 ScrollView::setScrollOrigin(IntPoint(-rect.x(), -rect.y()), !frame().document()->printing(), size == contentsSize()); 616 616 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 617 619 setContentsSize(size); 618 620 } … … 1147 1149 return; 1148 1150 1151 LOG(Layout, "FrameView %p forceLayoutParentViewIfNeeded scheduling layout on parent FrameView %p", this, &ownerRenderer->view().frameView()); 1152 1149 1153 // If the embedded SVG document appears the first time, the ownerRenderer has already finished 1150 1154 // layout without knowing about the existence of the embedded SVG document, because RenderReplaced … … 1161 1165 void FrameView::layout(bool allowSubtree) 1162 1166 { 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 } 1168 1177 1169 1178 // Protect the view from being deleted during layout (in recalcStyle). … … 1181 1190 if (inChildFrameLayoutWithFrameFlattening) { 1182 1191 startLayoutAtMainFrameViewIfNeeded(allowSubtree); 1192 LOG(Layout, " frame flattening, starting from root"); 1183 1193 RenderElement* root = m_layoutRoot ? m_layoutRoot : frame().document()->renderView(); 1184 1194 if (!root || !root->needsLayout()) … … 1232 1242 StyleResolver* styleResolver = document.styleResolverIfExists(); 1233 1243 if (!styleResolver || styleResolver->hasMediaQueriesAffectedByViewportChange()) { 1244 LOG(Layout, " hasMediaQueriesAffectedByViewportChange, enqueueing style recalc"); 1234 1245 document.styleResolverChanged(DeferRecalcStyle); 1235 1246 // FIXME: This instrumentation event is not strictly accurate since cached media query results do not persist across StyleResolver rebuilds. … … 1326 1337 1327 1338 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()); 1328 1340 m_needsFullRepaint = true; 1329 1341 if (!m_firstLayout) { … … 3015 3027 void FrameView::performPostLayoutTasks() 3016 3028 { 3029 LOG(Layout, "FrameView %p performPostLayoutTasks", this); 3030 3017 3031 // FIXME: We should not run any JavaScript code in this function. 3018 3032 … … 3163 3177 if (m_inAutoSize) 3164 3178 return; 3179 3180 LOG(Layout, "FrameView %p autoSizeIfEnabled", this); 3165 3181 3166 3182 TemporaryChange<bool> changeInAutoSize(m_inAutoSize, true); -
trunk/Source/WebCore/platform/Logging.h
r183702 r187134 54 54 M(History) \ 55 55 M(IconDatabase) \ 56 M(L iveConnect) \56 M(Layout) \ 57 57 M(Loading) \ 58 58 M(Media) \ -
trunk/Source/WebKit/mac/ChangeLog
r187103 r187134 1 2015-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 1 14 2015-07-21 Brady Eidson <beidson@apple.com> 2 15 -
trunk/Source/WebKit/mac/Misc/WebKitLogging.h
r184853 r187134 54 54 M(History) \ 55 55 M(IconDatabase) \ 56 M(LiveConnect) \57 56 M(Loading) \ 58 57 M(PageCache) \ -
trunk/Source/WebKit/mac/Plugins/WebNetscapePluginPackage.mm
r185294 r187134 260 260 pluginVersion = pluginFuncs.version; 261 261 262 if (pluginFuncs.javaClass)263 LOG(LiveConnect, "%@: mach-o entry point for NPP_GetJavaClass = %p", (NSString *)[self pluginInfo].name, pluginFuncs.javaClass);264 else265 LOG(LiveConnect, "%@: no entry point for NPP_GetJavaClass", (NSString *)[self pluginInfo].name);266 267 262 #if !LOG_DISABLED 268 263 currentTime = CFAbsoluteTimeGetCurrent();
Note: See TracChangeset
for help on using the changeset viewer.