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

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

Issue 1324763002: Paint invalidation tests for slimming paint v2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Yet another unrelated file mixed from another branch :( Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | 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) 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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 ASSERT(document); 1967 ASSERT(document);
1968 if (!document->view()) { 1968 if (!document->view()) {
1969 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid."); 1969 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid.");
1970 return; 1970 return;
1971 } 1971 }
1972 1972
1973 if (LayoutView *layoutView = document->layoutView()) 1973 if (LayoutView *layoutView = document->layoutView())
1974 layoutView->invalidatePaintForViewAndCompositedLayers(); 1974 layoutView->invalidatePaintForViewAndCompositedLayers();
1975 } 1975 }
1976 1976
1977 void Internals::startTrackingPaintInvalidationObjects()
1978 {
1979 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
1980 toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->g raphicsLayerBacking()->displayItemList()->startTrackingPaintInvalidationObjects( );
1981 }
1982
1983 void Internals::stopTrackingPaintInvalidationObjects()
1984 {
1985 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
1986 toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->g raphicsLayerBacking()->displayItemList()->stopTrackingPaintInvalidationObjects() ;
1987 }
1988
1989 Vector<String> Internals::trackedPaintInvalidationObjects()
1990 {
1991 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
1992 return toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->lay er()->graphicsLayerBacking()->displayItemList()->trackedPaintInvalidationObjects ();
1993 }
1994
1977 ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState) 1995 ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState)
1978 { 1996 {
1979 return annotatedRegions(document, true, exceptionState); 1997 return annotatedRegions(document, true, exceptionState);
1980 } 1998 }
1981 1999
1982 ClientRectList* Internals::nonDraggableRegions(Document* document, ExceptionStat e& exceptionState) 2000 ClientRectList* Internals::nonDraggableRegions(Document* document, ExceptionStat e& exceptionState)
1983 { 2001 {
1984 return annotatedRegions(document, false, exceptionState); 2002 return annotatedRegions(document, false, exceptionState);
1985 } 2003 }
1986 2004
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
2462 2480
2463 return animator->setScrollbarsVisibleForTesting(visible); 2481 return animator->setScrollbarsVisibleForTesting(visible);
2464 } 2482 }
2465 2483
2466 void Internals::forceRestrictIFramePermissions() 2484 void Internals::forceRestrictIFramePermissions()
2467 { 2485 {
2468 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); 2486 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true);
2469 } 2487 }
2470 2488
2471 } // namespace blink 2489 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698