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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2081 if (Page* page = document().page()) | 2081 if (Page* page = document().page()) |
2082 page->contextMenuController().handleContextMenuEvent(event); | 2082 page->contextMenuController().handleContextMenuEvent(event); |
2083 } else if (eventType == EventTypeNames::textInput) { | 2083 } else if (eventType == EventTypeNames::textInput) { |
2084 if (event->hasInterface(EventNames::TextEvent)) { | 2084 if (event->hasInterface(EventNames::TextEvent)) { |
2085 if (LocalFrame* frame = document().frame()) | 2085 if (LocalFrame* frame = document().frame()) |
2086 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e
vent)); | 2086 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e
vent)); |
2087 } | 2087 } |
2088 #if OS(WIN) | 2088 #if OS(WIN) |
2089 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent())
{ | 2089 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent())
{ |
2090 MouseEvent* mouseEvent = toMouseEvent(event); | 2090 MouseEvent* mouseEvent = toMouseEvent(event); |
2091 if (mouseEvent->button() == MiddleButton) { | 2091 if (mouseEvent->button() == static_cast<short>(WebPointerProperties::But
ton::Middle)) { |
2092 if (enclosingLinkEventParentOrSelf()) | 2092 if (enclosingLinkEventParentOrSelf()) |
2093 return; | 2093 return; |
2094 | 2094 |
2095 // Avoid that canBeScrolledAndHasScrollableArea changes layout tree | 2095 // Avoid that canBeScrolledAndHasScrollableArea changes layout tree |
2096 // structure. | 2096 // structure. |
2097 // FIXME: We should avoid synchronous layout if possible. We can | 2097 // FIXME: We should avoid synchronous layout if possible. We can |
2098 // remove this synchronous layout if we avoid synchronous layout in | 2098 // remove this synchronous layout if we avoid synchronous layout in |
2099 // LayoutTextControlSingleLine::scrollHeight | 2099 // LayoutTextControlSingleLine::scrollHeight |
2100 document().updateStyleAndLayoutIgnorePendingStylesheets(); | 2100 document().updateStyleAndLayoutIgnorePendingStylesheets(); |
2101 LayoutObject* layoutObject = this->layoutObject(); | 2101 LayoutObject* layoutObject = this->layoutObject(); |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2410 | 2410 |
2411 void showNodePath(const blink::Node* node) | 2411 void showNodePath(const blink::Node* node) |
2412 { | 2412 { |
2413 if (node) | 2413 if (node) |
2414 node->showNodePathForThis(); | 2414 node->showNodePathForThis(); |
2415 else | 2415 else |
2416 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2416 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
2417 } | 2417 } |
2418 | 2418 |
2419 #endif | 2419 #endif |
OLD | NEW |