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

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

Issue 1011393003: [S.P.] Invalidate the document element for view background when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another NeedsRebaseline Created 5 years, 9 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 | « Source/core/layout/LayoutObject.h ('k') | 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) 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 // SVG renderers need to be invalidated when their children are laid out. 620 // SVG renderers need to be invalidated when their children are laid out.
621 // LayoutBlocks with line boxes are responsible to invalidate them so we can 't ignore them. 621 // LayoutBlocks with line boxes are responsible to invalidate them so we can 't ignore them.
622 if (isSVG() || (isLayoutBlockFlow() && toLayoutBlockFlow(this)->firstLineBox ())) 622 if (isSVG() || (isLayoutBlockFlow() && toLayoutBlockFlow(this)->firstLineBox ()))
623 return false; 623 return false;
624 624
625 // In case scrollbars got repositioned (which will typically happen if the l ayout object got 625 // In case scrollbars got repositioned (which will typically happen if the l ayout object got
626 // resized), we cannot skip invalidation. 626 // resized), we cannot skip invalidation.
627 if (hasNonCompositedScrollbars()) 627 if (hasNonCompositedScrollbars())
628 return false; 628 return false;
629 629
630 return rendererHasNoBoxEffect(); 630 if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isDocumentElement())
631 return !hasBoxEffect();
632
633 return rendererHasNoBoxEffectObsolete();
631 } 634 }
632 635
633 LayoutBlock* LayoutObject::firstLineBlock() const 636 LayoutBlock* LayoutObject::firstLineBlock() const
634 { 637 {
635 return 0; 638 return 0;
636 } 639 }
637 640
638 static inline bool objectIsRelayoutBoundary(const LayoutObject* object) 641 static inline bool objectIsRelayoutBoundary(const LayoutObject* object)
639 { 642 {
640 // FIXME: In future it may be possible to broaden these conditions in order to improve performance. 643 // FIXME: In future it may be possible to broaden these conditions in order to improve performance.
(...skipping 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 { 3226 {
3224 if (object1) { 3227 if (object1) {
3225 const blink::LayoutObject* root = object1; 3228 const blink::LayoutObject* root = object1;
3226 while (root->parent()) 3229 while (root->parent())
3227 root = root->parent(); 3230 root = root->parent();
3228 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3231 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3229 } 3232 }
3230 } 3233 }
3231 3234
3232 #endif 3235 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698