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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 16646002: Move the CSS Device Adaptation @viewport rule support behind a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 5251 matching lines...) Expand 10 before | Expand all | Expand 10 after
5262 return loader; 5262 return loader;
5263 } 5263 }
5264 5264
5265 IntSize Document::viewportSize() const 5265 IntSize Document::viewportSize() const
5266 { 5266 {
5267 if (!view()) 5267 if (!view())
5268 return IntSize(); 5268 return IntSize();
5269 return view()->visibleContentRect(ScrollableArea::IncludeScrollbars).size(); 5269 return view()->visibleContentRect(ScrollableArea::IncludeScrollbars).size();
5270 } 5270 }
5271 5271
5272 #if ENABLE(CSS_DEVICE_ADAPTATION)
5273 IntSize Document::initialViewportSize() const 5272 IntSize Document::initialViewportSize() const
5274 { 5273 {
5275 if (!view()) 5274 if (!view())
5276 return IntSize(); 5275 return IntSize();
5277 return view()->initialViewportSize(); 5276 return view()->unscaledVisibleContentSize(ScrollableArea::IncludeScrollbars) ;
5278 } 5277 }
5279 #endif
5280 5278
5281 Node* eventTargetNodeForDocument(Document* doc) 5279 Node* eventTargetNodeForDocument(Document* doc)
5282 { 5280 {
5283 if (!doc) 5281 if (!doc)
5284 return 0; 5282 return 0;
5285 Node* node = doc->focusedNode(); 5283 Node* node = doc->focusedNode();
5286 if (!node && doc->isPluginDocument()) { 5284 if (!node && doc->isPluginDocument()) {
5287 PluginDocument* pluginDocument = toPluginDocument(doc); 5285 PluginDocument* pluginDocument = toPluginDocument(doc);
5288 node = pluginDocument->pluginNode(); 5286 node = pluginDocument->pluginNode();
5289 } 5287 }
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
5593 return; 5591 return;
5594 5592
5595 Vector<RefPtr<Element> > associatedFormControls; 5593 Vector<RefPtr<Element> > associatedFormControls;
5596 copyToVector(m_associatedFormControls, associatedFormControls); 5594 copyToVector(m_associatedFormControls, associatedFormControls);
5597 5595
5598 frame()->page()->chrome().client()->didAssociateFormControls(associatedFormC ontrols); 5596 frame()->page()->chrome().client()->didAssociateFormControls(associatedFormC ontrols);
5599 m_associatedFormControls.clear(); 5597 m_associatedFormControls.clear();
5600 } 5598 }
5601 5599
5602 } // namespace WebCore 5600 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698