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

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: 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 634 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 TemporaryChange<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*);
(...skipping 297 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

Powered by Google App Engine
This is Rietveld 408576698