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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 return mayNeedPaintInvalidation() || shouldDoFullPaintInvalidation() ||
shouldInvalidateSelection() || m_bitfields.childShouldCheckForPaintInvalidation(
); | 1293 return mayNeedPaintInvalidation() || shouldDoFullPaintInvalidation() ||
shouldInvalidateSelection() || m_bitfields.childShouldCheckForPaintInvalidation(
); |
1294 } | 1294 } |
1295 | 1295 |
1296 virtual bool supportsPaintInvalidationStateCachedOffsets() const { return !h
asTransformRelatedProperty() && !hasReflection() && !style()->isFlippedBlocksWri
tingMode(); } | 1296 virtual bool supportsPaintInvalidationStateCachedOffsets() const { return !h
asTransformRelatedProperty() && !hasReflection() && !style()->isFlippedBlocksWri
tingMode(); } |
1297 | 1297 |
1298 virtual LayoutRect viewRect() const; | 1298 virtual LayoutRect viewRect() const; |
1299 | 1299 |
1300 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 1300 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } |
1301 | 1301 |
1302 void invalidateDisplayItemClient(const DisplayItemClientWrapper&) const; | 1302 void invalidateDisplayItemClient(const DisplayItemClientWrapper&) const; |
1303 void invalidateDisplayItemClientsIncludingNonCompositingDescendants(const La
youtBoxModelObject* paintInvalidationContainer, PaintInvalidationReason, const L
ayoutRect* paintInvalidationRect) const; | 1303 void invalidateDisplayItemClientForNonCompositingDescendants() const { inval
idateDisplayItemClientForNonCompositingDescendantsOf(*this); } |
| 1304 // A normal object should use invalidateDisplayItemClientForNonCompositingDe
scendants() |
| 1305 // to invalidate its descendants which are painted on the same backing. Howe
ver, for |
| 1306 // an object (e.g. LayoutScrollbarPart, custom scroll corner, custom resizer
) which is |
| 1307 // not hooked up in the layout tree and not able to find its paint backing,
it should |
| 1308 // let its owning layout object call the following function. |
| 1309 // FIXME: should we hook up scrollbar parts in the layout tree? crbug.com/48
4263. |
| 1310 void invalidateDisplayItemClientForNonCompositingDescendantsOf(const LayoutO
bject&) const; |
1304 | 1311 |
1305 // Called before anonymousChild.setStyle(). Override to set custom styles fo
r the child. | 1312 // Called before anonymousChild.setStyle(). Override to set custom styles fo
r the child. |
1306 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C
omputedStyle& style) const { } | 1313 virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, C
omputedStyle& style) const { } |
1307 | 1314 |
1308 // Painters can use const methods only, except for these explicitly declared
methods. | 1315 // Painters can use const methods only, except for these explicitly declared
methods. |
1309 class MutableForPainting { | 1316 class MutableForPainting { |
1310 public: | 1317 public: |
1311 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb
ject.setPreviousPaintOffset(paintOffset); } | 1318 void setPreviousPaintOffset(const LayoutPoint& paintOffset) { m_layoutOb
ject.setPreviousPaintOffset(paintOffset); } |
1312 | 1319 |
1313 private: | 1320 private: |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2040 void showTree(const blink::LayoutObject*); | 2047 void showTree(const blink::LayoutObject*); |
2041 void showLineTree(const blink::LayoutObject*); | 2048 void showLineTree(const blink::LayoutObject*); |
2042 void showLayoutTree(const blink::LayoutObject* object1); | 2049 void showLayoutTree(const blink::LayoutObject* object1); |
2043 // We don't make object2 an optional parameter so that showLayoutTree | 2050 // We don't make object2 an optional parameter so that showLayoutTree |
2044 // can be called from gdb easily. | 2051 // can be called from gdb easily. |
2045 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2052 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
2046 | 2053 |
2047 #endif | 2054 #endif |
2048 | 2055 |
2049 #endif // LayoutObject_h | 2056 #endif // LayoutObject_h |
OLD | NEW |