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

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: Rebase Created 4 years, 8 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 localOverflowRectForPaintInvalidation() const override; 641 LayoutRect localOverflowRectForPaintInvalidation() const override;
642 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*, VisibleRectFlags = DefaultVisibleRect Flags) const override; 642 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, VisibleRectFlags = DefaultVisibleRectFlags) 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 void markShapeOutsideDependentsForLayout() 884 void markShapeOutsideDependentsForLayout()
885 { 885 {
886 if (isFloating()) 886 if (isFloating())
887 removeFloatingOrPositionedChildFromBlockLists(); 887 removeFloatingOrPositionedChildFromBlockLists();
888 } 888 }
889 889
890 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } 890 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; }
891 891
892 bool canRenderBorderImage() const; 892 bool canRenderBorderImage() const;
893 893
894 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState &, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai ntInvalidationState* = nullptr) const override; 894 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState &, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr) const ove rride;
895 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override; 895 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override;
896 896
897 void clearPreviousPaintInvalidationRects() override; 897 void clearPreviousPaintInvalidationRects() override;
898 898
899 LayoutBlock* percentHeightContainer() const { return m_rareData ? m_rareData ->m_percentHeightContainer : nullptr; } 899 LayoutBlock* percentHeightContainer() const { return m_rareData ? m_rareData ->m_percentHeightContainer : nullptr; }
900 void setPercentHeightContainer(LayoutBlock*); 900 void setPercentHeightContainer(LayoutBlock*);
901 void removeFromPercentHeightContainer(); 901 void removeFromPercentHeightContainer();
902 void clearPercentHeightDescendants(); 902 void clearPercentHeightDescendants();
903 903
904 protected: 904 protected:
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 || breakValue == BreakLeft 1146 || breakValue == BreakLeft
1147 || breakValue == BreakPage 1147 || breakValue == BreakPage
1148 || breakValue == BreakRecto 1148 || breakValue == BreakRecto
1149 || breakValue == BreakRight 1149 || breakValue == BreakRight
1150 || breakValue == BreakVerso; 1150 || breakValue == BreakVerso;
1151 } 1151 }
1152 1152
1153 } // namespace blink 1153 } // namespace blink
1154 1154
1155 #endif // LayoutBox_h 1155 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698