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

Side by Side Diff: sky/engine/core/frame/LocalDOMWindow.cpp

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 { 233 {
234 ASSERT(init.frame() == m_frame); 234 ASSERT(init.frame() == m_frame);
235 235
236 clearDocument(); 236 clearDocument();
237 237
238 m_document = HTMLDocument::create(init); 238 m_document = HTMLDocument::create(init);
239 m_eventQueue = DOMWindowEventQueue::create(m_document.get()); 239 m_eventQueue = DOMWindowEventQueue::create(m_document.get());
240 m_document->attach(); 240 m_document->attach();
241 241
242 m_frame->script().updateDocument(); 242 m_frame->script().updateDocument();
243 m_document->updateViewportDescription();
244 return m_document; 243 return m_document;
245 } 244 }
246 245
247 EventQueue* LocalDOMWindow::eventQueue() const 246 EventQueue* LocalDOMWindow::eventQueue() const
248 { 247 {
249 return m_eventQueue.get(); 248 return m_eventQueue.get();
250 } 249 }
251 250
252 void LocalDOMWindow::enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event> event) 251 void LocalDOMWindow::enqueueWindowEvent(PassRefPtrWillBeRawPtr<Event> event)
253 { 252 {
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 visitor->trace(m_location); 825 visitor->trace(m_location);
827 visitor->trace(m_media); 826 visitor->trace(m_media);
828 visitor->trace(m_css); 827 visitor->trace(m_css);
829 visitor->trace(m_eventQueue); 828 visitor->trace(m_eventQueue);
830 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); 829 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor);
831 EventTargetWithInlineData::trace(visitor); 830 EventTargetWithInlineData::trace(visitor);
832 LifecycleContext<LocalDOMWindow>::trace(visitor); 831 LifecycleContext<LocalDOMWindow>::trace(visitor);
833 } 832 }
834 833
835 } // namespace blink 834 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698