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

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1218023004: Fix a regression when position:static with absolute child changed to relative (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mstensho@ review in #10, and test from #11 Created 5 years, 5 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
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 614
615 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const { re turn nullptr; } 615 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const { re turn nullptr; }
616 bool isColumnSpanAll() const { return style()->columnSpan() == ColumnSpanAll && spannerPlaceholder(); } 616 bool isColumnSpanAll() const { return style()->columnSpan() == ColumnSpanAll && spannerPlaceholder(); }
617 617
618 // Returns the object containing this one. Can be different from parent for positioned elements. 618 // Returns the object containing this one. Can be different from parent for positioned elements.
619 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n ot null, on return *paintInvalidationContainerSkipped 619 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n ot null, on return *paintInvalidationContainerSkipped
620 // is true if the layoutObject returned is an ancestor of paintInvalidationC ontainer. 620 // is true if the layoutObject returned is an ancestor of paintInvalidationC ontainer.
621 LayoutObject* container(const LayoutBoxModelObject* paintInvalidationContain er = nullptr, bool* paintInvalidationContainerSkipped = nullptr) const; 621 LayoutObject* container(const LayoutBoxModelObject* paintInvalidationContain er = nullptr, bool* paintInvalidationContainerSkipped = nullptr) const;
622 LayoutObject* containerCrossingFrameBoundaries() const; 622 LayoutObject* containerCrossingFrameBoundaries() const;
623 LayoutBlock* containerForFixedPosition(const LayoutBoxModelObject* paintInva lidationContainer = nullptr, bool* paintInvalidationContainerSkipped = nullptr) const; 623 LayoutBlock* containerForFixedPosition(const LayoutBoxModelObject* paintInva lidationContainer = nullptr, bool* paintInvalidationContainerSkipped = nullptr) const;
624 LayoutBlock* containingBlockForAbsolutePosition() const;
624 625
625 virtual LayoutObject* hoverAncestor() const { return parent(); } 626 virtual LayoutObject* hoverAncestor() const { return parent(); }
626 627
627 Element* offsetParent() const; 628 Element* offsetParent() const;
628 629
629 void markContainerChainForLayout(bool scheduleRelayout = true, SubtreeLayout Scope* = nullptr); 630 void markContainerChainForLayout(bool scheduleRelayout = true, SubtreeLayout Scope* = nullptr);
630 void setNeedsLayout(LayoutInvalidationReasonForTracing, MarkingBehavior = Ma rkContainerChain, SubtreeLayoutScope* = nullptr); 631 void setNeedsLayout(LayoutInvalidationReasonForTracing, MarkingBehavior = Ma rkContainerChain, SubtreeLayoutScope* = nullptr);
631 void setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReasonForTraci ng, MarkingBehavior = MarkContainerChain, SubtreeLayoutScope* = nullptr); 632 void setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReasonForTraci ng, MarkingBehavior = MarkContainerChain, SubtreeLayoutScope* = nullptr);
632 void clearNeedsLayout(); 633 void clearNeedsLayout();
633 void setChildNeedsLayout(MarkingBehavior = MarkContainerChain, SubtreeLayout Scope* = nullptr); 634 void setChildNeedsLayout(MarkingBehavior = MarkContainerChain, SubtreeLayout Scope* = nullptr);
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 void showTree(const blink::LayoutObject*); 1660 void showTree(const blink::LayoutObject*);
1660 void showLineTree(const blink::LayoutObject*); 1661 void showLineTree(const blink::LayoutObject*);
1661 void showLayoutTree(const blink::LayoutObject* object1); 1662 void showLayoutTree(const blink::LayoutObject* object1);
1662 // We don't make object2 an optional parameter so that showLayoutTree 1663 // We don't make object2 an optional parameter so that showLayoutTree
1663 // can be called from gdb easily. 1664 // can be called from gdb easily.
1664 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1665 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1665 1666
1666 #endif 1667 #endif
1667 1668
1668 #endif // LayoutObject_h 1669 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698