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 27 matching lines...) Expand all Loading... |
38 FrameEdgeInfo LayoutFrame::edgeInfo() const { | 38 FrameEdgeInfo LayoutFrame::edgeInfo() const { |
39 HTMLFrameElement* element = toHTMLFrameElement(node()); | 39 HTMLFrameElement* element = toHTMLFrameElement(node()); |
40 return FrameEdgeInfo(element->noResize(), element->hasFrameBorder()); | 40 return FrameEdgeInfo(element->noResize(), element->hasFrameBorder()); |
41 } | 41 } |
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.image() && cursor.image()->cachedImage() == image) { | 46 if (cursor.image() && cursor.image()->cachedImage() == image) { |
47 if (LocalFrame* frame = this->frame()) { | 47 if (LocalFrame* frame = this->frame()) { |
48 // Cursor update scheduling is done by the local root, which is the ma
in frame if there | 48 // Cursor update scheduling is done by the local root, which is the |
49 // are no RemoteFrame ancestors in the frame tree. Use of localFrameRo
ot() is | 49 // main frame if there are no RemoteFrame ancestors in the frame tree. |
50 // discouraged but will change when cursor update scheduling is moved
from EventHandler | 50 // Use of localFrameRoot() is discouraged but will change when cursor |
51 // to PageEventHandler. | 51 // update scheduling is moved from EventHandler to PageEventHandler. |
52 frame->localFrameRoot()->eventHandler().scheduleCursorUpdate(); | 52 frame->localFrameRoot()->eventHandler().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 |