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 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |