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

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 1285703004: Update css styles after modifying display mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated patch Created 5 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
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 Node* node = object.node(); 1187 Node* node = object.node();
1188 ASSERT(node); 1188 ASSERT(node);
1189 if (isHTMLObjectElement(*node) || isHTMLEmbedElement(*node)) 1189 if (isHTMLObjectElement(*node) || isHTMLEmbedElement(*node))
1190 toHTMLPlugInElement(node)->setNeedsWidgetUpdate(true); 1190 toHTMLPlugInElement(node)->setNeedsWidgetUpdate(true);
1191 1191
1192 m_partUpdateSet.add(&object); 1192 m_partUpdateSet.add(&object);
1193 } 1193 }
1194 1194
1195 void FrameView::setDisplayMode(WebDisplayMode mode) 1195 void FrameView::setDisplayMode(WebDisplayMode mode)
1196 { 1196 {
1197 if (mode == m_displayMode)
1198 return;
1199
1197 m_displayMode = mode; 1200 m_displayMode = mode;
1198 if (m_frame->document()) 1201
1202 if (m_frame->document()) {
1199 m_frame->document()->mediaQueryAffectingValueChanged(); 1203 m_frame->document()->mediaQueryAffectingValueChanged();
1204 m_frame->document()->styleResolverChanged();
Timothy Loh 2015/08/18 04:12:20 Perhaps this call should be inside mediaQueryAffec
1205 }
1200 } 1206 }
1201 1207
1202 void FrameView::setMediaType(const AtomicString& mediaType) 1208 void FrameView::setMediaType(const AtomicString& mediaType)
Timothy Loh 2015/08/18 04:12:20 Can we fix this one too? :-)
1203 { 1209 {
1204 ASSERT(m_frame->document()); 1210 ASSERT(m_frame->document());
1205 m_frame->document()->mediaQueryAffectingValueChanged(); 1211 m_frame->document()->mediaQueryAffectingValueChanged();
1206 m_mediaType = mediaType; 1212 m_mediaType = mediaType;
1207 } 1213 }
1208 1214
1209 AtomicString FrameView::mediaType() const 1215 AtomicString FrameView::mediaType() const
1210 { 1216 {
1211 // See if we have an override type. 1217 // See if we have an override type.
1212 if (m_frame->settings() && !m_frame->settings()->mediaTypeOverride().isEmpty ()) 1218 if (m_frame->settings() && !m_frame->settings()->mediaTypeOverride().isEmpty ())
(...skipping 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after
4010 4016
4011 if (!graphicsLayer) 4017 if (!graphicsLayer)
4012 return; 4018 return;
4013 4019
4014 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL ayoutObject(), paintInvalidationContainer, viewRect); 4020 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL ayoutObject(), paintInvalidationContainer, viewRect);
4015 4021
4016 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect))); 4022 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect)));
4017 } 4023 }
4018 4024
4019 } // namespace blink 4025 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698