| 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 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 void invalidateDisplayItemClient(const DisplayItemClient&) const; | 1379 void invalidateDisplayItemClient(const DisplayItemClient&) const; |
| 1380 void invalidateDisplayItemClientsIncludingNonCompositingDescendants(const La
youtBoxModelObject* paintInvalidationContainer, PaintInvalidationReason) const; | 1380 void invalidateDisplayItemClientsIncludingNonCompositingDescendants(const La
youtBoxModelObject* paintInvalidationContainer, PaintInvalidationReason) const; |
| 1381 | 1381 |
| 1382 // Called before anonymousChild.setStyle(). Override to set custom styles fo
r the child. | 1382 // Called before anonymousChild.setStyle(). Override to set custom styles fo
r the child. |
| 1383 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C
omputedStyle& style) const { } | 1383 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C
omputedStyle& style) const { } |
| 1384 | 1384 |
| 1385 // Painters can use const methods only, except for these explicitly declared
methods. | 1385 // Painters can use const methods only, except for these explicitly declared
methods. |
| 1386 class MutableForPainting { | 1386 class MutableForPainting { |
| 1387 public: | 1387 public: |
| 1388 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb
ject.setPreviousPaintOffset(paintOffset); } | 1388 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb
ject.setPreviousPaintOffset(paintOffset); } |
| 1389 ObjectPaintProperties& ensureObjectPaintProperties() { return m_layoutOb
ject.ensureObjectPaintProperties(); } |
| 1390 void clearObjectPaintProperties() { m_layoutObject.clearObjectPaintPrope
rties(); } |
| 1389 | 1391 |
| 1390 private: | 1392 private: |
| 1391 friend class LayoutObject; | 1393 friend class LayoutObject; |
| 1392 MutableForPainting(const LayoutObject& layoutObject) : m_layoutObject(co
nst_cast<LayoutObject&>(layoutObject)) { } | 1394 MutableForPainting(const LayoutObject& layoutObject) : m_layoutObject(co
nst_cast<LayoutObject&>(layoutObject)) { } |
| 1393 | 1395 |
| 1394 LayoutObject& m_layoutObject; | 1396 LayoutObject& m_layoutObject; |
| 1395 }; | 1397 }; |
| 1396 MutableForPainting getMutableForPainting() const { return MutableForPainting
(*this); } | 1398 MutableForPainting getMutableForPainting() const { return MutableForPainting
(*this); } |
| 1397 | 1399 |
| 1398 void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true);
} | 1400 void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true);
} |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2181 void showTree(const blink::LayoutObject*); | 2183 void showTree(const blink::LayoutObject*); |
| 2182 void showLineTree(const blink::LayoutObject*); | 2184 void showLineTree(const blink::LayoutObject*); |
| 2183 void showLayoutTree(const blink::LayoutObject* object1); | 2185 void showLayoutTree(const blink::LayoutObject* object1); |
| 2184 // We don't make object2 an optional parameter so that showLayoutTree | 2186 // We don't make object2 an optional parameter so that showLayoutTree |
| 2185 // can be called from gdb easily. | 2187 // can be called from gdb easily. |
| 2186 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2188 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2187 | 2189 |
| 2188 #endif | 2190 #endif |
| 2189 | 2191 |
| 2190 #endif // LayoutObject_h | 2192 #endif // LayoutObject_h |
| OLD | NEW |