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

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: Created 4 years, 7 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 757
758 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst; 758 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c onst;
759 759
760 template <typename Function> void forAllNonThrottledFrameViews(const Functio n&); 760 template <typename Function> void forAllNonThrottledFrameViews(const Functio n&);
761 761
762 void setNeedsUpdateViewportIntersection(); 762 void setNeedsUpdateViewportIntersection();
763 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption); 763 void updateViewportIntersectionsForSubtree(LifeCycleUpdateOption);
764 void updateViewportIntersectionIfNeeded(); 764 void updateViewportIntersectionIfNeeded();
765 void notifyRenderThrottlingObservers(); 765 void notifyRenderThrottlingObservers();
766 void updateThrottlingStatus(); 766 void updateThrottlingStatus();
767 void notifyResizeObserver();
767 768
768 // PaintInvalidationCapableScrollableArea 769 // PaintInvalidationCapableScrollableArea
769 LayoutBox& boxForScrollControlPaintInvalidation() const override; 770 LayoutBox& boxForScrollControlPaintInvalidation() const override;
770 LayoutScrollbarPart* resizer() const override { return nullptr; } 771 LayoutScrollbarPart* resizer() const override { return nullptr; }
771 772
772 LayoutSize m_size; 773 LayoutSize m_size;
773 774
774 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet; 775 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;
775 EmbeddedObjectSet m_partUpdateSet; 776 EmbeddedObjectSet m_partUpdateSet;
776 777
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 937 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
937 setIsVisuallyNonEmpty(); 938 setIsVisuallyNonEmpty();
938 } 939 }
939 940
940 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 941 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
941 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 942 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
942 943
943 } // namespace blink 944 } // namespace blink
944 945
945 #endif // FrameView_h 946 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698