WebKit1 is flashy when compositing layers come and go
[WebKit-https.git] / Source / WebKit / mac / WebView / WebView.mm
index e4c36a5..7c4024b 100644 (file)
@@ -3870,15 +3870,6 @@ static inline IMP getMethod(id o, SEL s)
     return NO;
 }
 
-- (BOOL)_flushCompositingChanges
-{
-    Frame* frame = [self _mainCoreFrame];
-    if (frame && frame->view())
-        return frame->view()->flushCompositingStateIncludingSubframes();
-
-    return YES;
-}
-
 - (void)_setBaseCTM:(CGAffineTransform)transform forContext:(CGContextRef)context
 {
     WKSetBaseCTM(context, transform);
@@ -8420,6 +8411,15 @@ bool LayerFlushController::flushLayers()
     _private->layerFlushController->scheduleLayerFlush();
 }
 
+- (BOOL)_flushCompositingChanges
+{
+    Frame* frame = [self _mainCoreFrame];
+    if (frame && frame->view())
+        return frame->view()->flushCompositingStateIncludingSubframes();
+
+    return YES;
+}
+
 #if PLATFORM(IOS)
 - (void)_scheduleLayerFlushForPendingTileCacheRepaint
 {