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

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: Simplified 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 { return m_previousP aintInvalidationRect; }
Xianzhu 2014/07/16 01:59:49 For now we can't ASSERT(savesPreviousPaintInvalida
993 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; } 993 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; }
994 // For now only RenderBox and RenderSVGModelObject always set previousPaintI nvalidationRect.
995 bool savesPreviousPaintInvalidationRect() const { return isBox() || isSVG(); }
994 996
995 const LayoutPoint& previousPositionFromPaintInvalidationContainer() const { return m_previousPositionFromPaintInvalidationContainer; } 997 const LayoutPoint& previousPositionFromPaintInvalidationContainer() const { return m_previousPositionFromPaintInvalidationContainer; }
996 void setPreviousPositionFromPaintInvalidationContainer(const LayoutPoint& lo cation) { m_previousPositionFromPaintInvalidationContainer = location; } 998 void setPreviousPositionFromPaintInvalidationContainer(const LayoutPoint& lo cation) { m_previousPositionFromPaintInvalidationContainer = location; }
997 999
998 bool shouldDoFullPaintInvalidationAfterLayout() const { return m_bitfields.s houldDoFullPaintInvalidationAfterLayout(); } 1000 bool shouldDoFullPaintInvalidationAfterLayout() const { return m_bitfields.s houldDoFullPaintInvalidationAfterLayout(); }
999 void setShouldDoFullPaintInvalidationAfterLayout(bool b) { m_bitfields.setSh ouldDoFullPaintInvalidationAfterLayout(b); } 1001 void setShouldDoFullPaintInvalidationAfterLayout(bool b) { m_bitfields.setSh ouldDoFullPaintInvalidationAfterLayout(b); }
1000 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv alidateOverflowForPaint(); } 1002 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv alidateOverflowForPaint(); }
1001 1003
1002 bool shouldDoFullPaintInvalidationIfSelfPaintingLayer() const { return m_bit fields.shouldDoFullPaintInvalidationIfSelfPaintingLayer(); } 1004 bool shouldDoFullPaintInvalidationIfSelfPaintingLayer() const { return m_bit fields.shouldDoFullPaintInvalidationIfSelfPaintingLayer(); }
1003 void setShouldDoFullPaintInvalidationIfSelfPaintingLayer(bool b) { m_bitfiel ds.setShouldDoFullPaintInvalidationIfSelfPaintingLayer(b); } 1005 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*); 1495 void showTree(const WebCore::RenderObject*);
1494 void showLineTree(const WebCore::RenderObject*); 1496 void showLineTree(const WebCore::RenderObject*);
1495 void showRenderTree(const WebCore::RenderObject* object1); 1497 void showRenderTree(const WebCore::RenderObject* object1);
1496 // We don't make object2 an optional parameter so that showRenderTree 1498 // We don't make object2 an optional parameter so that showRenderTree
1497 // can be called from gdb easily. 1499 // can be called from gdb easily.
1498 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1500 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1499 1501
1500 #endif 1502 #endif
1501 1503
1502 #endif // RenderObject_h 1504 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698