OLD | NEW |
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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // The following six functions are used when the layout tree hierarchy chang
es to make sure layers get | 259 // The following six functions are used when the layout tree hierarchy chang
es to make sure layers get |
260 // properly added and removed. Since containership can be implemented by an
y subclass, and since a hierarchy | 260 // properly added and removed. Since containership can be implemented by an
y subclass, and since a hierarchy |
261 // can contain a mixture of boxes and other object types, these functions ne
ed to be in the base class. | 261 // can contain a mixture of boxes and other object types, these functions ne
ed to be in the base class. |
262 PaintLayer* enclosingLayer() const; | 262 PaintLayer* enclosingLayer() const; |
263 void addLayers(PaintLayer* parentLayer); | 263 void addLayers(PaintLayer* parentLayer); |
264 void removeLayers(PaintLayer* parentLayer); | 264 void removeLayers(PaintLayer* parentLayer); |
265 void moveLayers(PaintLayer* oldParent, PaintLayer* newParent); | 265 void moveLayers(PaintLayer* oldParent, PaintLayer* newParent); |
266 PaintLayer* findNextLayer(PaintLayer* parentLayer, LayoutObject* startPoint,
bool checkParent = true); | 266 PaintLayer* findNextLayer(PaintLayer* parentLayer, LayoutObject* startPoint,
bool checkParent = true); |
267 | 267 |
268 // Scrolling is a LayoutBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). | 268 // Scrolling is a LayoutBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). |
269 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded, ScrollType = ProgrammaticScroll); | 269 bool scrollRectToVisible( |
| 270 const LayoutRect&, |
| 271 const ScrollAlignment& alignX = ScrollAlignment::alignCenterIfNeeded, |
| 272 const ScrollAlignment& alignY = ScrollAlignment::alignCenterIfNeeded, |
| 273 ScrollType = ProgrammaticScroll, |
| 274 bool makeVisibleInVisualViewport = true); |
270 | 275 |
271 // Convenience function for getting to the nearest enclosing box of a Layout
Object. | 276 // Convenience function for getting to the nearest enclosing box of a Layout
Object. |
272 LayoutBox* enclosingBox() const; | 277 LayoutBox* enclosingBox() const; |
273 LayoutBoxModelObject* enclosingBoxModelObject() const; | 278 LayoutBoxModelObject* enclosingBoxModelObject() const; |
274 | 279 |
275 LayoutBox* enclosingScrollableBox() const; | 280 LayoutBox* enclosingScrollableBox() const; |
276 | 281 |
277 // Function to return our enclosing flow thread if we are contained inside o
ne. This | 282 // Function to return our enclosing flow thread if we are contained inside o
ne. This |
278 // function follows the containing block chain. | 283 // function follows the containing block chain. |
279 LayoutFlowThread* flowThreadContainingBlock() const | 284 LayoutFlowThread* flowThreadContainingBlock() const |
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2040 void showTree(const blink::LayoutObject*); | 2045 void showTree(const blink::LayoutObject*); |
2041 void showLineTree(const blink::LayoutObject*); | 2046 void showLineTree(const blink::LayoutObject*); |
2042 void showLayoutTree(const blink::LayoutObject* object1); | 2047 void showLayoutTree(const blink::LayoutObject* object1); |
2043 // We don't make object2 an optional parameter so that showLayoutTree | 2048 // We don't make object2 an optional parameter so that showLayoutTree |
2044 // can be called from gdb easily. | 2049 // can be called from gdb easily. |
2045 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2050 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
2046 | 2051 |
2047 #endif | 2052 #endif |
2048 | 2053 |
2049 #endif // LayoutObject_h | 2054 #endif // LayoutObject_h |
OLD | NEW |