OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3240 void PaintLayer::SetNeedsRepaint() { | 3240 void PaintLayer::SetNeedsRepaint() { |
3241 SetNeedsRepaintInternal(); | 3241 SetNeedsRepaintInternal(); |
3242 | 3242 |
3243 // Do this unconditionally to ensure container chain is marked when | 3243 // Do this unconditionally to ensure container chain is marked when |
3244 // compositing status of the layer changes. | 3244 // compositing status of the layer changes. |
3245 MarkCompositingContainerChainForNeedsRepaint(); | 3245 MarkCompositingContainerChainForNeedsRepaint(); |
3246 } | 3246 } |
3247 | 3247 |
3248 void PaintLayer::SetNeedsRepaintInternal() { | 3248 void PaintLayer::SetNeedsRepaintInternal() { |
3249 needs_repaint_ = true; | 3249 needs_repaint_ = true; |
3250 SetDisplayItemsUncached(); // Invalidate as a display item client. | 3250 // Invalidate as a display item client. |
| 3251 SetDisplayItemsUncached(); |
3251 } | 3252 } |
3252 | 3253 |
3253 void PaintLayer::MarkCompositingContainerChainForNeedsRepaint() { | 3254 void PaintLayer::MarkCompositingContainerChainForNeedsRepaint() { |
3254 // Need to access compositingState(). We've ensured correct flag setting when | 3255 // Need to access compositingState(). We've ensured correct flag setting when |
3255 // compositingState() changes. | 3256 // compositingState() changes. |
3256 DisableCompositingQueryAsserts disabler; | 3257 DisableCompositingQueryAsserts disabler; |
3257 | 3258 |
3258 PaintLayer* layer = this; | 3259 PaintLayer* layer = this; |
3259 while (true) { | 3260 while (true) { |
3260 if (layer->GetCompositingState() == kPaintsIntoOwnBacking) | 3261 if (layer->GetCompositingState() == kPaintsIntoOwnBacking) |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3327 } | 3328 } |
3328 | 3329 |
3329 void showLayerTree(const blink::LayoutObject* layoutObject) { | 3330 void showLayerTree(const blink::LayoutObject* layoutObject) { |
3330 if (!layoutObject) { | 3331 if (!layoutObject) { |
3331 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; | 3332 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; |
3332 return; | 3333 return; |
3333 } | 3334 } |
3334 showLayerTree(layoutObject->EnclosingLayer()); | 3335 showLayerTree(layoutObject->EnclosingLayer()); |
3335 } | 3336 } |
3336 #endif | 3337 #endif |
OLD | NEW |