OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 void LayoutFrame::ImageChanged(WrappedImagePtr image, const IntRect*) { | 43 void LayoutFrame::ImageChanged(WrappedImagePtr image, const IntRect*) { |
44 if (const CursorList* cursors = Style()->Cursors()) { | 44 if (const CursorList* cursors = Style()->Cursors()) { |
45 for (const CursorData& cursor : *cursors) { | 45 for (const CursorData& cursor : *cursors) { |
46 if (cursor.GetImage() && cursor.GetImage()->CachedImage() == image) { | 46 if (cursor.GetImage() && cursor.GetImage()->CachedImage() == image) { |
47 if (LocalFrame* frame = this->GetFrame()) { | 47 if (LocalFrame* frame = this->GetFrame()) { |
48 // Cursor update scheduling is done by the local root, which is the | 48 // Cursor update scheduling is done by the local root, which is the |
49 // main frame if there are no RemoteFrame ancestors in the frame tree. | 49 // main frame if there are no RemoteFrame ancestors in the frame tree. |
50 // Use of localFrameRoot() is discouraged but will change when cursor | 50 // Use of localFrameRoot() is discouraged but will change when cursor |
51 // update scheduling is moved from EventHandler to PageEventHandler. | 51 // update scheduling is moved from EventHandler to PageEventHandler. |
52 frame->LocalFrameRoot()->GetEventHandler().ScheduleCursorUpdate(); | 52 frame->LocalFrameRoot().GetEventHandler().ScheduleCursorUpdate(); |
53 } | 53 } |
54 } | 54 } |
55 } | 55 } |
56 } | 56 } |
57 } | 57 } |
58 | 58 |
59 void LayoutFrame::UpdateFromElement() { | 59 void LayoutFrame::UpdateFromElement() { |
60 if (Parent() && Parent()->IsFrameSet()) | 60 if (Parent() && Parent()->IsFrameSet()) |
61 ToLayoutFrameSet(Parent())->NotifyFrameEdgeInfoChanged(); | 61 ToLayoutFrameSet(Parent())->NotifyFrameEdgeInfoChanged(); |
62 } | 62 } |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
OLD | NEW |