OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 DisableCompositingQueryAsserts disabler; | 1184 DisableCompositingQueryAsserts disabler; |
1185 if (const DeprecatedPaintLayer* paintInvalidationLayer = enclosingLayer-
>enclosingLayerForPaintInvalidationCrossingFrameBoundaries()) | 1185 if (const DeprecatedPaintLayer* paintInvalidationLayer = enclosingLayer-
>enclosingLayerForPaintInvalidationCrossingFrameBoundaries()) |
1186 paintInvalidationLayer->layoutObject()->invalidateDisplayItemClientO
nBacking(displayItemClient); | 1186 paintInvalidationLayer->layoutObject()->invalidateDisplayItemClientO
nBacking(displayItemClient); |
1187 } | 1187 } |
1188 } | 1188 } |
1189 | 1189 |
1190 void LayoutObject::invalidateDisplayItemClients(const LayoutBoxModelObject& pain
tInvalidationContainer) const | 1190 void LayoutObject::invalidateDisplayItemClients(const LayoutBoxModelObject& pain
tInvalidationContainer) const |
1191 { | 1191 { |
1192 ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled()); | 1192 ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled()); |
1193 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*this); | 1193 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*this); |
| 1194 |
| 1195 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| 1196 enclosingLayer()->setNeedsRepaint(); |
1194 } | 1197 } |
1195 | 1198 |
1196 LayoutRect LayoutObject::boundsRectForPaintInvalidation(const LayoutBoxModelObje
ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS
tate) const | 1199 LayoutRect LayoutObject::boundsRectForPaintInvalidation(const LayoutBoxModelObje
ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS
tate) const |
1197 { | 1200 { |
1198 if (!paintInvalidationContainer) | 1201 if (!paintInvalidationContainer) |
1199 return computePaintInvalidationRect(paintInvalidationContainer, paintInv
alidationState); | 1202 return computePaintInvalidationRect(paintInvalidationContainer, paintInv
alidationState); |
1200 return DeprecatedPaintLayer::computePaintInvalidationRect(this, paintInvalid
ationContainer->layer(), paintInvalidationState); | 1203 return DeprecatedPaintLayer::computePaintInvalidationRect(this, paintInvalid
ationContainer->layer(), paintInvalidationState); |
1201 } | 1204 } |
1202 | 1205 |
1203 const LayoutBoxModelObject* LayoutObject::invalidatePaintRectangleInternal(const
LayoutRect& r) const | 1206 const LayoutBoxModelObject* LayoutObject::invalidatePaintRectangleInternal(const
LayoutRect& r) const |
(...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3409 const blink::LayoutObject* root = object1; | 3412 const blink::LayoutObject* root = object1; |
3410 while (root->parent()) | 3413 while (root->parent()) |
3411 root = root->parent(); | 3414 root = root->parent(); |
3412 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3415 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3413 } else { | 3416 } else { |
3414 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3417 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3415 } | 3418 } |
3416 } | 3419 } |
3417 | 3420 |
3418 #endif | 3421 #endif |
OLD | NEW |