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

Side by Side Diff: Source/core/page/DOMWindow.cpp

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698