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

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

Issue 2334113002: Let slimmingPaintInvalidation plumbing work for spv1 (Closed)
Patch Set: - Created 4 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
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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 if (translate->dependsOnBoxSize()) 437 if (translate->dependsOnBoxSize())
438 return true; 438 return true;
439 } 439 }
440 return style.transform().dependsOnBoxSize() 440 return style.transform().dependsOnBoxSize()
441 || (style.transformOriginX() != Length(50, Percent) && style.transformOr iginX().isPercentOrCalc()) 441 || (style.transformOriginX() != Length(50, Percent) && style.transformOr iginX().isPercentOrCalc())
442 || (style.transformOriginY() != Length(50, Percent) && style.transformOr iginY().isPercentOrCalc()); 442 || (style.transformOriginY() != Length(50, Percent) && style.transformOr iginY().isPercentOrCalc());
443 } 443 }
444 444
445 void LayoutBoxModelObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInvalidationState) 445 void LayoutBoxModelObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInvalidationState)
446 { 446 {
447 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
447 ensureIsReadyForPaintInvalidation(); 448 ensureIsReadyForPaintInvalidation();
448 449
449 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th is); 450 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th is);
450 if (!shouldCheckForPaintInvalidation(newPaintInvalidationState)) 451 if (!shouldCheckForPaintInvalidation(newPaintInvalidationState))
451 return; 452 return;
452 453
453 if (mayNeedPaintInvalidationSubtree()) 454 if (mayNeedPaintInvalidationSubtree())
454 newPaintInvalidationState.setForceSubtreeInvalidationCheckingWithinConta iner(); 455 newPaintInvalidationState.setForceSubtreeInvalidationCheckingWithinConta iner();
455 456
456 LayoutRect previousPaintInvalidationRect = this->previousPaintInvalidationRe ct(); 457 LayoutRect previousPaintInvalidationRect = this->previousPaintInvalidationRe ct();
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 if (rootElementStyle->hasBackground()) 1176 if (rootElementStyle->hasBackground())
1176 return false; 1177 return false;
1177 1178
1178 if (node() != document().firstBodyElement()) 1179 if (node() != document().firstBodyElement())
1179 return false; 1180 return false;
1180 1181
1181 return true; 1182 return true;
1182 } 1183 }
1183 1184
1184 } // namespace blink 1185 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698