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

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

Issue 1246363002: Avoid updating compositor animations in hitTest path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: revert advancing lifecycle to CompositingClean prior to hit testing Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void setLastPaintTime(double val) { m_lastPaintTime = val; } 218 void setLastPaintTime(double val) { m_lastPaintTime = val; }
219 bool hasEverPainted() const { return m_lastPaintTime; } 219 bool hasEverPainted() const { return m_lastPaintTime; }
220 void setNodeToDraw(Node*); 220 void setNodeToDraw(Node*);
221 Node* nodeToDraw() { return m_nodeToDraw.get(); } 221 Node* nodeToDraw() { return m_nodeToDraw.get(); }
222 222
223 Color documentBackgroundColor() const; 223 Color documentBackgroundColor() const;
224 224
225 // Run all needed lifecycle stages. After calling this method, all frames wi ll be in the lifecycle state PaintInvalidationClean. 225 // Run all needed lifecycle stages. After calling this method, all frames wi ll be in the lifecycle state PaintInvalidationClean.
226 void updateAllLifecyclePhases(); 226 void updateAllLifecyclePhases();
227 227
228 // Computes the style, layout and compositing lifecycle stages if needed. Af ter calling this method, all frames wil lbe in a lifecycle
229 // state >= CompositingClean, and scrolling has been updated.
230 void updateLifecycleToCompositingCleanPlusScrolling();
231
232 bool invalidateViewportConstrainedObjects(); 228 bool invalidateViewportConstrainedObjects();
233 229
234 void incrementVisuallyNonEmptyCharacterCount(unsigned); 230 void incrementVisuallyNonEmptyCharacterCount(unsigned);
235 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 231 void incrementVisuallyNonEmptyPixelCount(const IntSize&);
236 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } 232 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
237 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } 233 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
238 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); 234 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize);
239 void disableAutoSizeMode(); 235 void disableAutoSizeMode();
240 236
241 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor); 237 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor);
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 static const unsigned visualPixelThreshold = 32 * 32; 860 static const unsigned visualPixelThreshold = 32 * 32;
865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 861 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
866 setIsVisuallyNonEmpty(); 862 setIsVisuallyNonEmpty();
867 } 863 }
868 864
869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 865 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
870 866
871 } // namespace blink 867 } // namespace blink
872 868
873 #endif // FrameView_h 869 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698