Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge with master (removing horizontal-bt test) Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 void scheduleUpdateWidgetsIfNecessary(); 680 void scheduleUpdateWidgetsIfNecessary();
681 void updateWidgetsTimerFired(Timer<FrameView>*); 681 void updateWidgetsTimerFired(Timer<FrameView>*);
682 bool updateWidgets(); 682 bool updateWidgets();
683 683
684 bool processUrlFragmentHelper(const String&, UrlFragmentBehavior); 684 bool processUrlFragmentHelper(const String&, UrlFragmentBehavior);
685 void maintainScrollPositionAtAnchor(Node*); 685 void maintainScrollPositionAtAnchor(Node*);
686 void scrollToAnchor(); 686 void scrollToAnchor();
687 void scrollPositionChanged(); 687 void scrollPositionChanged();
688 void didScrollTimerFired(Timer<FrameView>*); 688 void didScrollTimerFired(Timer<FrameView>*);
689 689
690 void updateLayersAndCompositingAfterScrollIfNeeded(); 690 void updateLayersAndCompositingAfterScrollIfNeeded(const DoubleSize& scrollD elta);
691 691
692 static bool computeCompositedSelection(LocalFrame&, CompositedSelection&); 692 static bool computeCompositedSelection(LocalFrame&, CompositedSelection&);
693 void updateCompositedSelectionIfNeeded(); 693 void updateCompositedSelectionIfNeeded();
694 694
695 // Returns true if the FrameView's own scrollbars overlay its content when v isible. 695 // Returns true if the FrameView's own scrollbars overlay its content when v isible.
696 bool hasOverlayScrollbars() const; 696 bool hasOverlayScrollbars() const;
697 697
698 // Returns true if the frame should use custom scrollbars. If true, one of 698 // Returns true if the frame should use custom scrollbars. If true, one of
699 // either |customScrollbarElement| or |customScrollbarFrame| will be set to 699 // either |customScrollbarElement| or |customScrollbarFrame| will be set to
700 // the element or frame which owns the scrollbar with the other set to null. 700 // the element or frame which owns the scrollbar with the other set to null.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 static const unsigned visualPixelThreshold = 32 * 32; 907 static const unsigned visualPixelThreshold = 32 * 32;
908 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 908 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
909 setIsVisuallyNonEmpty(); 909 setIsVisuallyNonEmpty();
910 } 910 }
911 911
912 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 912 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
913 913
914 } // namespace blink 914 } // namespace blink
915 915
916 #endif // FrameView_h 916 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698