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 3245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3256 DisableCompositingQueryAsserts disabler; | 3256 DisableCompositingQueryAsserts disabler; |
3257 const DeprecatedPaintLayer* paintInvalidationLayer = enclosingLayer->enclosi
ngLayerForPaintInvalidationCrossingFrameBoundaries(); | 3257 const DeprecatedPaintLayer* paintInvalidationLayer = enclosingLayer->enclosi
ngLayerForPaintInvalidationCrossingFrameBoundaries(); |
3258 if (!paintInvalidationLayer) | 3258 if (!paintInvalidationLayer) |
3259 return; | 3259 return; |
3260 | 3260 |
3261 class Functor : public LayoutObjectTraversalFunctor { | 3261 class Functor : public LayoutObjectTraversalFunctor { |
3262 public: | 3262 public: |
3263 explicit Functor(const LayoutBoxModelObject& paintInvalidationContainer)
: m_paintInvalidationContainer(paintInvalidationContainer) { } | 3263 explicit Functor(const LayoutBoxModelObject& paintInvalidationContainer)
: m_paintInvalidationContainer(paintInvalidationContainer) { } |
3264 void operator()(LayoutObject& object) const override | 3264 void operator()(LayoutObject& object) const override |
3265 { | 3265 { |
3266 m_paintInvalidationContainer.invalidateDisplayItemClientOnBacking(ob
ject); | 3266 object.invalidateDisplayItemClients(m_paintInvalidationContainer); |
3267 } | 3267 } |
3268 private: | 3268 private: |
3269 const LayoutBoxModelObject& m_paintInvalidationContainer; | 3269 const LayoutBoxModelObject& m_paintInvalidationContainer; |
3270 }; | 3270 }; |
3271 | 3271 |
3272 const LayoutBoxModelObject& paintInvalidationContainer = *paintInvalidationL
ayer->layoutObject(); | 3272 const LayoutBoxModelObject& paintInvalidationContainer = *paintInvalidationL
ayer->layoutObject(); |
3273 traverseNonCompositingDescendants(const_cast<LayoutObject&>(object), Functor
(paintInvalidationContainer)); | 3273 traverseNonCompositingDescendants(const_cast<LayoutObject&>(object), Functor
(paintInvalidationContainer)); |
3274 } | 3274 } |
3275 | 3275 |
3276 void LayoutObject::invalidatePaintIncludingNonCompositingDescendants() | 3276 void LayoutObject::invalidatePaintIncludingNonCompositingDescendants() |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3352 const blink::LayoutObject* root = object1; | 3352 const blink::LayoutObject* root = object1; |
3353 while (root->parent()) | 3353 while (root->parent()) |
3354 root = root->parent(); | 3354 root = root->parent(); |
3355 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3355 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3356 } else { | 3356 } else { |
3357 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3357 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3358 } | 3358 } |
3359 } | 3359 } |
3360 | 3360 |
3361 #endif | 3361 #endif |
OLD | NEW |