OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "core/editing/FrameSelection.h" | 43 #include "core/editing/FrameSelection.h" |
44 #include "core/editing/SelectionController.h" | 44 #include "core/editing/SelectionController.h" |
45 #include "core/events/EventPath.h" | 45 #include "core/events/EventPath.h" |
46 #include "core/events/GestureEvent.h" | 46 #include "core/events/GestureEvent.h" |
47 #include "core/events/KeyboardEvent.h" | 47 #include "core/events/KeyboardEvent.h" |
48 #include "core/events/MouseEvent.h" | 48 #include "core/events/MouseEvent.h" |
49 #include "core/events/PointerEvent.h" | 49 #include "core/events/PointerEvent.h" |
50 #include "core/events/TextEvent.h" | 50 #include "core/events/TextEvent.h" |
51 #include "core/events/TouchEvent.h" | 51 #include "core/events/TouchEvent.h" |
52 #include "core/events/WheelEvent.h" | 52 #include "core/events/WheelEvent.h" |
53 #include "core/fetch/ImageResource.h" | 53 #include "core/fetch/ImageResourceContent.h" |
54 #include "core/frame/Deprecation.h" | 54 #include "core/frame/Deprecation.h" |
55 #include "core/frame/EventHandlerRegistry.h" | 55 #include "core/frame/EventHandlerRegistry.h" |
56 #include "core/frame/FrameHost.h" | 56 #include "core/frame/FrameHost.h" |
57 #include "core/frame/FrameView.h" | 57 #include "core/frame/FrameView.h" |
58 #include "core/frame/LocalFrame.h" | 58 #include "core/frame/LocalFrame.h" |
59 #include "core/frame/Settings.h" | 59 #include "core/frame/Settings.h" |
60 #include "core/frame/UseCounter.h" | 60 #include "core/frame/UseCounter.h" |
61 #include "core/frame/VisualViewport.h" | 61 #include "core/frame/VisualViewport.h" |
62 #include "core/html/HTMLDialogElement.h" | 62 #include "core/html/HTMLDialogElement.h" |
63 #include "core/html/HTMLFrameElementBase.h" | 63 #include "core/html/HTMLFrameElementBase.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 return NoCursorChange; | 410 return NoCursorChange; |
411 } | 411 } |
412 } | 412 } |
413 | 413 |
414 if (style && style->cursors()) { | 414 if (style && style->cursors()) { |
415 const CursorList* cursors = style->cursors(); | 415 const CursorList* cursors = style->cursors(); |
416 for (unsigned i = 0; i < cursors->size(); ++i) { | 416 for (unsigned i = 0; i < cursors->size(); ++i) { |
417 StyleImage* styleImage = (*cursors)[i].image(); | 417 StyleImage* styleImage = (*cursors)[i].image(); |
418 if (!styleImage) | 418 if (!styleImage) |
419 continue; | 419 continue; |
420 ImageResource* cachedImage = styleImage->cachedImage(); | 420 ImageResourceContent* cachedImage = styleImage->cachedImage(); |
421 if (!cachedImage) | 421 if (!cachedImage) |
422 continue; | 422 continue; |
423 float scale = styleImage->imageScaleFactor(); | 423 float scale = styleImage->imageScaleFactor(); |
424 bool hotSpotSpecified = (*cursors)[i].hotSpotSpecified(); | 424 bool hotSpotSpecified = (*cursors)[i].hotSpotSpecified(); |
425 // Get hotspot and convert from logical pixels to physical pixels. | 425 // Get hotspot and convert from logical pixels to physical pixels. |
426 IntPoint hotSpot = (*cursors)[i].hotSpot(); | 426 IntPoint hotSpot = (*cursors)[i].hotSpot(); |
427 hotSpot.scale(scale, scale); | 427 hotSpot.scale(scale, scale); |
428 IntSize size = cachedImage->getImage()->size(); | 428 IntSize size = cachedImage->getImage()->size(); |
429 if (cachedImage->errorOccurred()) | 429 if (cachedImage->errorOccurred()) |
430 continue; | 430 continue; |
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2120 } | 2120 } |
2121 | 2121 |
2122 FrameHost* EventHandler::frameHost() const { | 2122 FrameHost* EventHandler::frameHost() const { |
2123 if (!m_frame->page()) | 2123 if (!m_frame->page()) |
2124 return nullptr; | 2124 return nullptr; |
2125 | 2125 |
2126 return &m_frame->page()->frameHost(); | 2126 return &m_frame->page()->frameHost(); |
2127 } | 2127 } |
2128 | 2128 |
2129 } // namespace blink | 2129 } // namespace blink |
OLD | NEW |