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

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

Issue 59573002: Add Frame::isMainFrame and deploy it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2942 m_viewportDescription = m_legacyViewportDescription; 2942 m_viewportDescription = m_legacyViewportDescription;
2943 else 2943 else
2944 m_viewportDescription = viewportDescription; 2944 m_viewportDescription = viewportDescription;
2945 } 2945 }
2946 2946
2947 updateViewportDescription(); 2947 updateViewportDescription();
2948 } 2948 }
2949 2949
2950 void Document::updateViewportDescription() 2950 void Document::updateViewportDescription()
2951 { 2951 {
2952 if (page() && page()->mainFrame() == frame()) { 2952 if (frame()->isMainFrame()) {
2953 #ifndef NDEBUG 2953 #ifndef NDEBUG
2954 m_didDispatchViewportPropertiesChanged = true; 2954 m_didDispatchViewportPropertiesChanged = true;
2955 #endif 2955 #endif
2956 page()->chrome().dispatchViewportPropertiesDidChange(m_viewportDescripti on); 2956 page()->chrome().dispatchViewportPropertiesDidChange(m_viewportDescripti on);
2957 } 2957 }
2958 } 2958 }
2959 2959
2960 void Document::processReferrerPolicy(const String& policy) 2960 void Document::processReferrerPolicy(const String& policy)
2961 { 2961 {
2962 ASSERT(!policy.isNull()); 2962 ASSERT(!policy.isNull());
(...skipping 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after
5222 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style ResolverUpdateMode updateMode) 5222 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style ResolverUpdateMode updateMode)
5223 { 5223 {
5224 if (!isActive()) 5224 if (!isActive())
5225 return; 5225 return;
5226 5226
5227 styleEngine()->modifiedStyleSheet(sheet); 5227 styleEngine()->modifiedStyleSheet(sheet);
5228 styleResolverChanged(when, updateMode); 5228 styleResolverChanged(when, updateMode);
5229 } 5229 }
5230 5230
5231 } // namespace WebCore 5231 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698