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

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

Issue 312193004: Don't force full repaint on size change in style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase; Update test expectations Created 6 years, 6 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 enum MapCoordinatesMode { 108 enum MapCoordinatesMode {
109 IsFixed = 1 << 0, 109 IsFixed = 1 << 0,
110 UseTransforms = 1 << 1, 110 UseTransforms = 1 << 1,
111 ApplyContainerFlip = 1 << 2, 111 ApplyContainerFlip = 1 << 2,
112 TraverseDocumentBoundaries = 1 << 3, 112 TraverseDocumentBoundaries = 1 << 3,
113 }; 113 };
114 typedef unsigned MapCoordinatesFlags; 114 typedef unsigned MapCoordinatesFlags;
115 115
116 enum InvalidationReason { 116 enum InvalidationReason {
117 InvalidationIncremental, 117 InvalidationIncremental,
118 InvalidationSelfLayout, 118 InvalidationFull,
119 InvalidationBorderFitLines, 119 InvalidationBorderFitLines,
120 InvalidationBorderRadius, 120 InvalidationBorderRadius,
121 InvalidationBoundsChangeWithBackground, 121 InvalidationBoundsChangeWithBackground,
122 InvalidationBoundsChange, 122 InvalidationBoundsChange,
123 InvalidationLocationChange, 123 InvalidationLocationChange,
124 InvalidationScroll, 124 InvalidationScroll,
125 InvalidationSelection, 125 InvalidationSelection,
126 InvalidationLayer, 126 InvalidationLayer,
127 InvalidationPaint, 127 InvalidationPaint,
128 InvalidationPaintRectangle 128 InvalidationPaintRectangle
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const IntRect&, InvalidationReason) const; 828 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const IntRect&, InvalidationReason) const;
829 829
830 // Invalidate the paint of the entire object. Called when, e.g., the color o f a border changes, or when a border 830 // Invalidate the paint of the entire object. Called when, e.g., the color o f a border changes, or when a border
831 // style changes. 831 // style changes.
832 void paintInvalidationForWholeRenderer() const; 832 void paintInvalidationForWholeRenderer() const;
833 833
834 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space. 834 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space.
835 void invalidatePaintRectangle(const LayoutRect&) const; 835 void invalidatePaintRectangle(const LayoutRect&) const;
836 836
837 // Invalidate the paint only if our old bounds and new bounds are different. The caller may pass in newBounds if they are known. 837 // Invalidate the paint only if our old bounds and new bounds are different. The caller may pass in newBounds if they are known.
838 bool invalidatePaintAfterLayoutIfNeeded(const RenderLayerModelObject* paintI nvalidationContainer, bool wasSelfLayout, 838 bool invalidatePaintAfterLayoutIfNeeded(const RenderLayerModelObject* paintI nvalidationContainer, bool shouldDoFullRepaintInvalidation,
839 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 839 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
840 const LayoutRect* newBoundsPtr = 0, const LayoutPoint* newPositionFromPa intInvalidationContainer = 0); 840 const LayoutRect* newBoundsPtr = 0, const LayoutPoint* newPositionFromPa intInvalidationContainer = 0);
841 841
842 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state. 842 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state.
843 virtual void invalidateTreeAfterLayout(const RenderLayerModelObject&); 843 virtual void invalidateTreeAfterLayout(const RenderLayerModelObject&);
844 844
845 virtual void invalidatePaintForOverflow(); 845 virtual void invalidatePaintForOverflow();
846 void invalidatePaintForOverflowIfNeeded(); 846 void invalidatePaintForOverflowIfNeeded();
847 847
848 bool checkForPaintInvalidation() const; 848 bool checkForPaintInvalidation() const;
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1481 void showTree(const WebCore::RenderObject*); 1481 void showTree(const WebCore::RenderObject*);
1482 void showLineTree(const WebCore::RenderObject*); 1482 void showLineTree(const WebCore::RenderObject*);
1483 void showRenderTree(const WebCore::RenderObject* object1); 1483 void showRenderTree(const WebCore::RenderObject* object1);
1484 // We don't make object2 an optional parameter so that showRenderTree 1484 // We don't make object2 an optional parameter so that showRenderTree
1485 // can be called from gdb easily. 1485 // can be called from gdb easily.
1486 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1486 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1487 1487
1488 #endif 1488 #endif
1489 1489
1490 #endif // RenderObject_h 1490 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698