OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 return; | 348 return; |
349 | 349 |
350 m_document->setDOMWindow(this); | 350 m_document->setDOMWindow(this); |
351 if (!m_document->attached()) | 351 if (!m_document->attached()) |
352 m_document->attach(); | 352 m_document->attach(); |
353 | 353 |
354 if (!m_frame) | 354 if (!m_frame) |
355 return; | 355 return; |
356 | 356 |
357 m_frame->script()->updateDocument(); | 357 m_frame->script()->updateDocument(); |
358 m_document->updateViewportArguments(); | 358 m_document->styleResolver()->viewportStyleResolver()->resolve(); |
359 | 359 |
360 if (m_frame->page() && m_frame->view()) { | 360 if (m_frame->page() && m_frame->view()) { |
361 if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scroll
ingCoordinator()) { | 361 if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scroll
ingCoordinator()) { |
362 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame-
>view(), HorizontalScrollbar); | 362 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame-
>view(), HorizontalScrollbar); |
363 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame-
>view(), VerticalScrollbar); | 363 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame-
>view(), VerticalScrollbar); |
364 scrollingCoordinator->scrollableAreaScrollLayerDidChange(m_frame->vi
ew()); | 364 scrollingCoordinator->scrollableAreaScrollLayerDidChange(m_frame->vi
ew()); |
365 } | 365 } |
366 } | 366 } |
367 | 367 |
368 m_frame->selection()->updateSecureKeyboardEntryIfActive(); | 368 m_frame->selection()->updateSecureKeyboardEntryIfActive(); |
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 | 1962 |
1963 Frame* child = frame->tree()->scopedChild(index); | 1963 Frame* child = frame->tree()->scopedChild(index); |
1964 if (child) | 1964 if (child) |
1965 return child->document()->domWindow(); | 1965 return child->document()->domWindow(); |
1966 | 1966 |
1967 return 0; | 1967 return 0; |
1968 } | 1968 } |
1969 | 1969 |
1970 | 1970 |
1971 } // namespace WebCore | 1971 } // namespace WebCore |
OLD | NEW |