| OLD | NEW |
| 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 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2031 document = toDocument(node); | 2031 document = toDocument(node); |
| 2032 } else if (isHTMLIFrameElement(*node)) { | 2032 } else if (isHTMLIFrameElement(*node)) { |
| 2033 document = toHTMLIFrameElement(*node).contentDocument(); | 2033 document = toHTMLIFrameElement(*node).contentDocument(); |
| 2034 } else { | 2034 } else { |
| 2035 exceptionState.throwTypeError("The node provided is neither a document n
or an IFrame."); | 2035 exceptionState.throwTypeError("The node provided is neither a document n
or an IFrame."); |
| 2036 return; | 2036 return; |
| 2037 } | 2037 } |
| 2038 document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasksS
ynchronously); | 2038 document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasksS
ynchronously); |
| 2039 } | 2039 } |
| 2040 | 2040 |
| 2041 void Internals::forceFullRepaint(Document* document, ExceptionState& exceptionSt
ate) |
| 2042 { |
| 2043 if (!document || !document->view()) { |
| 2044 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc
ument's view cannot be retrieved." : "The document provided is invalid."); |
| 2045 return; |
| 2046 } |
| 2047 |
| 2048 if (RenderView *renderView = document->renderView()) |
| 2049 renderView->repaintViewAndCompositedLayers(); |
| 2050 } |
| 2051 |
| 2041 PassRefPtrWillBeRawPtr<ClientRectList> Internals::draggableRegions(Document* doc
ument, ExceptionState& exceptionState) | 2052 PassRefPtrWillBeRawPtr<ClientRectList> Internals::draggableRegions(Document* doc
ument, ExceptionState& exceptionState) |
| 2042 { | 2053 { |
| 2043 return annotatedRegions(document, true, exceptionState); | 2054 return annotatedRegions(document, true, exceptionState); |
| 2044 } | 2055 } |
| 2045 | 2056 |
| 2046 PassRefPtrWillBeRawPtr<ClientRectList> Internals::nonDraggableRegions(Document*
document, ExceptionState& exceptionState) | 2057 PassRefPtrWillBeRawPtr<ClientRectList> Internals::nonDraggableRegions(Document*
document, ExceptionState& exceptionState) |
| 2047 { | 2058 { |
| 2048 return annotatedRegions(document, false, exceptionState); | 2059 return annotatedRegions(document, false, exceptionState); |
| 2049 } | 2060 } |
| 2050 | 2061 |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2368 } else if (type == "none") { | 2379 } else if (type == "none") { |
| 2369 webtype = blink::ConnectionTypeNone; | 2380 webtype = blink::ConnectionTypeNone; |
| 2370 } else { | 2381 } else { |
| 2371 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); | 2382 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); |
| 2372 return; | 2383 return; |
| 2373 } | 2384 } |
| 2374 networkStateNotifier().setWebConnectionTypeForTest(webtype); | 2385 networkStateNotifier().setWebConnectionTypeForTest(webtype); |
| 2375 } | 2386 } |
| 2376 | 2387 |
| 2377 } // namespace WebCore | 2388 } // namespace WebCore |
| OLD | NEW |