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

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

Issue 23185008: Reset viewport to implicit when @viewport is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
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, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); 285 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
286 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); 286 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
287 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange); 287 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
288 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror); 288 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
289 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockchange); 289 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockchange);
290 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockerror); 290 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockerror);
291 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitvisibilitychange); 291 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitvisibilitychange);
292 DEFINE_ATTRIBUTE_EVENT_LISTENER(securitypolicyviolation); 292 DEFINE_ATTRIBUTE_EVENT_LISTENER(securitypolicyviolation);
293 293
294 void setViewportArguments(const ViewportArguments& viewportArguments) { m_vi ewportArguments = viewportArguments; } 294 void setViewportArguments(const ViewportArguments& viewportArguments) { m_vi ewportArguments = viewportArguments; }
295 ViewportArguments viewportArguments() const { return m_viewportArguments; } 295 const ViewportArguments& viewportArguments() const { return m_viewportArgume nts; }
296 #ifndef NDEBUG 296 #ifndef NDEBUG
297 bool didDispatchViewportPropertiesChanged() const { return m_didDispatchView portPropertiesChanged; } 297 bool didDispatchViewportPropertiesChanged() const { return m_didDispatchView portPropertiesChanged; }
298 #endif 298 #endif
299 299
300 void setReferrerPolicy(ReferrerPolicy referrerPolicy) { m_referrerPolicy = r eferrerPolicy; } 300 void setReferrerPolicy(ReferrerPolicy referrerPolicy) { m_referrerPolicy = r eferrerPolicy; }
301 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } 301 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
302 302
303 DocumentType* doctype() const { return m_docType.get(); } 303 DocumentType* doctype() const { return m_docType.get(); }
304 304
305 DOMImplementation* implementation(); 305 DOMImplementation* implementation();
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 inline bool Node::isDocumentNode() const 1429 inline bool Node::isDocumentNode() const
1430 { 1430 {
1431 return this == documentInternal(); 1431 return this == documentInternal();
1432 } 1432 }
1433 1433
1434 Node* eventTargetNodeForDocument(Document*); 1434 Node* eventTargetNodeForDocument(Document*);
1435 1435
1436 } // namespace WebCore 1436 } // namespace WebCore
1437 1437
1438 #endif // Document_h 1438 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698