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

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

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TemporaryChange -> AutoReset 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 29 matching lines...) Expand all
40 #include "platform/geometry/LayoutRect.h" 40 #include "platform/geometry/LayoutRect.h"
41 #include "platform/graphics/Color.h" 41 #include "platform/graphics/Color.h"
42 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 42 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
43 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 43 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
44 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 44 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
45 #include "platform/scroll/ScrollTypes.h" 45 #include "platform/scroll/ScrollTypes.h"
46 #include "platform/scroll/Scrollbar.h" 46 #include "platform/scroll/Scrollbar.h"
47 #include "public/platform/WebDisplayMode.h" 47 #include "public/platform/WebDisplayMode.h"
48 #include "public/platform/WebRect.h" 48 #include "public/platform/WebRect.h"
49 #include "wtf/Allocator.h" 49 #include "wtf/Allocator.h"
50 #include "wtf/AutoReset.h"
50 #include "wtf/Forward.h" 51 #include "wtf/Forward.h"
51 #include "wtf/HashSet.h" 52 #include "wtf/HashSet.h"
52 #include "wtf/ListHashSet.h" 53 #include "wtf/ListHashSet.h"
53 #include "wtf/TemporaryChange.h"
54 #include "wtf/text/WTFString.h" 54 #include "wtf/text/WTFString.h"
55 #include <memory> 55 #include <memory>
56 56
57 namespace blink { 57 namespace blink {
58 58
59 class AXObjectCache; 59 class AXObjectCache;
60 class CancellableTaskFactory; 60 class CancellableTaskFactory;
61 class ComputedStyle; 61 class ComputedStyle;
62 class DocumentLifecycle; 62 class DocumentLifecycle;
63 class Cursor; 63 class Cursor;
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 IntRect adjustScrollbarRectForResizer(const IntRect&, Scrollbar&); 645 IntRect adjustScrollbarRectForResizer(const IntRect&, Scrollbar&);
646 646
647 // Called to update the scrollbars to accurately reflect the state of the vi ew. 647 // Called to update the scrollbars to accurately reflect the state of the vi ew.
648 void updateScrollbars(); 648 void updateScrollbars();
649 void updateScrollbarsIfNeeded(); 649 void updateScrollbarsIfNeeded();
650 650
651 class InUpdateScrollbarsScope { 651 class InUpdateScrollbarsScope {
652 STACK_ALLOCATED(); 652 STACK_ALLOCATED();
653 public: 653 public:
654 explicit InUpdateScrollbarsScope(FrameView* view) 654 explicit InUpdateScrollbarsScope(FrameView* view)
655 : m_scope(view->m_inUpdateScrollbars, true) 655 : m_scope(&view->m_inUpdateScrollbars, true)
656 { } 656 { }
657 private: 657 private:
658 TemporaryChange<bool> m_scope; 658 AutoReset<bool> m_scope;
659 }; 659 };
660 660
661 // Only for LayoutPart to traverse into sub frames during paint invalidation . 661 // Only for LayoutPart to traverse into sub frames during paint invalidation .
662 void invalidateTreeIfNeeded(const PaintInvalidationState&); 662 void invalidateTreeIfNeeded(const PaintInvalidationState&);
663 663
664 private: 664 private:
665 explicit FrameView(LocalFrame*); 665 explicit FrameView(LocalFrame*);
666 666
667 void setScrollOffset(const DoublePoint&, ScrollType) override; 667 void setScrollOffset(const DoublePoint&, ScrollType) override;
668 668
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 963 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
964 setIsVisuallyNonEmpty(); 964 setIsVisuallyNonEmpty();
965 } 965 }
966 966
967 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 967 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
968 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 968 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
969 969
970 } // namespace blink 970 } // namespace blink
971 971
972 #endif // FrameView_h 972 #endif // FrameView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReader.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698