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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp

Issue 2894573005: Check Null view in LayoutObjectChildList::InvalidatePaintOnRemoval() (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 if (!owner->DocumentBeingDestroyed()) 194 if (!owner->DocumentBeingDestroyed())
195 owner->NotifyOfSubtreeChange(); 195 owner->NotifyOfSubtreeChange();
196 196
197 if (AXObjectCache* cache = owner->GetDocument().AxObjectCache()) 197 if (AXObjectCache* cache = owner->GetDocument().AxObjectCache())
198 cache->ChildrenChanged(owner); 198 cache->ChildrenChanged(owner);
199 } 199 }
200 200
201 void LayoutObjectChildList::InvalidatePaintOnRemoval(LayoutObject& old_child) { 201 void LayoutObjectChildList::InvalidatePaintOnRemoval(LayoutObject& old_child) {
202 if (!old_child.IsRooted()) 202 if (!old_child.IsRooted())
203 return; 203 return;
204 if (old_child.IsBody()) 204 if (old_child.IsBody() && old_child.View())
205 old_child.View()->SetShouldDoFullPaintInvalidation(); 205 old_child.View()->SetShouldDoFullPaintInvalidation();
206 ObjectPaintInvalidator paint_invalidator(old_child); 206 ObjectPaintInvalidator paint_invalidator(old_child);
207 paint_invalidator.SlowSetPaintingLayerNeedsRepaint(); 207 paint_invalidator.SlowSetPaintingLayerNeedsRepaint();
208 paint_invalidator.InvalidatePaintOfPreviousVisualRect( 208 paint_invalidator.InvalidatePaintOfPreviousVisualRect(
209 old_child.ContainerForPaintInvalidation(), 209 old_child.ContainerForPaintInvalidation(),
210 PaintInvalidationReason::kDisappeared); 210 PaintInvalidationReason::kDisappeared);
211 } 211 }
212 212
213 } // namespace blink 213 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698