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

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

Issue 1804963005: Avoid paintInvalidationContainer parameter of invalidatePaintIfNeeded() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override; 939 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override;
940 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; 940 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override;
941 941
942 bool hitTestClippedOutByRoundedBorder(const HitTestLocation& locationInConta iner, const LayoutPoint& borderBoxLocation) const; 942 bool hitTestClippedOutByRoundedBorder(const HitTestLocation& locationInConta iner, const LayoutPoint& borderBoxLocation) const;
943 943
944 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec t& paintInvalidationContainer, 944 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec t& paintInvalidationContainer,
945 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 945 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
946 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override; 946 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override;
947 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override; 947 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override;
948 948
949 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject& paintInvalidationContainer) override; 949 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override;
950 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& childPaintInv alidationState) override; 950 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa intInvalidationState) override;
951 951
952 bool hasStretchedLogicalWidth() const; 952 bool hasStretchedLogicalWidth() const;
953 953
954 bool hasNonCompositedScrollbars() const final; 954 bool hasNonCompositedScrollbars() const final;
955 void excludeScrollbars(LayoutRect&, OverlayScrollbarSizeRelevancy = IgnoreOv erlayScrollbarSize) const; 955 void excludeScrollbars(LayoutRect&, OverlayScrollbarSizeRelevancy = IgnoreOv erlayScrollbarSize) const;
956 956
957 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; 957 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje ct* containingBlock, bool checkForPerpendicularWritingMode = true) const;
958 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; 958 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj ect* containingBlock, bool checkForPerpendicularWritingMode = true) const;
959 959
960 static void computeBlockStaticDistance(Length& logicalTop, Length& logicalBo ttom, const LayoutBox* child, const LayoutBoxModelObject* containerBlock); 960 static void computeBlockStaticDistance(Length& logicalTop, Length& logicalBo ttom, const LayoutBox* child, const LayoutBoxModelObject* containerBlock);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 || breakValue == BreakLeft 1156 || breakValue == BreakLeft
1157 || breakValue == BreakPage 1157 || breakValue == BreakPage
1158 || breakValue == BreakRecto 1158 || breakValue == BreakRecto
1159 || breakValue == BreakRight 1159 || breakValue == BreakRight
1160 || breakValue == BreakVerso; 1160 || breakValue == BreakVerso;
1161 } 1161 }
1162 1162
1163 } // namespace blink 1163 } // namespace blink
1164 1164
1165 #endif // LayoutBox_h 1165 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698