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 3377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3388 return false; | 3388 return false; |
3389 } | 3389 } |
3390 | 3390 |
3391 bool RenderObject::isRelayoutBoundaryForInspector() const | 3391 bool RenderObject::isRelayoutBoundaryForInspector() const |
3392 { | 3392 { |
3393 return objectIsRelayoutBoundary(this); | 3393 return objectIsRelayoutBoundary(this); |
3394 } | 3394 } |
3395 | 3395 |
3396 void RenderObject::clearPaintInvalidationState() | 3396 void RenderObject::clearPaintInvalidationState() |
3397 { | 3397 { |
3398 // paintInvalidationStateIsDirty should be kept in sync with the | |
3399 // booleans that are cleared below. | |
3400 ASSERT(paintInvalidationStateIsDirty()); | |
dsinclair
2014/07/11 20:48:55
Is this needed? We're basically checking that we n
Julien - ping for review
2014/07/11 20:52:46
It's here for 2 reasons:
- Ensure that clearPaintI
| |
3401 | |
3398 setShouldDoFullPaintInvalidationAfterLayout(false); | 3402 setShouldDoFullPaintInvalidationAfterLayout(false); |
3399 setShouldDoFullPaintInvalidationIfSelfPaintingLayer(false); | 3403 setShouldDoFullPaintInvalidationIfSelfPaintingLayer(false); |
3400 setOnlyNeededPositionedMovementLayout(false); | 3404 setOnlyNeededPositionedMovementLayout(false); |
3401 setNeededLayoutBecauseOfChildren(false); | 3405 setNeededLayoutBecauseOfChildren(false); |
3402 setShouldInvalidateOverflowForPaint(false); | 3406 setShouldInvalidateOverflowForPaint(false); |
3403 setLayoutDidGetCalled(false); | 3407 setLayoutDidGetCalled(false); |
3404 setMayNeedPaintInvalidation(false); | 3408 setMayNeedPaintInvalidation(false); |
3405 } | 3409 } |
3406 | 3410 |
3407 bool RenderObject::isAllowedToModifyRenderTreeStructure(Document& document) | 3411 bool RenderObject::isAllowedToModifyRenderTreeStructure(Document& document) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3445 { | 3449 { |
3446 if (object1) { | 3450 if (object1) { |
3447 const WebCore::RenderObject* root = object1; | 3451 const WebCore::RenderObject* root = object1; |
3448 while (root->parent()) | 3452 while (root->parent()) |
3449 root = root->parent(); | 3453 root = root->parent(); |
3450 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3454 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3451 } | 3455 } |
3452 } | 3456 } |
3453 | 3457 |
3454 #endif | 3458 #endif |
OLD | NEW |