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

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

Issue 2072473003: Change CSS containment should invalidate layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 // LayoutBlocks are the one that handle laying out positioned elements, 957 // LayoutBlocks are the one that handle laying out positioned elements,
958 // thus this function is important during layout, to insert the positioned 958 // thus this function is important during layout, to insert the positioned
959 // elements into the correct LayoutBlock. 959 // elements into the correct LayoutBlock.
960 // 960 //
961 // See container() for the function that returns the containing block. 961 // See container() for the function that returns the containing block.
962 // See LayoutBlock.h for some extra explanations on containing blocks. 962 // See LayoutBlock.h for some extra explanations on containing blocks.
963 LayoutBlock* containingBlock() const; 963 LayoutBlock* containingBlock() const;
964 964
965 bool canContainAbsolutePositionObjects() const 965 bool canContainAbsolutePositionObjects() const
966 { 966 {
967 // Should keep in sync with LayoutBlock::styleWillChange().
967 return isPositioned() || canContainFixedPositionObjects(); 968 return isPositioned() || canContainFixedPositionObjects();
968 } 969 }
969 970
970 bool canContainFixedPositionObjects() const 971 bool canContainFixedPositionObjects() const
971 { 972 {
973 // Should keep in sync with LayoutBlock::styleWillChange().
972 return isLayoutView() || ((hasTransformRelatedProperty() || style()->con tainsPaint()) && isLayoutBlock()) || isSVGForeignObject(); 974 return isLayoutView() || ((hasTransformRelatedProperty() || style()->con tainsPaint()) && isLayoutBlock()) || isSVGForeignObject();
973 } 975 }
974 976
975 // Convert the given local point to absolute coordinates 977 // Convert the given local point to absolute coordinates
976 // FIXME: Temporary. If UseTransforms is true, take transforms into account. Eventually localToAbsolute() will always be transform-aware. 978 // FIXME: Temporary. If UseTransforms is true, take transforms into account. Eventually localToAbsolute() will always be transform-aware.
977 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC oordinatesFlags = 0) const; 979 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC oordinatesFlags = 0) const;
978 980
979 // If the LayoutBoxModelObject ancestor is non-null, the input point is in t he space of the ancestor. 981 // If the LayoutBoxModelObject ancestor is non-null, the input point is in t he space of the ancestor.
980 // Otherwise: 982 // Otherwise:
981 // If TraverseDocumentBoundaries is specified, the input point is in the s pace of the local root frame. 983 // If TraverseDocumentBoundaries is specified, the input point is in the s pace of the local root frame.
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2192 void showTree(const blink::LayoutObject*); 2194 void showTree(const blink::LayoutObject*);
2193 void showLineTree(const blink::LayoutObject*); 2195 void showLineTree(const blink::LayoutObject*);
2194 void showLayoutTree(const blink::LayoutObject* object1); 2196 void showLayoutTree(const blink::LayoutObject* object1);
2195 // We don't make object2 an optional parameter so that showLayoutTree 2197 // We don't make object2 an optional parameter so that showLayoutTree
2196 // can be called from gdb easily. 2198 // can be called from gdb easily.
2197 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2199 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2198 2200
2199 #endif 2201 #endif
2200 2202
2201 #endif // LayoutObject_h 2203 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698