Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: sky/engine/core/rendering/RenderObjectChildList.cpp

Issue 840483004: Get rid of the *AndFullPaintInvalidation methods. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderParagraph.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 toRenderBox(oldChild)->removeFloatingOrPositionedChildFromBlockLists(); 52 toRenderBox(oldChild)->removeFloatingOrPositionedChildFromBlockLists();
53 53
54 { 54 {
55 // FIXME: We should not be allowing paint invalidation during layout. cr bug.com/336250 55 // FIXME: We should not be allowing paint invalidation during layout. cr bug.com/336250
56 AllowPaintInvalidationScope scoper(owner->frameView()); 56 AllowPaintInvalidationScope scoper(owner->frameView());
57 57
58 // So that we'll get the appropriate dirty bit set (either that a normal flow child got yanked or 58 // So that we'll get the appropriate dirty bit set (either that a normal flow child got yanked or
59 // that a positioned child got yanked). We also issue paint invalidation s, so that the area exposed when the child 59 // that a positioned child got yanked). We also issue paint invalidation s, so that the area exposed when the child
60 // disappears gets paint invalidated properly. 60 // disappears gets paint invalidated properly.
61 if (!owner->documentBeingDestroyed() && notifyRenderer && oldChild->ever HadLayout()) 61 if (!owner->documentBeingDestroyed() && notifyRenderer && oldChild->ever HadLayout())
62 oldChild->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( ); 62 oldChild->setNeedsLayoutAndPrefWidthsRecalc();
63 } 63 }
64 64
65 // If we have a line box wrapper, delete it. 65 // If we have a line box wrapper, delete it.
66 if (oldChild->isBox()) 66 if (oldChild->isBox())
67 toRenderBox(oldChild)->deleteLineBoxWrapper(); 67 toRenderBox(oldChild)->deleteLineBoxWrapper();
68 68
69 // If oldChild is the start or end of the selection, then clear the selectio n to 69 // If oldChild is the start or end of the selection, then clear the selectio n to
70 // avoid problems of invalid pointers. 70 // avoid problems of invalid pointers.
71 // FIXME: The FrameSelection should be responsible for this when it 71 // FIXME: The FrameSelection should be responsible for this when it
72 // is notified of DOM mutations. 72 // is notified of DOM mutations.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } else { 127 } else {
128 if (lastChild()) 128 if (lastChild())
129 lastChild()->setNextSibling(newChild); 129 lastChild()->setNextSibling(newChild);
130 newChild->setPreviousSibling(lastChild()); 130 newChild->setPreviousSibling(lastChild());
131 setLastChild(newChild); 131 setLastChild(newChild);
132 } 132 }
133 133
134 if (!owner->documentBeingDestroyed() && notifyRenderer) 134 if (!owner->documentBeingDestroyed() && notifyRenderer)
135 newChild->insertedIntoTree(); 135 newChild->insertedIntoTree();
136 136
137 newChild->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); 137 newChild->setNeedsLayoutAndPrefWidthsRecalc();
138 if (!owner->normalChildNeedsLayout()) 138 if (!owner->normalChildNeedsLayout())
139 owner->setChildNeedsLayout(); // We may supply the static position for a n absolute positioned child. 139 owner->setChildNeedsLayout(); // We may supply the static position for a n absolute positioned child.
140 } 140 }
141 141
142 } // namespace blink 142 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderParagraph.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698