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 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 // not including children which will be invalidated normally during invalida
teTreeIfNeeded() and | 1358 // not including children which will be invalidated normally during invalida
teTreeIfNeeded() and |
1359 // parts which are invalidated separately (e.g. scrollbars). | 1359 // parts which are invalidated separately (e.g. scrollbars). |
1360 // The caller should ensure the painting layer has been setNeedsRepaint befo
re calling this function. | 1360 // The caller should ensure the painting layer has been setNeedsRepaint befo
re calling this function. |
1361 virtual void invalidateDisplayItemClients(PaintInvalidationReason) const; | 1361 virtual void invalidateDisplayItemClients(PaintInvalidationReason) const; |
1362 | 1362 |
1363 virtual bool hasNonCompositedScrollbars() const { return false; } | 1363 virtual bool hasNonCompositedScrollbars() const { return false; } |
1364 | 1364 |
1365 // Called before anonymousChild.setStyle(). Override to set custom styles fo
r the child. | 1365 // Called before anonymousChild.setStyle(). Override to set custom styles fo
r the child. |
1366 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C
omputedStyle& style) const { } | 1366 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C
omputedStyle& style) const { } |
1367 | 1367 |
| 1368 // Fixed implementation for LayoutText, LayoutInline, LayoutTableCell and |
| 1369 // LayoutBox. |
| 1370 virtual LayoutRect debugRect() const |
| 1371 { |
| 1372 // This method should never be reached as it's overriden by subclasses. |
| 1373 NOTREACHED(); |
| 1374 LayoutRect r; |
| 1375 return r; |
| 1376 } |
| 1377 |
| 1378 // Called within debugRect(), shared across LayoutText, LayoutInline, |
| 1379 // LayoutTable Cell and LayoutBox. |
| 1380 void setLayoutRectDimForLayoutView(LayoutRect&) const; |
| 1381 |
1368 // Painters can use const methods only, except for these explicitly declared
methods. | 1382 // Painters can use const methods only, except for these explicitly declared
methods. |
1369 class MutableForPainting { | 1383 class MutableForPainting { |
1370 public: | 1384 public: |
1371 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb
ject.setPreviousPaintOffset(paintOffset); } | 1385 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb
ject.setPreviousPaintOffset(paintOffset); } |
1372 void clearPaintInvalidationFlags() { m_layoutObject.clearPaintInvalidati
onFlags(); } | 1386 void clearPaintInvalidationFlags() { m_layoutObject.clearPaintInvalidati
onFlags(); } |
1373 void setShouldDoFullPaintInvalidation(PaintInvalidationReason reason) {
m_layoutObject.setShouldDoFullPaintInvalidation(reason); } | 1387 void setShouldDoFullPaintInvalidation(PaintInvalidationReason reason) {
m_layoutObject.setShouldDoFullPaintInvalidation(reason); } |
1374 void ensureIsReadyForPaintInvalidation() { m_layoutObject.ensureIsReadyF
orPaintInvalidation(); } | 1388 void ensureIsReadyForPaintInvalidation() { m_layoutObject.ensureIsReadyF
orPaintInvalidation(); } |
1375 | 1389 |
1376 void setPreviousPaintInvalidationRect(const LayoutRect& r) { m_layoutObj
ect.setPreviousPaintInvalidationRect(r); } | 1390 void setPreviousPaintInvalidationRect(const LayoutRect& r) { m_layoutObj
ect.setPreviousPaintInvalidationRect(r); } |
1377 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint&
p) { m_layoutObject.setPreviousPositionFromPaintInvalidationBacking(p); } | 1391 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint&
p) { m_layoutObject.setPreviousPositionFromPaintInvalidationBacking(p); } |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2133 void showTree(const blink::LayoutObject*); | 2147 void showTree(const blink::LayoutObject*); |
2134 void showLineTree(const blink::LayoutObject*); | 2148 void showLineTree(const blink::LayoutObject*); |
2135 void showLayoutTree(const blink::LayoutObject* object1); | 2149 void showLayoutTree(const blink::LayoutObject* object1); |
2136 // We don't make object2 an optional parameter so that showLayoutTree | 2150 // We don't make object2 an optional parameter so that showLayoutTree |
2137 // can be called from gdb easily. | 2151 // can be called from gdb easily. |
2138 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2152 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
2139 | 2153 |
2140 #endif | 2154 #endif |
2141 | 2155 |
2142 #endif // LayoutObject_h | 2156 #endif // LayoutObject_h |
OLD | NEW |