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

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, 4 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 26 matching lines...) Expand all
37 #include "bindings/v8/ScriptCallStackFactory.h" 37 #include "bindings/v8/ScriptCallStackFactory.h"
38 #include "bindings/v8/ScriptController.h" 38 #include "bindings/v8/ScriptController.h"
39 #include "bindings/v8/SerializedScriptValue.h" 39 #include "bindings/v8/SerializedScriptValue.h"
40 #include "core/css/CSSComputedStyleDeclaration.h" 40 #include "core/css/CSSComputedStyleDeclaration.h"
41 #include "core/css/CSSRuleList.h" 41 #include "core/css/CSSRuleList.h"
42 #include "core/css/DOMWindowCSS.h" 42 #include "core/css/DOMWindowCSS.h"
43 #include "core/css/MediaQueryList.h" 43 #include "core/css/MediaQueryList.h"
44 #include "core/css/MediaQueryMatcher.h" 44 #include "core/css/MediaQueryMatcher.h"
45 #include "core/css/StyleMedia.h" 45 #include "core/css/StyleMedia.h"
46 #include "core/css/resolver/StyleResolver.h" 46 #include "core/css/resolver/StyleResolver.h"
47 #include "core/css/resolver/ViewportStyleResolver.h"
47 #include "core/dom/DeviceOrientationController.h" 48 #include "core/dom/DeviceOrientationController.h"
48 #include "core/dom/Document.h" 49 #include "core/dom/Document.h"
49 #include "core/dom/Element.h" 50 #include "core/dom/Element.h"
50 #include "core/dom/EventListener.h" 51 #include "core/dom/EventListener.h"
51 #include "core/dom/EventNames.h" 52 #include "core/dom/EventNames.h"
52 #include "core/dom/ExceptionCode.h" 53 #include "core/dom/ExceptionCode.h"
53 #include "core/dom/MessageEvent.h" 54 #include "core/dom/MessageEvent.h"
54 #include "core/dom/PageTransitionEvent.h" 55 #include "core/dom/PageTransitionEvent.h"
55 #include "core/dom/RequestAnimationFrameCallback.h" 56 #include "core/dom/RequestAnimationFrameCallback.h"
56 #include "core/dom/ScriptExecutionContext.h" 57 #include "core/dom/ScriptExecutionContext.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 return; 341 return;
341 342
342 m_document->setDOMWindow(this); 343 m_document->setDOMWindow(this);
343 if (!m_document->attached()) 344 if (!m_document->attached())
344 m_document->attach(); 345 m_document->attach();
345 346
346 if (!m_frame) 347 if (!m_frame)
347 return; 348 return;
348 349
349 m_frame->script()->updateDocument(); 350 m_frame->script()->updateDocument();
350 m_document->updateViewportArguments(); 351 m_document->styleResolver()->viewportStyleResolver()->resolve();
351 352
352 if (m_frame->page() && m_frame->view()) { 353 if (m_frame->page() && m_frame->view()) {
353 if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scroll ingCoordinator()) { 354 if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scroll ingCoordinator()) {
354 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame- >view(), HorizontalScrollbar); 355 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame- >view(), HorizontalScrollbar);
355 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame- >view(), VerticalScrollbar); 356 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame- >view(), VerticalScrollbar);
356 scrollingCoordinator->scrollableAreaScrollLayerDidChange(m_frame->vi ew()); 357 scrollingCoordinator->scrollableAreaScrollLayerDidChange(m_frame->vi ew());
357 } 358 }
358 } 359 }
359 360
360 m_frame->selection()->updateSecureKeyboardEntryIfActive(); 361 m_frame->selection()->updateSecureKeyboardEntryIfActive();
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 return static_cast<DOMWindowLifecycleNotifier*>(LifecycleContext::lifecycleN otifier()); 1762 return static_cast<DOMWindowLifecycleNotifier*>(LifecycleContext::lifecycleN otifier());
1762 } 1763 }
1763 1764
1764 PassOwnPtr<LifecycleNotifier> DOMWindow::createLifecycleNotifier() 1765 PassOwnPtr<LifecycleNotifier> DOMWindow::createLifecycleNotifier()
1765 { 1766 {
1766 return DOMWindowLifecycleNotifier::create(this); 1767 return DOMWindowLifecycleNotifier::create(this);
1767 } 1768 }
1768 1769
1769 1770
1770 } // namespace WebCore 1771 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698