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

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 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi ng) const; 956 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi ng) const;
957 957
958 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve l() && !isInlineBlockOrInlineTable(); } 958 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve l() && !isInlineBlockOrInlineTable(); }
959 959
960 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); 960 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild);
961 961
962 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); 962 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location InContainer, const LayoutPoint& accumulatedOffset, HitTestAction);
963 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override; 963 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override;
964 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; 964 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override;
965 965
966 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec t& paintInvalidationContainer, 966 PaintInvalidationReason getPaintInvalidationReason(const PaintInvalidationSt ate&,
967 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 967 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
968 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override; 968 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override;
969 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override; 969 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override;
970 970
971 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override; 971 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override;
972 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa intInvalidationState) override; 972 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa intInvalidationState) override;
973 973
974 bool hasStretchedLogicalWidth() const; 974 bool hasStretchedLogicalWidth() const;
975 975
976 bool hasNonCompositedScrollbars() const final; 976 bool hasNonCompositedScrollbars() const final;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 || breakValue == BreakLeft 1179 || breakValue == BreakLeft
1180 || breakValue == BreakPage 1180 || breakValue == BreakPage
1181 || breakValue == BreakRecto 1181 || breakValue == BreakRecto
1182 || breakValue == BreakRight 1182 || breakValue == BreakRight
1183 || breakValue == BreakVerso; 1183 || breakValue == BreakVerso;
1184 } 1184 }
1185 1185
1186 } // namespace blink 1186 } // namespace blink
1187 1187
1188 #endif // LayoutBox_h 1188 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698