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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 395463003: Invalidate previous paint rect in RenderObject::paintInvalidationForWholeRenderer() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add savesPreviousPaintInvalidationRect; Remove extra optimization code 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 // Compute a list of hit-test rectangles per layer rooted at this renderer. 982 // Compute a list of hit-test rectangles per layer rooted at this renderer.
983 virtual void computeLayerHitTestRects(LayerHitTestRects&) const; 983 virtual void computeLayerHitTestRects(LayerHitTestRects&) const;
984 984
985 // Return the renderer whose background style is used to paint the root back ground. Should only be called on the renderer for which isDocumentElement() is t rue. 985 // Return the renderer whose background style is used to paint the root back ground. Should only be called on the renderer for which isDocumentElement() is t rue.
986 RenderObject* rendererForRootBackground(); 986 RenderObject* rendererForRootBackground();
987 987
988 RespectImageOrientationEnum shouldRespectImageOrientation() const; 988 RespectImageOrientationEnum shouldRespectImageOrientation() const;
989 989
990 bool isRelayoutBoundaryForInspector() const; 990 bool isRelayoutBoundaryForInspector() const;
991 991
992 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP aintInvalidationRect; } 992 const LayoutRect& previousPaintInvalidationRect() const
993 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; } 993 {
994 ASSERT(savesPreviousPaintInvalidationRect());
995 return m_previousPaintInvalidationRect;
996 }
997 void setPreviousPaintInvalidationRect(const LayoutRect& rect)
998 {
999 ASSERT(savesPreviousPaintInvalidationRect());
1000 m_previousPaintInvalidationRect = rect;
1001 }
1002 // For now only RenderBox and RenderSVGModelObject sets previousPaintInvalid ationRect.
1003 bool savesPreviousPaintInvalidationRect() const { return isBox() || isSVG(); }
994 1004
995 const LayoutPoint& previousPositionFromPaintInvalidationContainer() const { return m_previousPositionFromPaintInvalidationContainer; } 1005 const LayoutPoint& previousPositionFromPaintInvalidationContainer() const { return m_previousPositionFromPaintInvalidationContainer; }
996 void setPreviousPositionFromPaintInvalidationContainer(const LayoutPoint& lo cation) { m_previousPositionFromPaintInvalidationContainer = location; } 1006 void setPreviousPositionFromPaintInvalidationContainer(const LayoutPoint& lo cation) { m_previousPositionFromPaintInvalidationContainer = location; }
997 1007
998 bool shouldDoFullPaintInvalidationAfterLayout() const { return m_bitfields.s houldDoFullPaintInvalidationAfterLayout(); } 1008 bool shouldDoFullPaintInvalidationAfterLayout() const { return m_bitfields.s houldDoFullPaintInvalidationAfterLayout(); }
999 void setShouldDoFullPaintInvalidationAfterLayout(bool b) { m_bitfields.setSh ouldDoFullPaintInvalidationAfterLayout(b); } 1009 void setShouldDoFullPaintInvalidationAfterLayout(bool b) { m_bitfields.setSh ouldDoFullPaintInvalidationAfterLayout(b); }
1000 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv alidateOverflowForPaint(); } 1010 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv alidateOverflowForPaint(); }
1001 1011
1002 bool shouldDoFullPaintInvalidationIfSelfPaintingLayer() const { return m_bit fields.shouldDoFullPaintInvalidationIfSelfPaintingLayer(); } 1012 bool shouldDoFullPaintInvalidationIfSelfPaintingLayer() const { return m_bit fields.shouldDoFullPaintInvalidationIfSelfPaintingLayer(); }
1003 void setShouldDoFullPaintInvalidationIfSelfPaintingLayer(bool b) { m_bitfiel ds.setShouldDoFullPaintInvalidationIfSelfPaintingLayer(b); } 1013 void setShouldDoFullPaintInvalidationIfSelfPaintingLayer(bool b) { m_bitfiel ds.setShouldDoFullPaintInvalidationIfSelfPaintingLayer(b); }
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 void showTree(const WebCore::RenderObject*); 1503 void showTree(const WebCore::RenderObject*);
1494 void showLineTree(const WebCore::RenderObject*); 1504 void showLineTree(const WebCore::RenderObject*);
1495 void showRenderTree(const WebCore::RenderObject* object1); 1505 void showRenderTree(const WebCore::RenderObject* object1);
1496 // We don't make object2 an optional parameter so that showRenderTree 1506 // We don't make object2 an optional parameter so that showRenderTree
1497 // can be called from gdb easily. 1507 // can be called from gdb easily.
1498 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1508 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1499 1509
1500 #endif 1510 #endif
1501 1511
1502 #endif // RenderObject_h 1512 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698