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

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

Issue 1376143002: Add a document phase for calculating paint properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 608
609 enum LifeCycleUpdateOption { 609 enum LifeCycleUpdateOption {
610 AllPhases, 610 AllPhases,
611 OnlyUpToCompositingCleanPlusScrolling, 611 OnlyUpToCompositingCleanPlusScrolling,
612 }; 612 };
613 613
614 void updateLifecyclePhasesInternal(LifeCycleUpdateOption, const LayoutRect& interestRect = LayoutRect::infiniteRect()); 614 void updateLifecyclePhasesInternal(LifeCycleUpdateOption, const LayoutRect& interestRect = LayoutRect::infiniteRect());
615 void invalidateTreeIfNeededRecursive(); 615 void invalidateTreeIfNeededRecursive();
616 void scrollContentsIfNeededRecursive(); 616 void scrollContentsIfNeededRecursive();
617 void updateStyleAndLayoutIfNeededRecursive(); 617 void updateStyleAndLayoutIfNeededRecursive();
618 void calculatePaintProperties();
618 void synchronizedPaint(const LayoutRect& interestRect); 619 void synchronizedPaint(const LayoutRect& interestRect);
619 void compositeForSlimmingPaintV2(); 620 void compositeForSlimmingPaintV2();
620 621
621 void reset(); 622 void reset();
622 void init(); 623 void init();
623 624
624 void clearLayoutSubtreeRootsAndMarkContainingBlocks(); 625 void clearLayoutSubtreeRootsAndMarkContainingBlocks();
625 626
626 // Called when our frame rect changes (or the rect/scroll position of an anc estor changes). 627 // Called when our frame rect changes (or the rect/scroll position of an anc estor changes).
627 void frameRectsChanged() override; 628 void frameRectsChanged() override;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 static const unsigned visualPixelThreshold = 32 * 32; 858 static const unsigned visualPixelThreshold = 32 * 32;
858 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 859 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
859 setIsVisuallyNonEmpty(); 860 setIsVisuallyNonEmpty();
860 } 861 }
861 862
862 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 863 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
863 864
864 } // namespace blink 865 } // namespace blink
865 866
866 #endif // FrameView_h 867 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698