Changeset 225859 in webkit
- Timestamp:
- Dec 13, 2017 11:26:08 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r225855 r225859 1 2017-12-13 Simon Fraser <simon.fraser@apple.com> 2 3 Fix crash under Document::visualUpdatesSuppressionTimerFired() 4 https://bugs.webkit.org/show_bug.cgi?id=180758 5 Document::visualUpdatesSuppressionTimerFired 6 7 Reviewed by Zalan Bujtas. 8 9 Speculative fix for crash under visualUpdatesSuppressionTimerFired() where view() 10 can be null. Add null checks for the view() in all code called from this function. 11 12 * dom/Document.cpp: 13 (WebCore::Document::setVisualUpdatesAllowed): 14 (WebCore::Document::visualUpdatesSuppressionTimerFired): 15 1 16 2017-12-13 Zalan Bujtas <zalan@apple.com> 2 17 -
trunk/Source/WebCore/dom/Document.cpp
r225827 r225859 1235 1235 ASSERT(!m_visualUpdatesAllowed); 1236 1236 1237 if ( !view()->visualUpdatesAllowedByClient())1237 if (view() && !view()->visualUpdatesAllowedByClient()) 1238 1238 return; 1239 1239 … … 1273 1273 } 1274 1274 1275 if ( view())1276 view()->updateCompositingLayersAfterLayout();1275 if (frameView) 1276 frameView->updateCompositingLayersAfterLayout(); 1277 1277 1278 1278 if (RenderView* renderView = this->renderView()) … … 1289 1289 // If the client is extending the visual update suppression period explicitly, the 1290 1290 // watchdog should not re-enable visual updates itself, but should wait for the client. 1291 if ( !view()->visualUpdatesAllowedByClient())1291 if (view() && !view()->visualUpdatesAllowedByClient()) 1292 1292 return; 1293 1293
Note: See TracChangeset
for help on using the changeset viewer.