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

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

Issue 1026823002: [S.P.] Don't draw frames of animated images that are offscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 void applyOverflowToViewportAndSetRenderer(LayoutObject*, ScrollbarMode& hMo de, ScrollbarMode& vMode); 639 void applyOverflowToViewportAndSetRenderer(LayoutObject*, ScrollbarMode& hMo de, ScrollbarMode& vMode);
640 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); 640 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow);
641 641
642 void updateCounters(); 642 void updateCounters();
643 void forceLayoutParentViewIfNeeded(); 643 void forceLayoutParentViewIfNeeded();
644 void performPreLayoutTasks(); 644 void performPreLayoutTasks();
645 void performLayout(bool inSubtreeLayout); 645 void performLayout(bool inSubtreeLayout);
646 void scheduleOrPerformPostLayoutTasks(); 646 void scheduleOrPerformPostLayoutTasks();
647 void performPostLayoutTasks(); 647 void performPostLayoutTasks();
648 648
649 void invalidateTreeIfNeeded(); 649 void invalidateTreeIfNeeded(Vector<LayoutObject*>& pendingDelayedPaintInvali dations);
650 650
651 DocumentLifecycle& lifecycle() const; 651 DocumentLifecycle& lifecycle() const;
652 652
653 void contentRectangleForPaintInvalidation(const IntRect&); 653 void contentRectangleForPaintInvalidation(const IntRect&);
654 virtual void contentsResized() override; 654 virtual void contentsResized() override;
655 void scrollbarExistenceDidChange(); 655 void scrollbarExistenceDidChange();
656 656
657 // Override Widget methods to do point conversion via renderers, in order to 657 // Override Widget methods to do point conversion via renderers, in order to
658 // take transforms into account. 658 // take transforms into account.
659 virtual IntRect convertToContainingView(const IntRect&) const override; 659 virtual IntRect convertToContainingView(const IntRect&) const override;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 static const unsigned visualPixelThreshold = 32 * 32; 871 static const unsigned visualPixelThreshold = 32 * 32;
872 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 872 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
873 setIsVisuallyNonEmpty(); 873 setIsVisuallyNonEmpty();
874 } 874 }
875 875
876 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 876 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
877 877
878 } // namespace blink 878 } // namespace blink
879 879
880 #endif // FrameView_h 880 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698