Chromium Code Reviews| 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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1359 // not including children which will be invalidated normally during invalida teTreeIfNeeded() and | 1359 // not including children which will be invalidated normally during invalida teTreeIfNeeded() and |
| 1360 // parts which are invalidated separately (e.g. scrollbars). | 1360 // parts which are invalidated separately (e.g. scrollbars). |
| 1361 // The caller should ensure the painting layer has been setNeedsRepaint befo re calling this function. | 1361 // The caller should ensure the painting layer has been setNeedsRepaint befo re calling this function. |
| 1362 virtual void invalidateDisplayItemClients(PaintInvalidationReason) const; | 1362 virtual void invalidateDisplayItemClients(PaintInvalidationReason) const; |
| 1363 | 1363 |
| 1364 virtual bool hasNonCompositedScrollbars() const { return false; } | 1364 virtual bool hasNonCompositedScrollbars() const { return false; } |
| 1365 | 1365 |
| 1366 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child. | 1366 // Called before anonymousChild.setStyle(). Override to set custom styles fo r the child. |
| 1367 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { } | 1367 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C omputedStyle& style) const { } |
| 1368 | 1368 |
| 1369 // Fixed implementation for LayoutText, LayoutInline, LayoutTableCell and | |
|
skobes
2016/09/09 20:27:41
The comment should describe what the method does,
lunalu1
2016/09/12 14:45:13
Done.
| |
| 1370 // LayoutBox. | |
| 1371 virtual LayoutRect debugRect() const | |
| 1372 { | |
| 1373 // This method should never be reached as it's overriden by subclasses. | |
|
skobes
2016/09/09 20:27:41
Why not just make it pure virtual? Then the compi
lunalu1
2016/09/12 14:45:14
Then I have to write an overriding function for su
skobes
2016/09/12 17:09:35
If there are subclasses that don't override it, th
| |
| 1374 NOTREACHED(); | |
| 1375 LayoutRect r; | |
| 1376 return r; | |
| 1377 } | |
| 1378 | |
| 1369 // Painters can use const methods only, except for these explicitly declared methods. | 1379 // Painters can use const methods only, except for these explicitly declared methods. |
| 1370 class MutableForPainting { | 1380 class MutableForPainting { |
| 1371 public: | 1381 public: |
| 1372 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb ject.setPreviousPaintOffset(paintOffset); } | 1382 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb ject.setPreviousPaintOffset(paintOffset); } |
| 1373 void clearPaintInvalidationFlags() { m_layoutObject.clearPaintInvalidati onFlags(); } | 1383 void clearPaintInvalidationFlags() { m_layoutObject.clearPaintInvalidati onFlags(); } |
| 1374 void setShouldDoFullPaintInvalidation(PaintInvalidationReason reason) { m_layoutObject.setShouldDoFullPaintInvalidation(reason); } | 1384 void setShouldDoFullPaintInvalidation(PaintInvalidationReason reason) { m_layoutObject.setShouldDoFullPaintInvalidation(reason); } |
| 1375 void ensureIsReadyForPaintInvalidation() { m_layoutObject.ensureIsReadyF orPaintInvalidation(); } | 1385 void ensureIsReadyForPaintInvalidation() { m_layoutObject.ensureIsReadyF orPaintInvalidation(); } |
| 1376 | 1386 |
| 1377 void setPreviousPaintInvalidationRect(const LayoutRect& r) { m_layoutObj ect.setPreviousPaintInvalidationRect(r); } | 1387 void setPreviousPaintInvalidationRect(const LayoutRect& r) { m_layoutObj ect.setPreviousPaintInvalidationRect(r); } |
| 1378 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& p) { m_layoutObject.setPreviousPositionFromPaintInvalidationBacking(p); } | 1388 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& p) { m_layoutObject.setPreviousPositionFromPaintInvalidationBacking(p); } |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2138 void showTree(const blink::LayoutObject*); | 2148 void showTree(const blink::LayoutObject*); |
| 2139 void showLineTree(const blink::LayoutObject*); | 2149 void showLineTree(const blink::LayoutObject*); |
| 2140 void showLayoutTree(const blink::LayoutObject* object1); | 2150 void showLayoutTree(const blink::LayoutObject* object1); |
| 2141 // We don't make object2 an optional parameter so that showLayoutTree | 2151 // We don't make object2 an optional parameter so that showLayoutTree |
| 2142 // can be called from gdb easily. | 2152 // can be called from gdb easily. |
| 2143 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); | 2153 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); |
| 2144 | 2154 |
| 2145 #endif | 2155 #endif |
| 2146 | 2156 |
| 2147 #endif // LayoutObject_h | 2157 #endif // LayoutObject_h |
| OLD | NEW |