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

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

Issue 966723002: Add [TypeChecking=Interface] to Internals and PrivateScriptTest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 if (!document->view()) { 1795 if (!document->view()) {
1796 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid."); 1796 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid.");
1797 return; 1797 return;
1798 } 1798 }
1799 1799
1800 FrameView* frameView = document->view(); 1800 FrameView* frameView = document->view();
1801 frameView->updateLayoutAndStyleForPainting(); 1801 frameView->updateLayoutAndStyleForPainting();
1802 frameView->setTracksPaintInvalidations(false); 1802 frameView->setTracksPaintInvalidations(false);
1803 } 1803 }
1804 1804
1805 void Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Except ionState& exceptionState)
1806 {
1807 updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(0, exceptionState) ;
1808 }
1809
1810 void Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node* node, ExceptionState& exceptionState) 1805 void Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node* node, ExceptionState& exceptionState)
1811 { 1806 {
1812 Document* document; 1807 Document* document;
1813 if (!node) { 1808 if (!node) {
1814 document = contextDocument(); 1809 document = contextDocument();
1815 } else if (node->isDocumentNode()) { 1810 } else if (node->isDocumentNode()) {
1816 document = toDocument(node); 1811 document = toDocument(node);
1817 } else if (isHTMLIFrameElement(*node)) { 1812 } else if (isHTMLIFrameElement(*node)) {
1818 document = toHTMLIFrameElement(*node).contentDocument(); 1813 document = toHTMLIFrameElement(*node).contentDocument();
1819 } else { 1814 } else {
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
2322 { 2317 {
2323 ThreadState::current()->schedulePreciseGC(); 2318 ThreadState::current()->schedulePreciseGC();
2324 } 2319 }
2325 2320
2326 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc eptionState&) 2321 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc eptionState&)
2327 { 2322 {
2328 return new InternalsIterationSource(); 2323 return new InternalsIterationSource();
2329 } 2324 }
2330 2325
2331 } // namespace blink 2326 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698