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

Side by Side Diff: Source/core/layout/LayoutBoxModelObject.cpp

Issue 1331053002: Propagate resource-triggered repaints to text node children of <text> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Name/comment updates. Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // ASSERT(&newPaintInvalidationContainer == containerForPaintInvalidation()) ; 337 // ASSERT(&newPaintInvalidationContainer == containerForPaintInvalidation()) ;
338 338
339 PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationSt ate, newPaintInvalidationContainer); 339 PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationSt ate, newPaintInvalidationContainer);
340 clearPaintInvalidationState(paintInvalidationState); 340 clearPaintInvalidationState(paintInvalidationState);
341 341
342 if (reason == PaintInvalidationDelayedFull) 342 if (reason == PaintInvalidationDelayedFull)
343 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this); 343 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this);
344 344
345 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new PaintInvalidationContainer); 345 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new PaintInvalidationContainer);
346 if (reason == PaintInvalidationLocationChange) 346 if (reason == PaintInvalidationLocationChange)
347 childTreeWalkState.setAncestorHadPaintInvalidationForLocationChange(); 347 childTreeWalkState.setForceSubtreeInvalidationWithinContainer();
348 invalidatePaintOfSubtreesIfNeeded(childTreeWalkState); 348 invalidatePaintOfSubtreesIfNeeded(childTreeWalkState);
349 } 349 }
350 350
351 void LayoutBoxModelObject::setBackingNeedsPaintInvalidationInRect(const LayoutRe ct& r, PaintInvalidationReason invalidationReason) const 351 void LayoutBoxModelObject::setBackingNeedsPaintInvalidationInRect(const LayoutRe ct& r, PaintInvalidationReason invalidationReason) const
352 { 352 {
353 // https://bugs.webkit.org/show_bug.cgi?id=61159 describes an unreproducible crash here, 353 // https://bugs.webkit.org/show_bug.cgi?id=61159 describes an unreproducible crash here,
354 // so assert but check that the layer is composited. 354 // so assert but check that the layer is composited.
355 ASSERT(compositingState() != NotComposited); 355 ASSERT(compositingState() != NotComposited);
356 356
357 // FIXME: generalize accessors to backing GraphicsLayers so that this code i s squashing-agnostic. 357 // FIXME: generalize accessors to backing GraphicsLayers so that this code i s squashing-agnostic.
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 if (rootElementStyle->hasBackground()) 1015 if (rootElementStyle->hasBackground())
1016 return false; 1016 return false;
1017 1017
1018 if (node() != document().firstBodyElement()) 1018 if (node() != document().firstBodyElement())
1019 return false; 1019 return false;
1020 1020
1021 return true; 1021 return true;
1022 } 1022 }
1023 1023
1024 } // namespace blink 1024 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/svg/repaint/tspan-pattern-update-expected.txt ('k') | Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698