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

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

Issue 1813383002: Move all fast-path paint invalidation mapping into PaintInvalidationState (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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 631
632 EBreak breakAfter() const; 632 EBreak breakAfter() const;
633 EBreak breakBefore() const; 633 EBreak breakBefore() const;
634 EBreak breakInside() const; 634 EBreak breakInside() const;
635 635
636 static bool isForcedFragmentainerBreakValue(EBreak); 636 static bool isForcedFragmentainerBreakValue(EBreak);
637 637
638 bool hasForcedBreakBefore() const; 638 bool hasForcedBreakBefore() const;
639 bool hasForcedBreakAfter() const; 639 bool hasForcedBreakAfter() const;
640 640
641 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; 641 LayoutRect localOverflowRectForPaintInvalidation() const override;
642 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*) const override; 642 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&) const override;
643 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); 643 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants);
644 644
645 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; 645 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const;
646 646
647 LayoutUnit containingBlockLogicalWidthForContent() const override; 647 LayoutUnit containingBlockLogicalWidthForContent() const override;
648 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 648 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
649 649
650 LayoutUnit containingBlockAvailableLineWidth() const; 650 LayoutUnit containingBlockAvailableLineWidth() const;
651 LayoutUnit perpendicularContainingBlockLogicalHeight() const; 651 LayoutUnit perpendicularContainingBlockLogicalHeight() const;
652 652
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 void markShapeOutsideDependentsForLayout() 880 void markShapeOutsideDependentsForLayout()
881 { 881 {
882 if (isFloating()) 882 if (isFloating())
883 removeFloatingOrPositionedChildFromBlockLists(); 883 removeFloatingOrPositionedChildFromBlockLists();
884 } 884 }
885 885
886 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } 886 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; }
887 887
888 bool canRenderBorderImage() const; 888 bool canRenderBorderImage() const;
889 889
890 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState &, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai ntInvalidationState* = nullptr) const override; 890 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState &, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr) const ove rride;
891 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override; 891 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override;
892 892
893 void clearPreviousPaintInvalidationRects() override; 893 void clearPreviousPaintInvalidationRects() override;
894 894
895 LayoutBlock* percentHeightContainer() const { return m_rareData ? m_rareData ->m_percentHeightContainer : nullptr; } 895 LayoutBlock* percentHeightContainer() const { return m_rareData ? m_rareData ->m_percentHeightContainer : nullptr; }
896 void setPercentHeightContainer(LayoutBlock*); 896 void setPercentHeightContainer(LayoutBlock*);
897 void removeFromPercentHeightContainer(); 897 void removeFromPercentHeightContainer();
898 void clearPercentHeightDescendants(); 898 void clearPercentHeightDescendants();
899 899
900 protected: 900 protected:
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 || breakValue == BreakLeft 1142 || breakValue == BreakLeft
1143 || breakValue == BreakPage 1143 || breakValue == BreakPage
1144 || breakValue == BreakRecto 1144 || breakValue == BreakRecto
1145 || breakValue == BreakRight 1145 || breakValue == BreakRight
1146 || breakValue == BreakVerso; 1146 || breakValue == BreakVerso;
1147 } 1147 }
1148 1148
1149 } // namespace blink 1149 } // namespace blink
1150 1150
1151 #endif // LayoutBox_h 1151 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698