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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. 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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 return; 1990 return;
1991 } 1991 }
1992 1992
1993 if (LayoutView *layoutView = document->layoutView()) 1993 if (LayoutView *layoutView = document->layoutView())
1994 layoutView->invalidatePaintForViewAndCompositedLayers(); 1994 layoutView->invalidatePaintForViewAndCompositedLayers();
1995 } 1995 }
1996 1996
1997 void Internals::startTrackingPaintInvalidationObjects() 1997 void Internals::startTrackingPaintInvalidationObjects()
1998 { 1998 {
1999 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 1999 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
2000 toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->g raphicsLayerBacking()->displayItemList()->startTrackingPaintInvalidationObjects( ); 2000 toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->g raphicsLayerBacking()->paintController()->startTrackingPaintInvalidationObjects( );
2001 } 2001 }
2002 2002
2003 void Internals::stopTrackingPaintInvalidationObjects() 2003 void Internals::stopTrackingPaintInvalidationObjects()
2004 { 2004 {
2005 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 2005 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
2006 toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->g raphicsLayerBacking()->displayItemList()->stopTrackingPaintInvalidationObjects() ; 2006 toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->g raphicsLayerBacking()->paintController()->stopTrackingPaintInvalidationObjects() ;
2007 } 2007 }
2008 2008
2009 Vector<String> Internals::trackedPaintInvalidationObjects() 2009 Vector<String> Internals::trackedPaintInvalidationObjects()
2010 { 2010 {
2011 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 2011 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
2012 return toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->lay er()->graphicsLayerBacking()->displayItemList()->trackedPaintInvalidationObjects (); 2012 return toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->lay er()->graphicsLayerBacking()->paintController()->trackedPaintInvalidationObjects ();
2013 } 2013 }
2014 2014
2015 ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState) 2015 ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState)
2016 { 2016 {
2017 return annotatedRegions(document, true, exceptionState); 2017 return annotatedRegions(document, true, exceptionState);
2018 } 2018 }
2019 2019
2020 ClientRectList* Internals::nonDraggableRegions(Document* document, ExceptionStat e& exceptionState) 2020 ClientRectList* Internals::nonDraggableRegions(Document* document, ExceptionStat e& exceptionState)
2021 { 2021 {
2022 return annotatedRegions(document, false, exceptionState); 2022 return annotatedRegions(document, false, exceptionState);
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2535 Document* document = contextDocument(); 2535 Document* document = contextDocument();
2536 if (!document) { 2536 if (!document) {
2537 exceptionState.throwDOMException(InvalidAccessError, "No context documen t is available."); 2537 exceptionState.throwDOMException(InvalidAccessError, "No context documen t is available.");
2538 return 0; 2538 return 0;
2539 } 2539 }
2540 2540
2541 return document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(pla tformTime); 2541 return document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(pla tformTime);
2542 } 2542 }
2543 2543
2544 } // namespace blink 2544 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/TransformRecorder.cpp ('k') | third_party/WebKit/Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698