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

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

Issue 403593005: Clear scrollbar damages in time (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 13 matching lines...) Expand all
24 #define RenderBox_h 24 #define RenderBox_h
25 25
26 #include "core/rendering/RenderBoxModelObject.h" 26 #include "core/rendering/RenderBoxModelObject.h"
27 #include "core/rendering/RenderOverflow.h" 27 #include "core/rendering/RenderOverflow.h"
28 #include "core/rendering/shapes/ShapeOutsideInfo.h" 28 #include "core/rendering/shapes/ShapeOutsideInfo.h"
29 #include "platform/scroll/ScrollTypes.h" 29 #include "platform/scroll/ScrollTypes.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 struct PaintInfo; 33 struct PaintInfo;
34 class RenderLayerScrollableArea;
34 35
35 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; 36 enum SizeType { MainOrPreferredSize, MinSize, MaxSize };
36 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde rPadding }; 37 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde rPadding };
37 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS crollbarSize }; 38 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS crollbarSize };
38 enum MarginDirection { BlockDirection, InlineDirection }; 39 enum MarginDirection { BlockDirection, InlineDirection };
39 40
40 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; 41 enum ShouldComputePreferred { ComputeActual, ComputePreferred };
41 42
42 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; 43 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible };
43 44
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 676
676 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE; 677 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE;
677 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE; 678 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE;
678 679
679 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } 680 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; }
680 681
681 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel Object& paintInvalidationContainer, 682 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel Object& paintInvalidationContainer,
682 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 683 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
683 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) OVERRIDE; 684 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) OVERRIDE;
684 685
686 virtual void clearPaintInvalidationState() OVERRIDE;
687 #if ENABLE(ASSERT)
688 virtual bool paintInvalidationStateIsDirty() const OVERRIDE;
689 #endif
690
685 private: 691 private:
686 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render Style* oldStyle); 692 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render Style* oldStyle);
687 void updateGridPositionAfterStyleChange(const RenderStyle*); 693 void updateGridPositionAfterStyleChange(const RenderStyle*);
688 694
689 bool autoWidthShouldFitContent() const; 695 bool autoWidthShouldFitContent() const;
690 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&) const; 696 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&) const;
691 697
692 // Returns true if we did a full repaint 698 // Returns true if we did a full repaint
693 bool repaintLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawi ngBackground); 699 bool repaintLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawi ngBackground);
694 700
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 if (UNLIKELY(inlineBoxWrapper() != 0)) 802 if (UNLIKELY(inlineBoxWrapper() != 0))
797 deleteLineBoxWrapper(); 803 deleteLineBoxWrapper();
798 } 804 }
799 805
800 ensureRareData().m_inlineBoxWrapper = boxWrapper; 806 ensureRareData().m_inlineBoxWrapper = boxWrapper;
801 } 807 }
802 808
803 } // namespace blink 809 } // namespace blink
804 810
805 #endif // RenderBox_h 811 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « LayoutTests/platform/win-xp/fast/repaint/overflow-scroll-delete-expected.txt ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698