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

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

Issue 2000323008: Use original repaint tests for spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 if (!document->view()) { 2003 if (!document->view()) {
2004 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid."); 2004 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid.");
2005 return; 2005 return;
2006 } 2006 }
2007 2007
2008 LayoutViewItem layoutViewItem = document->layoutViewItem(); 2008 LayoutViewItem layoutViewItem = document->layoutViewItem();
2009 if (!layoutViewItem.isNull()) 2009 if (!layoutViewItem.isNull())
2010 layoutViewItem.invalidatePaintForViewAndCompositedLayers(); 2010 layoutViewItem.invalidatePaintForViewAndCompositedLayers();
2011 } 2011 }
2012 2012
2013 void Internals::startTrackingPaintInvalidationObjects()
2014 {
2015 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
2016 GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->v iew()->layoutViewItem().layer()->graphicsLayerBacking();
2017 if (graphicsLayer->drawsContent())
2018 graphicsLayer->getPaintController().startTrackingPaintInvalidationObject s();
2019 }
2020
2021 void Internals::stopTrackingPaintInvalidationObjects()
2022 {
2023 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
2024 GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->v iew()->layoutViewItem().layer()->graphicsLayerBacking();
2025 if (graphicsLayer->drawsContent())
2026 graphicsLayer->getPaintController().stopTrackingPaintInvalidationObjects ();
2027 }
2028
2029 Vector<String> Internals::trackedPaintInvalidationObjects()
2030 {
2031 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
2032 GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->v iew()->layoutViewItem().layer()->graphicsLayerBacking();
2033 if (!graphicsLayer->drawsContent())
2034 return Vector<String>();
2035 return graphicsLayer->getPaintController().trackedPaintInvalidationObjects() ;
2036 }
2037
2038 ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState) 2013 ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState)
2039 { 2014 {
2040 return annotatedRegions(document, true, exceptionState); 2015 return annotatedRegions(document, true, exceptionState);
2041 } 2016 }
2042 2017
2043 ClientRectList* Internals::nonDraggableRegions(Document* document, ExceptionStat e& exceptionState) 2018 ClientRectList* Internals::nonDraggableRegions(Document* document, ExceptionStat e& exceptionState)
2044 { 2019 {
2045 return annotatedRegions(document, false, exceptionState); 2020 return annotatedRegions(document, false, exceptionState);
2046 } 2021 }
2047 2022
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 } 2563 }
2589 2564
2590 String Internals::getProgrammaticScrollAnimationState(Node* node) const 2565 String Internals::getProgrammaticScrollAnimationState(Node* node) const
2591 { 2566 {
2592 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) 2567 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node))
2593 return scrollableArea->programmaticScrollAnimator().runStateAsText(); 2568 return scrollableArea->programmaticScrollAnimator().runStateAsText();
2594 return String(); 2569 return String();
2595 } 2570 }
2596 2571
2597 } // namespace blink 2572 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698