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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.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) 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. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 TransformationMatrix localToAncestorTransform( 1242 TransformationMatrix localToAncestorTransform(
1243 const LayoutBoxModelObject* ancestor, 1243 const LayoutBoxModelObject* ancestor,
1244 MapCoordinatesFlags = 0) const; 1244 MapCoordinatesFlags = 0) const;
1245 TransformationMatrix localToAbsoluteTransform( 1245 TransformationMatrix localToAbsoluteTransform(
1246 MapCoordinatesFlags mode = 0) const { 1246 MapCoordinatesFlags mode = 0) const {
1247 return localToAncestorTransform(nullptr, mode); 1247 return localToAncestorTransform(nullptr, mode);
1248 } 1248 }
1249 1249
1250 // Return the offset from the container() layoutObject (excluding transforms 1250 // Return the offset from the container() layoutObject (excluding transforms
1251 // and multicol). 1251 // and multicol).
1252 virtual LayoutSize offsetFromContainer(const LayoutObject*) const; 1252 virtual LayoutSize offsetFromContainer(const LayoutObject*,
1253 bool ignoreSticky = false) const;
1253 // Return the offset from an object up the container() chain. Asserts that 1254 // Return the offset from an object up the container() chain. Asserts that
1254 // none of the intermediate objects have transforms. 1255 // none of the intermediate objects have transforms.
1255 LayoutSize offsetFromAncestorContainer(const LayoutObject*) const; 1256 LayoutSize offsetFromAncestorContainer(const LayoutObject*) const;
1256 1257
1257 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint&) const {} 1258 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint&) const {}
1258 1259
1259 FloatRect absoluteBoundingBoxFloatRect() const; 1260 FloatRect absoluteBoundingBoxFloatRect() const;
1260 // This returns an IntRect enclosing this object. If this object has an 1261 // This returns an IntRect enclosing this object. If this object has an
1261 // integral size and the position has fractional values, the resultant 1262 // integral size and the position has fractional values, the resultant
1262 // IntRect can be larger than the integral size. 1263 // IntRect can be larger than the integral size.
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2715 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2715 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2716 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2716 // We don't make object2 an optional parameter so that showLayoutTree 2717 // We don't make object2 an optional parameter so that showLayoutTree
2717 // can be called from gdb easily. 2718 // can be called from gdb easily.
2718 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2719 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2719 const blink::LayoutObject* object2); 2720 const blink::LayoutObject* object2);
2720 2721
2721 #endif 2722 #endif
2722 2723
2723 #endif // LayoutObject_h 2724 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698