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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 1456953003: Revert of Calculate paint invalidation rect for scrollbars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); 872 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild);
873 873
874 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override; 874 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override;
875 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; 875 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override;
876 876
877 PaintInvalidationReason paintInvalidationReason(const LayoutBoxModelObject& paintInvalidationContainer, 877 PaintInvalidationReason paintInvalidationReason(const LayoutBoxModelObject& paintInvalidationContainer,
878 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 878 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
879 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override; 879 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override;
880 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override; 880 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override;
881 881
882 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject& paintInvalidationContainer) override; 882 void clearPaintInvalidationState(const PaintInvalidationState&) override;
883 #if ENABLE(ASSERT)
884 bool paintInvalidationStateIsDirty() const override;
885 #endif
886
887 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject& newPaintInvalidationContainer) override;
883 888
884 bool hasNonCompositedScrollbars() const final; 889 bool hasNonCompositedScrollbars() const final;
885 void excludeScrollbars(LayoutRect&, OverlayScrollbarSizeRelevancy = IgnoreOv erlayScrollbarSize) const; 890 void excludeScrollbars(LayoutRect&, OverlayScrollbarSizeRelevancy = IgnoreOv erlayScrollbarSize) const;
886 891
887 private: 892 private:
888 bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const; 893 bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const;
889 bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const; 894 bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const;
890 inline bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) con st; 895 inline bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) con st;
891 896
892 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, con st LayoutRect& newBounds); 897 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, con st LayoutRect& newBounds);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 1066 if (UNLIKELY(inlineBoxWrapper() != nullptr))
1062 deleteLineBoxWrapper(); 1067 deleteLineBoxWrapper();
1063 } 1068 }
1064 1069
1065 ensureRareData().m_inlineBoxWrapper = boxWrapper; 1070 ensureRareData().m_inlineBoxWrapper = boxWrapper;
1066 } 1071 }
1067 1072
1068 } // namespace blink 1073 } // namespace blink
1069 1074
1070 #endif // LayoutBox_h 1075 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698