OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
6 #include "core/frame/RemoteFrameView.h" | 6 #include "core/frame/RemoteFrameView.h" |
7 | 7 |
8 #include "core/frame/RemoteFrame.h" | 8 #include "core/frame/RemoteFrame.h" |
9 #include "core/rendering/RenderPart.h" | 9 #include "core/rendering/RenderPart.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 void RemoteFrameView::invalidateRect(const IntRect& rect) | 30 void RemoteFrameView::invalidateRect(const IntRect& rect) |
31 { | 31 { |
32 RenderPart* renderer = m_remoteFrame->ownerRenderer(); | 32 RenderPart* renderer = m_remoteFrame->ownerRenderer(); |
33 if (!renderer) | 33 if (!renderer) |
34 return; | 34 return; |
35 | 35 |
36 IntRect repaintRect = rect; | 36 IntRect repaintRect = rect; |
37 repaintRect.move(renderer->borderLeft() + renderer->paddingLeft(), | 37 repaintRect.move(renderer->borderLeft() + renderer->paddingLeft(), |
38 renderer->borderTop() + renderer->paddingTop()); | 38 renderer->borderTop() + renderer->paddingTop()); |
39 renderer->repaintRectangle(repaintRect); | 39 renderer->invalidatePaintRectangle(repaintRect); |
40 } | 40 } |
41 | 41 |
42 void RemoteFrameView::setFrameRect(const IntRect& newRect) | 42 void RemoteFrameView::setFrameRect(const IntRect& newRect) |
43 { | 43 { |
44 IntRect oldRect = frameRect(); | 44 IntRect oldRect = frameRect(); |
45 | 45 |
46 if (newRect == oldRect) | 46 if (newRect == oldRect) |
47 return; | 47 return; |
48 | 48 |
49 Widget::setFrameRect(newRect); | 49 Widget::setFrameRect(newRect); |
50 | 50 |
51 frameRectsChanged(); | 51 frameRectsChanged(); |
52 } | 52 } |
53 | 53 |
54 void RemoteFrameView::frameRectsChanged() | 54 void RemoteFrameView::frameRectsChanged() |
55 { | 55 { |
56 // FIXME: Notify embedder via WebLocalFrameClient when that is possible. | 56 // FIXME: Notify embedder via WebLocalFrameClient when that is possible. |
57 } | 57 } |
58 | 58 |
59 } // namespace WebCore | 59 } // namespace WebCore |
OLD | NEW |