OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |