Changeset 156779 in webkit for trunk/Source/WebCore/rendering/RenderElement.cpp
- Timestamp:
- Oct 2, 2013, 11:08:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderElement.cpp
r156738 r156779 782 782 // no fixed positoned elements on the page, we can acclerate scrolling (via blitting) if we 783 783 // ignore the CSS property "background-attachment: fixed". 784 static bool shouldRepaintFixedBackgroundsOnScroll(FrameView* frameView) 785 { 786 #if !ENABLE(FAST_MOBILE_SCROLLING) || !PLATFORM(QT) 787 UNUSED_PARAM(frameView); 788 #endif 789 790 bool repaintFixedBackgroundsOnScroll = true; 784 static bool shouldRepaintFixedBackgroundsOnScroll() 785 { 791 786 #if ENABLE(FAST_MOBILE_SCROLLING) 792 #if PLATFORM(QT) 793 if (frameView->delegatesScrolling()) 794 repaintFixedBackgroundsOnScroll = false; 787 return false; 795 788 #else 796 repaintFixedBackgroundsOnScroll = false; 797 #endif 798 #endif 799 return repaintFixedBackgroundsOnScroll; 789 return true; 790 #endif 800 791 } 801 792 … … 870 861 } 871 862 872 bool repaintFixedBackgroundsOnScroll = shouldRepaintFixedBackgroundsOnScroll( &view().frameView());863 bool repaintFixedBackgroundsOnScroll = shouldRepaintFixedBackgroundsOnScroll(); 873 864 874 865 bool newStyleSlowScroll = newStyle && repaintFixedBackgroundsOnScroll && newStyle->hasFixedBackgroundImage(); … … 986 977 } 987 978 988 bool repaintFixedBackgroundsOnScroll = shouldRepaintFixedBackgroundsOnScroll( &view().frameView());979 bool repaintFixedBackgroundsOnScroll = shouldRepaintFixedBackgroundsOnScroll(); 989 980 if (repaintFixedBackgroundsOnScroll && m_style && m_style->hasFixedBackgroundImage()) 990 981 view().frameView().removeSlowRepaintObject(this);
Note:
See TracChangeset
for help on using the changeset viewer.