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

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

Issue 315443002: Compute minimum repaint and show them in overlay (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | 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 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 document = toDocument(node); 2022 document = toDocument(node);
2023 } else if (isHTMLIFrameElement(*node)) { 2023 } else if (isHTMLIFrameElement(*node)) {
2024 document = toHTMLIFrameElement(*node).contentDocument(); 2024 document = toHTMLIFrameElement(*node).contentDocument();
2025 } else { 2025 } else {
2026 exceptionState.throwTypeError("The node provided is neither a document n or an IFrame."); 2026 exceptionState.throwTypeError("The node provided is neither a document n or an IFrame.");
2027 return; 2027 return;
2028 } 2028 }
2029 document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasksS ynchronously); 2029 document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasksS ynchronously);
2030 } 2030 }
2031 2031
2032 void Internals::forceFullRepaint(Document* document, ExceptionState& exceptionSt ate)
2033 {
2034 if (!document || !document->view()) {
2035 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc ument's view cannot be retrieved." : "The document provided is invalid.");
2036 return;
2037 }
2038
2039 if (RenderView *renderView = document->renderView())
2040 renderView->repaintViewAndCompositedLayers();
2041 }
2042
2032 PassRefPtrWillBeRawPtr<ClientRectList> Internals::draggableRegions(Document* doc ument, ExceptionState& exceptionState) 2043 PassRefPtrWillBeRawPtr<ClientRectList> Internals::draggableRegions(Document* doc ument, ExceptionState& exceptionState)
2033 { 2044 {
2034 return annotatedRegions(document, true, exceptionState); 2045 return annotatedRegions(document, true, exceptionState);
2035 } 2046 }
2036 2047
2037 PassRefPtrWillBeRawPtr<ClientRectList> Internals::nonDraggableRegions(Document* document, ExceptionState& exceptionState) 2048 PassRefPtrWillBeRawPtr<ClientRectList> Internals::nonDraggableRegions(Document* document, ExceptionState& exceptionState)
2038 { 2049 {
2039 return annotatedRegions(document, false, exceptionState); 2050 return annotatedRegions(document, false, exceptionState);
2040 } 2051 }
2041 2052
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 } else if (type == "none") { 2369 } else if (type == "none") {
2359 webtype = blink::ConnectionTypeNone; 2370 webtype = blink::ConnectionTypeNone;
2360 } else { 2371 } else {
2361 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile dToEnumerate("connection type", type)); 2372 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile dToEnumerate("connection type", type));
2362 return; 2373 return;
2363 } 2374 }
2364 networkStateNotifier().setWebConnectionTypeForTest(webtype); 2375 networkStateNotifier().setWebConnectionTypeForTest(webtype);
2365 } 2376 }
2366 2377
2367 } // namespace WebCore 2378 } // namespace WebCore
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