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

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

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 EBreak classABreakPointValue(EBreak previousBreakAfterValue) const; 861 EBreak classABreakPointValue(EBreak previousBreakAfterValue) const;
862 862
863 // Return true if we should insert a break in front of this box. The box needs 863 // Return true if we should insert a break in front of this box. The box needs
864 // to start at a valid class A break point in order to allow a forced break. 864 // to start at a valid class A break point in order to allow a forced break.
865 // To determine whether or not to break, we also need to know the break-after 865 // To determine whether or not to break, we also need to know the break-after
866 // value of the previous in-flow sibling. 866 // value of the previous in-flow sibling.
867 bool needsForcedBreakBefore(EBreak previousBreakAfterValue) const; 867 bool needsForcedBreakBefore(EBreak previousBreakAfterValue) const;
868 868
869 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override; 869 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override;
870 LayoutRect localOverflowRectForPaintInvalidation() const override; 870 LayoutRect localVisualRect() const override;
871 bool mapToVisualRectInAncestorSpace( 871 bool mapToVisualRectInAncestorSpace(
872 const LayoutBoxModelObject* ancestor, 872 const LayoutBoxModelObject* ancestor,
873 LayoutRect&, 873 LayoutRect&,
874 VisualRectFlags = DefaultVisualRectFlags) const override; 874 VisualRectFlags = DefaultVisualRectFlags) const override;
875 875
876 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; 876 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const;
877 877
878 LayoutUnit containingBlockLogicalWidthForContent() const override; 878 LayoutUnit containingBlockLogicalWidthForContent() const override;
879 LayoutUnit containingBlockLogicalHeightForContent( 879 LayoutUnit containingBlockLogicalHeightForContent(
880 AvailableLogicalHeightType) const; 880 AvailableLogicalHeightType) const;
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 bool canRenderBorderImage() const; 1266 bool canRenderBorderImage() const;
1267 1267
1268 void mapLocalToAncestor( 1268 void mapLocalToAncestor(
1269 const LayoutBoxModelObject* ancestor, 1269 const LayoutBoxModelObject* ancestor,
1270 TransformState&, 1270 TransformState&,
1271 MapCoordinatesFlags = ApplyContainerFlip) const override; 1271 MapCoordinatesFlags = ApplyContainerFlip) const override;
1272 void mapAncestorToLocal(const LayoutBoxModelObject*, 1272 void mapAncestorToLocal(const LayoutBoxModelObject*,
1273 TransformState&, 1273 TransformState&,
1274 MapCoordinatesFlags) const override; 1274 MapCoordinatesFlags) const override;
1275 1275
1276 void clearPreviousPaintInvalidationRects() override; 1276 void clearPreviousVisualRects() override;
1277 1277
1278 LayoutBlock* percentHeightContainer() const { 1278 LayoutBlock* percentHeightContainer() const {
1279 return m_rareData ? m_rareData->m_percentHeightContainer : nullptr; 1279 return m_rareData ? m_rareData->m_percentHeightContainer : nullptr;
1280 } 1280 }
1281 void setPercentHeightContainer(LayoutBlock*); 1281 void setPercentHeightContainer(LayoutBlock*);
1282 void removeFromPercentHeightContainer(); 1282 void removeFromPercentHeightContainer();
1283 void clearPercentHeightDescendants(); 1283 void clearPercentHeightDescendants();
1284 // For snap areas, returns the snap container that owns us. 1284 // For snap areas, returns the snap container that owns us.
1285 LayoutBox* snapContainer() const; 1285 LayoutBox* snapContainer() const;
1286 void setSnapContainer(LayoutBox*); 1286 void setSnapContainer(LayoutBox*);
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1620 1620
1621 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1621 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1622 return breakValue == BreakColumn || breakValue == BreakLeft || 1622 return breakValue == BreakColumn || breakValue == BreakLeft ||
1623 breakValue == BreakPage || breakValue == BreakRecto || 1623 breakValue == BreakPage || breakValue == BreakRecto ||
1624 breakValue == BreakRight || breakValue == BreakVerso; 1624 breakValue == BreakRight || breakValue == BreakVerso;
1625 } 1625 }
1626 1626
1627 } // namespace blink 1627 } // namespace blink
1628 1628
1629 #endif // LayoutBox_h 1629 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698