| 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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 if (!document->view()) { | 1044 if (!document->view()) { |
| 1045 exceptionState.throwDOMException(InvalidAccessError, | 1045 exceptionState.throwDOMException(InvalidAccessError, |
| 1046 "The document provided is invalid."); | 1046 "The document provided is invalid."); |
| 1047 return; | 1047 return; |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 FrameView* frameView = document->view(); | 1050 FrameView* frameView = document->view(); |
| 1051 bool scrollbarsSuppressedOldValue = frameView->scrollbarsSuppressed(); | 1051 bool scrollbarsSuppressedOldValue = frameView->scrollbarsSuppressed(); |
| 1052 | 1052 |
| 1053 frameView->setScrollbarsSuppressed(false); | 1053 frameView->setScrollbarsSuppressed(false); |
| 1054 frameView->setScrollOffsetFromInternals(IntPoint(x, y)); | 1054 frameView->updateScrollPositionFromInternals(IntPoint(x, y)); |
| 1055 frameView->setScrollbarsSuppressed(scrollbarsSuppressedOldValue); | 1055 frameView->setScrollbarsSuppressed(scrollbarsSuppressedOldValue); |
| 1056 } | 1056 } |
| 1057 | 1057 |
| 1058 String Internals::viewportAsText(Document* document, | 1058 String Internals::viewportAsText(Document* document, |
| 1059 float, | 1059 float, |
| 1060 int availableWidth, | 1060 int availableWidth, |
| 1061 int availableHeight, | 1061 int availableHeight, |
| 1062 ExceptionState& exceptionState) { | 1062 ExceptionState& exceptionState) { |
| 1063 ASSERT(document); | 1063 ASSERT(document); |
| 1064 if (!document->page()) { | 1064 if (!document->page()) { |
| (...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3007 return ClientRect::create(); | 3007 return ClientRect::create(); |
| 3008 | 3008 |
| 3009 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); | 3009 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); |
| 3010 } | 3010 } |
| 3011 | 3011 |
| 3012 void Internals::crash() { | 3012 void Internals::crash() { |
| 3013 CHECK(false) << "Intentional crash"; | 3013 CHECK(false) << "Intentional crash"; |
| 3014 } | 3014 } |
| 3015 | 3015 |
| 3016 } // namespace blink | 3016 } // namespace blink |
| OLD | NEW |