Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2010 | 2010 |
| 2011 void RenderViewImpl::convertViewportToWindow(blink::WebRect* rect) { | 2011 void RenderViewImpl::convertViewportToWindow(blink::WebRect* rect) { |
| 2012 RenderWidget::convertViewportToWindow(rect); | 2012 RenderWidget::convertViewportToWindow(rect); |
| 2013 } | 2013 } |
| 2014 | 2014 |
| 2015 void RenderViewImpl::convertWindowToViewport(blink::WebFloatRect* rect) { | 2015 void RenderViewImpl::convertWindowToViewport(blink::WebFloatRect* rect) { |
| 2016 RenderWidget::convertWindowToViewport(rect); | 2016 RenderWidget::convertWindowToViewport(rect); |
| 2017 } | 2017 } |
| 2018 | 2018 |
| 2019 void RenderViewImpl::didAutoResize(const blink::WebSize& newSize) { | 2019 void RenderViewImpl::didAutoResize(const blink::WebSize& newSize) { |
| 2020 RenderWidget::didAutoResize(newSize); | 2020 gfx::Size new_size(newSize.width, newSize.height); |
| 2021 RenderWidget::DidAutoResize(new_size); | |
|
dcheng
2016/07/13 14:17:24
I'm pretty sure you can just pass newSize directly
lfg
2016/07/13 17:29:27
Done.
| |
| 2021 } | 2022 } |
| 2022 | 2023 |
| 2023 void RenderViewImpl::didChangeCursor(const blink::WebCursorInfo& info) { | 2024 void RenderViewImpl::didChangeCursor(const blink::WebCursorInfo& info) { |
| 2024 RenderWidget::didChangeCursor(info); | 2025 RenderWidget::didChangeCursor(info); |
| 2025 } | 2026 } |
| 2026 | 2027 |
| 2027 void RenderViewImpl::didInvalidateRect(const blink::WebRect& rect) { | 2028 void RenderViewImpl::didInvalidateRect(const blink::WebRect& rect) { |
| 2028 RenderWidget::didInvalidateRect(rect); | 2029 RenderWidget::didInvalidateRect(rect); |
| 2029 } | 2030 } |
| 2030 | 2031 |
| (...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3244 return render_frame->focused_pepper_plugin(); | 3245 return render_frame->focused_pepper_plugin(); |
| 3245 } | 3246 } |
| 3246 frame = frame->traverseNext(false); | 3247 frame = frame->traverseNext(false); |
| 3247 } | 3248 } |
| 3248 | 3249 |
| 3249 return nullptr; | 3250 return nullptr; |
| 3250 } | 3251 } |
| 3251 #endif | 3252 #endif |
| 3252 | 3253 |
| 3253 } // namespace content | 3254 } // namespace content |
| OLD | NEW |