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

Side by Side Diff: Source/web/WebPopupMenuImpl.cpp

Issue 880653004: Blink side of changes to enable cache clearing without a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Better use of enum. Created 5 years, 10 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 | « Source/web/WebPopupMenuImpl.h ('k') | public/platform/WebContentLayerClient.h » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 void WebPopupMenuImpl::beginFrame(const WebBeginFrameArgs&) 205 void WebPopupMenuImpl::beginFrame(const WebBeginFrameArgs&)
206 { 206 {
207 } 207 }
208 208
209 void WebPopupMenuImpl::layout() 209 void WebPopupMenuImpl::layout()
210 { 210 {
211 } 211 }
212 212
213 void WebPopupMenuImpl::paintContents(WebCanvas* canvas, const WebRect& rect, Web ContentLayerClient::GraphicsContextStatus contextStatus) 213 void WebPopupMenuImpl::paintContents(WebCanvas* canvas, const WebRect& rect, Web ContentLayerClient::PaintingControlSetting paintingControl)
214 { 214 {
215 if (!m_widget) 215 if (!m_widget)
216 return; 216 return;
217 217
218 if (!rect.isEmpty()) { 218 if (!rect.isEmpty()) {
219 GraphicsContext context(canvas, nullptr, 219 GraphicsContext context(canvas, nullptr,
220 contextStatus == WebContentLayerClient::GraphicsContextEnabled ? Gra phicsContext::NothingDisabled : GraphicsContext::FullyDisabled); 220 paintingControl == PaintingControlSetting::DisplayListConstructionDi sabled ? GraphicsContext::FullyDisabled : GraphicsContext::NothingDisabled);
221 m_widget->paint(&context, rect); 221 m_widget->paint(&context, rect);
222 } 222 }
223 } 223 }
224 224
225 void WebPopupMenuImpl::paint(WebCanvas* canvas, const WebRect& rect) 225 void WebPopupMenuImpl::paint(WebCanvas* canvas, const WebRect& rect)
226 { 226 {
227 if (!m_widget) 227 if (!m_widget)
228 return; 228 return;
229 229
230 if (!rect.isEmpty()) { 230 if (!rect.isEmpty()) {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 ASSERT(widget == m_widget); 396 ASSERT(widget == m_widget);
397 if (m_widget) { 397 if (m_widget) {
398 m_widget->setClient(0); 398 m_widget->setClient(0);
399 m_widget = 0; 399 m_widget = 0;
400 } 400 }
401 if (m_client) 401 if (m_client)
402 m_client->closeWidgetSoon(); 402 m_client->closeWidgetSoon();
403 } 403 }
404 404
405 } // namespace blink 405 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebPopupMenuImpl.h ('k') | public/platform/WebContentLayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698