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

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

Issue 2636253002: Handle nested position:sticky elements (Closed)
Patch Set: Ignore position:sticky offsets when computing localToAncestorQuad offsets Created 3 years, 10 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 void setOverrideContainingBlockContentLogicalHeight(LayoutUnit); 700 void setOverrideContainingBlockContentLogicalHeight(LayoutUnit);
701 void clearContainingBlockOverrideSize(); 701 void clearContainingBlockOverrideSize();
702 void clearOverrideContainingBlockContentLogicalHeight(); 702 void clearOverrideContainingBlockContentLogicalHeight();
703 703
704 LayoutUnit extraInlineOffset() const; 704 LayoutUnit extraInlineOffset() const;
705 LayoutUnit extraBlockOffset() const; 705 LayoutUnit extraBlockOffset() const;
706 void setExtraInlineOffset(LayoutUnit inlineOffest); 706 void setExtraInlineOffset(LayoutUnit inlineOffest);
707 void setExtraBlockOffset(LayoutUnit blockOffest); 707 void setExtraBlockOffset(LayoutUnit blockOffest);
708 void clearExtraInlineAndBlockOffests(); 708 void clearExtraInlineAndBlockOffests();
709 709
710 LayoutSize offsetFromContainer(const LayoutObject*) const override; 710 LayoutSize offsetFromContainer(const LayoutObject*,
711 bool ignoreSticky = false) const override;
711 712
712 LayoutUnit adjustBorderBoxLogicalWidthForBoxSizing(float width) const; 713 LayoutUnit adjustBorderBoxLogicalWidthForBoxSizing(float width) const;
713 LayoutUnit adjustBorderBoxLogicalHeightForBoxSizing(float height) const; 714 LayoutUnit adjustBorderBoxLogicalHeightForBoxSizing(float height) const;
714 LayoutUnit adjustContentBoxLogicalWidthForBoxSizing(float width) const; 715 LayoutUnit adjustContentBoxLogicalWidthForBoxSizing(float width) const;
715 LayoutUnit adjustContentBoxLogicalHeightForBoxSizing(float height) const; 716 LayoutUnit adjustContentBoxLogicalHeightForBoxSizing(float height) const;
716 717
717 // ComputedMarginValues holds the actual values for margins. It ignores 718 // ComputedMarginValues holds the actual values for margins. It ignores
718 // margin collapsing as they are handled in LayoutBlockFlow. 719 // margin collapsing as they are handled in LayoutBlockFlow.
719 // The margins are stored in logical coordinates (see COORDINATE 720 // The margins are stored in logical coordinates (see COORDINATE
720 // SYSTEMS in LayoutBoxModel) for use during layout. 721 // SYSTEMS in LayoutBoxModel) for use during layout.
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 1632
1632 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1633 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1633 return breakValue == BreakColumn || breakValue == BreakLeft || 1634 return breakValue == BreakColumn || breakValue == BreakLeft ||
1634 breakValue == BreakPage || breakValue == BreakRecto || 1635 breakValue == BreakPage || breakValue == BreakRecto ||
1635 breakValue == BreakRight || breakValue == BreakVerso; 1636 breakValue == BreakRight || breakValue == BreakVerso;
1636 } 1637 }
1637 1638
1638 } // namespace blink 1639 } // namespace blink
1639 1640
1640 #endif // LayoutBox_h 1641 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698