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 2130683002: [Experiment] purge-and-suspend Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 614
615 // Viewport size that should be used for viewport units (i.e. 'vh'/'vw'). 615 // Viewport size that should be used for viewport units (i.e. 'vh'/'vw').
616 FloatSize viewportSizeForViewportUnits() const; 616 FloatSize viewportSizeForViewportUnits() const;
617 617
618 ScrollAnchor& scrollAnchor() { return m_scrollAnchor; } 618 ScrollAnchor& scrollAnchor() { return m_scrollAnchor; }
619 void clearScrollAnchor(); 619 void clearScrollAnchor();
620 620
621 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into PaintInval idator. 621 // For PaintInvalidator temporarily. TODO(wangxianzhu): Move into PaintInval idator.
622 void invalidatePaintIfNeeded(const PaintInvalidationState&); 622 void invalidatePaintIfNeeded(const PaintInvalidationState&);
623 623
624
625 void purgeMemory();
626
624 protected: 627 protected:
625 // Scroll the content via the compositor. 628 // Scroll the content via the compositor.
626 bool scrollContentsFastPath(const IntSize& scrollDelta); 629 bool scrollContentsFastPath(const IntSize& scrollDelta);
627 630
628 // Scroll the content by invalidating everything. 631 // Scroll the content by invalidating everything.
629 void scrollContentsSlowPath(const IntRect& updateRect); 632 void scrollContentsSlowPath(const IntRect& updateRect);
630 633
631 // These functions are used to create/destroy scrollbars. 634 // These functions are used to create/destroy scrollbars.
632 void setHasHorizontalScrollbar(bool); 635 void setHasHorizontalScrollbar(bool);
633 void setHasVerticalScrollbar(bool); 636 void setHasVerticalScrollbar(bool);
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 966 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
964 setIsVisuallyNonEmpty(); 967 setIsVisuallyNonEmpty();
965 } 968 }
966 969
967 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 970 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
968 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 971 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
969 972
970 } // namespace blink 973 } // namespace blink
971 974
972 #endif // FrameView_h 975 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698