Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 m_displayMode = mode; | 1197 m_displayMode = mode; |
| 1198 if (m_frame->document()) | 1198 if (m_frame->document()) { |
|
Mike West
2015/08/17 15:29:06
Can we do this only if |mode| is different from |m
a.renevier
2015/08/17 17:25:57
Done.
| |
| 1199 m_frame->document()->mediaQueryAffectingValueChanged(); | 1199 m_frame->document()->mediaQueryAffectingValueChanged(); |
| 1200 m_frame->document()->styleResolverChanged(); | |
| 1201 } | |
| 1200 } | 1202 } |
| 1201 | 1203 |
| 1202 void FrameView::setMediaType(const AtomicString& mediaType) | 1204 void FrameView::setMediaType(const AtomicString& mediaType) |
| 1203 { | 1205 { |
| 1204 ASSERT(m_frame->document()); | 1206 ASSERT(m_frame->document()); |
| 1205 m_frame->document()->mediaQueryAffectingValueChanged(); | 1207 m_frame->document()->mediaQueryAffectingValueChanged(); |
| 1206 m_mediaType = mediaType; | 1208 m_mediaType = mediaType; |
| 1207 } | 1209 } |
| 1208 | 1210 |
| 1209 AtomicString FrameView::mediaType() const | 1211 AtomicString FrameView::mediaType() const |
| (...skipping 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4010 | 4012 |
| 4011 if (!graphicsLayer) | 4013 if (!graphicsLayer) |
| 4012 return; | 4014 return; |
| 4013 | 4015 |
| 4014 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL ayoutObject(), paintInvalidationContainer, viewRect); | 4016 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL ayoutObject(), paintInvalidationContainer, viewRect); |
| 4015 | 4017 |
| 4016 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect))); | 4018 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing IntRect(viewRect))); |
| 4017 } | 4019 } |
| 4018 | 4020 |
| 4019 } // namespace blink | 4021 } // namespace blink |
| OLD | NEW |