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 113 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()->isLayoutImage()) | 134 if (!imageElement.layoutObject() || !imageElement.layoutObject()->isLayoutIm
age()) |
135 return; | 135 return; |
136 LayoutImage* renderer = toLayoutImage(imageElement.renderer()); | 136 LayoutImage* renderer = toLayoutImage(imageElement.layoutObject()); |
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 |