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

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

Issue 1161863004: Change Layout::adjustCompositedContainerForSpecialAncestors into an overloaded version of container… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/core/layout/LayoutObject.h » ('j') | Source/core/layout/LayoutObject.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 304 }
305 305
306 void LayoutBoxModelObject::invalidateTreeIfNeeded(PaintInvalidationState& paintI nvalidationState) 306 void LayoutBoxModelObject::invalidateTreeIfNeeded(PaintInvalidationState& paintI nvalidationState)
307 { 307 {
308 ASSERT(!needsLayout()); 308 ASSERT(!needsLayout());
309 309
310 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) 310 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
311 return; 311 return;
312 312
313 bool establishesNewPaintInvalidationContainer = isPaintInvalidationContainer (); 313 bool establishesNewPaintInvalidationContainer = isPaintInvalidationContainer ();
314 const LayoutBoxModelObject& newPaintInvalidationContainer = *adjustComposite dContainerForSpecialAncestors(establishesNewPaintInvalidationContainer ? this : &paintInvalidationState.paintInvalidationContainer()); 314 const LayoutBoxModelObject& newPaintInvalidationContainer = *containerForPai ntInvalidation(establishesNewPaintInvalidationContainer ? this : &paintInvalidat ionState.paintInvalidationContainer());
315 // FIXME: This assert should be re-enabled when we move paint invalidation t o after compositing update. crbug.com/360286 315 // FIXME: This assert should be re-enabled when we move paint invalidation t o after compositing update. crbug.com/360286
316 // ASSERT(&newPaintInvalidationContainer == containerForPaintInvalidation()) ; 316 // ASSERT(&newPaintInvalidationContainer == containerForPaintInvalidation()) ;
317 317
318 PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationSt ate, newPaintInvalidationContainer); 318 PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationSt ate, newPaintInvalidationContainer);
319 clearPaintInvalidationState(paintInvalidationState); 319 clearPaintInvalidationState(paintInvalidationState);
320 320
321 if (reason == PaintInvalidationDelayedFull) 321 if (reason == PaintInvalidationDelayedFull)
322 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this); 322 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this);
323 323
324 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new PaintInvalidationContainer); 324 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new PaintInvalidationContainer);
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); 938 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent());
939 for (LayoutObject* child = startChild; child && child != endChild; ) { 939 for (LayoutObject* child = startChild; child && child != endChild; ) {
940 // Save our next sibling as moveChildTo will clear it. 940 // Save our next sibling as moveChildTo will clear it.
941 LayoutObject* nextSibling = child->nextSibling(); 941 LayoutObject* nextSibling = child->nextSibling();
942 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); 942 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert);
943 child = nextSibling; 943 child = nextSibling;
944 } 944 }
945 } 945 }
946 946
947 } // namespace blink 947 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutObject.h » ('j') | Source/core/layout/LayoutObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698