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

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

Issue 2005593002: Initial ResizeObserver implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to master: Vector<WeakMember> no longer ok. Created 4 years, 6 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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 765
766 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst; 766 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst;
767 767
768 template <typename Function> void forAllNonThrottledFrameViews(const Functio n&); 768 template <typename Function> void forAllNonThrottledFrameViews(const Functio n&);
769 769
770 void setNeedsUpdateViewportIntersection(); 770 void setNeedsUpdateViewportIntersection();
771 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption); 771 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption);
772 void updateViewportIntersectionIfNeeded(); 772 void updateViewportIntersectionIfNeeded();
773 void notifyRenderThrottlingObservers(); 773 void notifyRenderThrottlingObservers();
774 void updateThrottlingStatus(); 774 void updateThrottlingStatus();
775 void notifyResizeObserver();
775 776
776 // PaintInvalidationCapableScrollableArea 777 // PaintInvalidationCapableScrollableArea
777 LayoutBox& boxForScrollControlPaintInvalidation() const override; 778 LayoutBox& boxForScrollControlPaintInvalidation() const override;
778 LayoutScrollbarPart* resizer() const override { return nullptr; } 779 LayoutScrollbarPart* resizer() const override { return nullptr; }
779 780
780 LayoutSize m_size; 781 LayoutSize m_size;
781 782
782 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet; 783 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;
783 EmbeddedObjectSet m_partUpdateSet; 784 EmbeddedObjectSet m_partUpdateSet;
784 785
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 952 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
952 setIsVisuallyNonEmpty(); 953 setIsVisuallyNonEmpty();
953 } 954 }
954 955
955 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 956 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
956 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 957 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
957 958
958 } // namespace blink 959 } // namespace blink
959 960
960 #endif // FrameView_h 961 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698