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

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

Issue 2020103002: Fix sticky constraints and update sticky layer positions recursively after scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify sticky box rect calculation. Created 4 years, 5 months 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 713
714 void scheduleUpdateWidgetsIfNecessary(); 714 void scheduleUpdateWidgetsIfNecessary();
715 void updateWidgetsTimerFired(Timer<FrameView>*); 715 void updateWidgetsTimerFired(Timer<FrameView>*);
716 bool updateWidgets(); 716 bool updateWidgets();
717 717
718 bool processUrlFragmentHelper(const String&, UrlFragmentBehavior); 718 bool processUrlFragmentHelper(const String&, UrlFragmentBehavior);
719 void setFragmentAnchor(Node*); 719 void setFragmentAnchor(Node*);
720 void scrollToFragmentAnchor(); 720 void scrollToFragmentAnchor();
721 void didScrollTimerFired(Timer<FrameView>*); 721 void didScrollTimerFired(Timer<FrameView>*);
722 722
723 void updateLayersAndCompositingAfterScrollIfNeeded(); 723 void updateLayersAndCompositingAfterScrollIfNeeded(const DoubleSize& scrollD elta);
724 724
725 static bool computeCompositedSelection(LocalFrame&, CompositedSelection&); 725 static bool computeCompositedSelection(LocalFrame&, CompositedSelection&);
726 void updateCompositedSelectionIfNeeded(); 726 void updateCompositedSelectionIfNeeded();
727 727
728 // Returns true if the FrameView's own scrollbars overlay its content when v isible. 728 // Returns true if the FrameView's own scrollbars overlay its content when v isible.
729 bool hasOverlayScrollbars() const; 729 bool hasOverlayScrollbars() const;
730 730
731 // Returns true if the frame should use custom scrollbars. If true, one of 731 // Returns true if the frame should use custom scrollbars. If true, one of
732 // either |customScrollbarElement| or |customScrollbarFrame| will be set to 732 // either |customScrollbarElement| or |customScrollbarFrame| will be set to
733 // the element or frame which owns the scrollbar with the other set to null. 733 // the element or frame which owns the scrollbar with the other set to null.
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 954 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
955 setIsVisuallyNonEmpty(); 955 setIsVisuallyNonEmpty();
956 } 956 }
957 957
958 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 958 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
959 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 959 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
960 960
961 } // namespace blink 961 } // namespace blink
962 962
963 #endif // FrameView_h 963 #endif // FrameView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698