@@ -870,7 +870,7 @@ void FrameView::updateCompositingLayersAfterLayout()
870
870
RenderView* renderView = this ->renderView ();
871
871
if (!renderView)
872
872
return ;
873
- #if PLATFORM(JS)
873
+ #if PLATFORM(JS) && defined(DEBUG)
874
874
fprintf (stderr, " WebKit: FrameView::updateCompositingLayersAfterLayout() firing updateCompositingLayers.\n " );
875
875
#endif
876
876
// This call will make sure the cached hasAcceleratedCompositing is updated from the pref
@@ -2509,7 +2509,7 @@ const unsigned cRepaintRectUnionThreshold = 25;
2509
2509
2510
2510
void FrameView::repaintContentRectangle (const IntRect& r, bool immediate)
2511
2511
{
2512
- #if PLATFORM(JS)
2512
+ #if PLATFORM(JS) && defined(DEBUG)
2513
2513
webkitTrace ();
2514
2514
fprintf (stderr, " WebKit: FrameView::repaintContentRectangle: rect: x: %i y: %i h: %i w: %i immediate: %i\n " , r.x (), r.y (), r.height (), r.width (), immediate);
2515
2515
#endif
@@ -2537,33 +2537,33 @@ void FrameView::repaintContentRectangle(const IntRect& r, bool immediate)
2537
2537
else
2538
2538
m_repaintRects[0 ].unite (paintRect);
2539
2539
m_repaintCount++;
2540
- #if PLATFORM(JS)
2540
+ #if PLATFORM(JS) && defined(DEBUG)
2541
2541
fprintf (stderr, " WebKit: FrameView::repaintContentRectangle: issuing repaint in: %f m_deferingRepaints is: %i\n " , delay, m_deferringRepaints);
2542
2542
#endif
2543
2543
if (!m_deferringRepaints) {
2544
- #if PLATFORM(JS)
2544
+ #if PLATFORM(JS) && defined(DEBUG)
2545
2545
fprintf (stderr, " WebKit: FrameView::repaintContentRectangle: issuing deferred paint in: %f\n " , delay);
2546
2546
#endif
2547
2547
startDeferredRepaintTimer (delay);
2548
2548
}
2549
2549
2550
2550
return ;
2551
2551
} else {
2552
- #if PLATFORM(JS)
2552
+ #if PLATFORM(JS) && defined(DEBUG)
2553
2553
fprintf (stderr, " WebKit: FrameView::repaintContentRectangle: m_deferringRepaints=true || m_deferredRepaintTimer.isActive()=true || delay > 0\n " );
2554
2554
#endif
2555
2555
}
2556
2556
2557
2557
if (!shouldUpdate (immediate)) {
2558
- #if PLATFORM(JS)
2558
+ #if PLATFORM(JS) && defined(DEBUG)
2559
2559
fprintf (stderr, " WebKit: FrameView::repaintContentRectangle: shouldUpdate(immediate) returned false.\n " );
2560
2560
#endif
2561
2561
return ;
2562
2562
}
2563
2563
#if USE(TILED_BACKING_STORE)
2564
2564
if (frame ().tiledBackingStore ()) {
2565
2565
frame ().tiledBackingStore ()->invalidate (r);
2566
- #if PLATFORM(JS)
2566
+ #if PLATFORM(JS) && defined(DEBUG)
2567
2567
fprintf (stderr, " WebKit: FrameView::repaintContentRectangle: Using a tiled backing store, leaving.\n " );
2568
2568
#endif
2569
2569
return ;
@@ -2755,21 +2755,21 @@ void FrameView::doDeferredRepaints()
2755
2755
if (!shouldUpdate ()) {
2756
2756
m_repaintRects.clear ();
2757
2757
m_repaintCount = 0 ;
2758
- #if PLATFORM(JS)
2758
+ #if PLATFORM(JS) && defined(DEBUG)
2759
2759
fprintf (stderr, " WebKit: doDeferredRepaints: shouldUpdate was false, exiting\n " );
2760
2760
#endif
2761
2761
return ;
2762
2762
}
2763
2763
unsigned size = m_repaintRects.size ();
2764
- #if PLATFORM(JS)
2764
+ #if PLATFORM(JS) && defined(DEBUG)
2765
2765
fprintf (stderr, " WebKit: doDeferredRepaints: amount of repaint rects: %i\n " ,size);
2766
2766
#endif
2767
2767
for (unsigned i = 0 ; i < size; i++) {
2768
2768
#if USE(TILED_BACKING_STORE)
2769
2769
if (frame ().tiledBackingStore ()) {
2770
- #if PLATFORM(JS)
2770
+ #if PLATFORM(JS) && defined(DEBUG)
2771
2771
fprintf (stderr, " WebKit: doDeferredRepaints: invalidating tiledBackingStore\n " );
2772
- // fprintf(stderr, "WebKit: repaintRect size (x,y,w,h): %i %i %i %i\n", m_repaintRects[i].x(),m_repaintRects[i].y(),m_repaintRects[i].width(),m_repaintRects[i].height());
2772
+ fprintf (stderr, " WebKit: repaintRect size (x,y,w,h): %i %i %i %i\n " , m_repaintRects[i].x (),m_repaintRects[i].y (),m_repaintRects[i].width (),m_repaintRects[i].height ());
2773
2773
#endif
2774
2774
frame ().tiledBackingStore ()->invalidate (pixelSnappedIntRect (m_repaintRects[i]));
2775
2775
continue ;
@@ -2791,23 +2791,33 @@ bool FrameView::shouldUseLoadTimeDeferredRepaintDelay() const
2791
2791
2792
2792
// Don't defer after the initial load of the page has been completed.
2793
2793
if (frame ().tree ().top ().loader ().isComplete ()) {
2794
- fprintf (stderr, " WebKit: Document has finished loading, do not use deferred repaint.\n " );
2795
- return false ;
2794
+ #if PLATFORM(JS) && defined(DEBUG)
2795
+ fprintf (stderr, " WebKit: Document has finished loading, do not use deferred repaint.\n " );
2796
+ #endif
2797
+ return false ;
2796
2798
}
2797
2799
Document* document = frame ().document ();
2798
2800
if (!document) {
2801
+ #if PLATFORM(JS) && defined(DEBUG)
2799
2802
fprintf (stderr, " WebKit: Document does not exist, do not use deferred repaint.\n " );
2803
+ #endif
2800
2804
return false ;
2801
2805
}
2802
2806
if (document->parsing ()) {
2807
+ #if PLATFORM(JS) && defined(DEBUG)
2803
2808
fprintf (stderr, " WebKit: Document is parsing, use deferred repaint.\n " );
2809
+ #endif
2804
2810
return true ;
2805
2811
}
2806
2812
if (document->cachedResourceLoader ()->requestCount ()) {
2813
+ #if PLATFORM(JS) && defined(DEBUG)
2807
2814
fprintf (stderr, " WebKit: Request Cache Count is > 0, use deferred repaint.\n " );
2815
+ #endif
2808
2816
return true ;
2809
2817
}
2818
+ #if PLATFORM(JS) && defined(DEBUG)
2810
2819
fprintf (stderr, " WebKit: default: use deferred repaint.\n " );
2820
+ #endif
2811
2821
return false ;
2812
2822
}
2813
2823
0 commit comments