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

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

Issue 369483004: Revert of Move paint invalidation after compositing update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect) OVERRIDE; 212 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect) OVERRIDE;
213 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV ERRIDE; 213 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV ERRIDE;
214 214
215 Color documentBackgroundColor() const; 215 Color documentBackgroundColor() const;
216 216
217 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; } 217 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; }
218 218
219 void updateLayoutAndStyleForPainting(); 219 void updateLayoutAndStyleForPainting();
220 void updateLayoutAndStyleIfNeededRecursive(); 220 void updateLayoutAndStyleIfNeededRecursive();
221 221
222 void invalidateTreeIfNeededRecursive();
223
224 void incrementVisuallyNonEmptyCharacterCount(unsigned); 222 void incrementVisuallyNonEmptyCharacterCount(unsigned);
225 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 223 void incrementVisuallyNonEmptyPixelCount(const IntSize&);
226 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } 224 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
227 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize); 225 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize);
228 226
229 void forceLayout(bool allowSubtree = false); 227 void forceLayout(bool allowSubtree = false);
230 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor); 228 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor);
231 229
232 bool scrollToFragment(const KURL&); 230 bool scrollToFragment(const KURL&);
233 bool scrollToAnchor(const String&); 231 bool scrollToAnchor(const String&);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); 354 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow);
357 355
358 void updateCounters(); 356 void updateCounters();
359 void autoSizeIfEnabled(); 357 void autoSizeIfEnabled();
360 void forceLayoutParentViewIfNeeded(); 358 void forceLayoutParentViewIfNeeded();
361 void performPreLayoutTasks(); 359 void performPreLayoutTasks();
362 void performLayout(RenderObject* rootForThisLayout, bool inSubtreeLayout); 360 void performLayout(RenderObject* rootForThisLayout, bool inSubtreeLayout);
363 void scheduleOrPerformPostLayoutTasks(); 361 void scheduleOrPerformPostLayoutTasks();
364 void performPostLayoutTasks(); 362 void performPostLayoutTasks();
365 363
366 void invalidateTreeIfNeeded(); 364 void invalidateTree(RenderObject* root);
367 365
368 void gatherDebugLayoutRects(RenderObject* layoutRoot); 366 void gatherDebugLayoutRects(RenderObject* layoutRoot);
369 367
370 DocumentLifecycle& lifecycle() const; 368 DocumentLifecycle& lifecycle() const;
371 369
372 virtual void contentRectangleForPaintInvalidation(const IntRect&) OVERRIDE; 370 virtual void contentRectangleForPaintInvalidation(const IntRect&) OVERRIDE;
373 virtual void contentsResized() OVERRIDE; 371 virtual void contentsResized() OVERRIDE;
374 virtual void scrollbarExistenceDidChange() OVERRIDE; 372 virtual void scrollbarExistenceDidChange() OVERRIDE;
375 373
376 // Override ScrollView methods to do point conversion via renderers, in orde r to 374 // Override ScrollView methods to do point conversion via renderers, in orde r to
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 556 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
559 } 557 }
560 private: 558 private:
561 FrameView* m_view; 559 FrameView* m_view;
562 bool m_originalValue; 560 bool m_originalValue;
563 }; 561 };
564 562
565 } // namespace WebCore 563 } // namespace WebCore
566 564
567 #endif // FrameView_h 565 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698