OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "core/editing/FrameSelection.h" | 29 #include "core/editing/FrameSelection.h" |
30 #include "core/events/KeyboardEvent.h" | 30 #include "core/events/KeyboardEvent.h" |
31 #include "core/events/MouseEvent.h" | 31 #include "core/events/MouseEvent.h" |
32 #include "core/frame/FrameHost.h" | 32 #include "core/frame/FrameHost.h" |
33 #include "core/frame/LocalFrame.h" | 33 #include "core/frame/LocalFrame.h" |
34 #include "core/frame/Settings.h" | 34 #include "core/frame/Settings.h" |
35 #include "core/frame/UseCounter.h" | 35 #include "core/frame/UseCounter.h" |
36 #include "core/html/HTMLFormElement.h" | 36 #include "core/html/HTMLFormElement.h" |
37 #include "core/html/HTMLImageElement.h" | 37 #include "core/html/HTMLImageElement.h" |
38 #include "core/html/parser/HTMLParserIdioms.h" | 38 #include "core/html/parser/HTMLParserIdioms.h" |
| 39 #include "core/layout/LayoutImage.h" |
39 #include "core/loader/FrameLoadRequest.h" | 40 #include "core/loader/FrameLoadRequest.h" |
40 #include "core/loader/FrameLoader.h" | 41 #include "core/loader/FrameLoader.h" |
41 #include "core/loader/FrameLoaderClient.h" | 42 #include "core/loader/FrameLoaderClient.h" |
42 #include "core/loader/FrameLoaderTypes.h" | 43 #include "core/loader/FrameLoaderTypes.h" |
43 #include "core/loader/PingLoader.h" | 44 #include "core/loader/PingLoader.h" |
44 #include "core/page/Chrome.h" | 45 #include "core/page/Chrome.h" |
45 #include "core/page/ChromeClient.h" | 46 #include "core/page/ChromeClient.h" |
46 #include "core/rendering/RenderImage.h" | |
47 #include "platform/PlatformMouseEvent.h" | 47 #include "platform/PlatformMouseEvent.h" |
48 #include "platform/network/NetworkHints.h" | 48 #include "platform/network/NetworkHints.h" |
49 #include "platform/network/ResourceRequest.h" | 49 #include "platform/network/ResourceRequest.h" |
50 #include "platform/weborigin/KnownPorts.h" | 50 #include "platform/weborigin/KnownPorts.h" |
51 #include "platform/weborigin/SecurityOrigin.h" | 51 #include "platform/weborigin/SecurityOrigin.h" |
52 #include "platform/weborigin/SecurityPolicy.h" | 52 #include "platform/weborigin/SecurityPolicy.h" |
53 #include "public/platform/Platform.h" | 53 #include "public/platform/Platform.h" |
54 #include "public/platform/WebURL.h" | 54 #include "public/platform/WebURL.h" |
55 #include "public/platform/WebURLRequest.h" | 55 #include "public/platform/WebURLRequest.h" |
56 #include "wtf/text/StringBuilder.h" | 56 #include "wtf/text/StringBuilder.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ASSERT(event->target()); | 124 ASSERT(event->target()); |
125 Node* target = event->target()->toNode(); | 125 Node* target = event->target()->toNode(); |
126 ASSERT(target); | 126 ASSERT(target); |
127 if (!isHTMLImageElement(*target)) | 127 if (!isHTMLImageElement(*target)) |
128 return; | 128 return; |
129 | 129 |
130 HTMLImageElement& imageElement = toHTMLImageElement(*target); | 130 HTMLImageElement& imageElement = toHTMLImageElement(*target); |
131 if (!imageElement.isServerMap()) | 131 if (!imageElement.isServerMap()) |
132 return; | 132 return; |
133 | 133 |
134 if (!imageElement.renderer() || !imageElement.renderer()->isRenderImage()) | 134 if (!imageElement.renderer() || !imageElement.renderer()->isLayoutImage()) |
135 return; | 135 return; |
136 RenderImage* renderer = toRenderImage(imageElement.renderer()); | 136 LayoutImage* renderer = toLayoutImage(imageElement.renderer()); |
137 | 137 |
138 // FIXME: This should probably pass true for useTransforms. | 138 // FIXME: This should probably pass true for useTransforms. |
139 FloatPoint absolutePosition = renderer->absoluteToLocal(FloatPoint(toMouseEv
ent(event)->pageX(), toMouseEvent(event)->pageY())); | 139 FloatPoint absolutePosition = renderer->absoluteToLocal(FloatPoint(toMouseEv
ent(event)->pageX(), toMouseEvent(event)->pageY())); |
140 int x = absolutePosition.x(); | 140 int x = absolutePosition.x(); |
141 int y = absolutePosition.y(); | 141 int y = absolutePosition.y(); |
142 url.append('?'); | 142 url.append('?'); |
143 url.appendNumber(x); | 143 url.appendNumber(x); |
144 url.append(','); | 144 url.append(','); |
145 url.appendNumber(y); | 145 url.appendNumber(y); |
146 } | 146 } |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 Vector<String> argv; | 388 Vector<String> argv; |
389 argv.append("a"); | 389 argv.append("a"); |
390 argv.append(fastGetAttribute(hrefAttr)); | 390 argv.append(fastGetAttribute(hrefAttr)); |
391 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()
); | 391 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()
); |
392 } | 392 } |
393 } | 393 } |
394 return HTMLElement::insertedInto(insertionPoint); | 394 return HTMLElement::insertedInto(insertionPoint); |
395 } | 395 } |
396 | 396 |
397 } | 397 } |
OLD | NEW |