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

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

Issue 1950573003: Improve handling of PaintInvalidationLayer (renamed to PaintInvalidationSubtree) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@LocationChange
Patch Set: Created 4 years, 7 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
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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; 941 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const;
942 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi ng) const; 942 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi ng) const;
943 943
944 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve l() && !isInlineBlockOrInlineTable(); } 944 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve l() && !isInlineBlockOrInlineTable(); }
945 945
946 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); 946 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild);
947 947
948 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override; 948 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override;
949 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; 949 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override;
950 950
951 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec t& paintInvalidationContainer, 951 PaintInvalidationReason getPaintInvalidationReason(const PaintInvalidationSt ate&,
952 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 952 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
953 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override; 953 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override;
954 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override; 954 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override;
955 955
956 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override; 956 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override;
957 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa intInvalidationState) override; 957 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa intInvalidationState) override;
958 958
959 bool hasStretchedLogicalWidth() const; 959 bool hasStretchedLogicalWidth() const;
960 960
961 bool hasNonCompositedScrollbars() const final; 961 bool hasNonCompositedScrollbars() const final;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 || breakValue == BreakLeft 1164 || breakValue == BreakLeft
1165 || breakValue == BreakPage 1165 || breakValue == BreakPage
1166 || breakValue == BreakRecto 1166 || breakValue == BreakRecto
1167 || breakValue == BreakRight 1167 || breakValue == BreakRight
1168 || breakValue == BreakVerso; 1168 || breakValue == BreakVerso;
1169 } 1169 }
1170 1170
1171 } // namespace blink 1171 } // namespace blink
1172 1172
1173 #endif // LayoutBox_h 1173 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698