| 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 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2133 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent())
{ | 2133 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent())
{ |
| 2134 MouseEvent* mouseEvent = toMouseEvent(event); | 2134 MouseEvent* mouseEvent = toMouseEvent(event); |
| 2135 if (mouseEvent->button() == MiddleButton) { | 2135 if (mouseEvent->button() == MiddleButton) { |
| 2136 if (enclosingLinkEventParentOrSelf()) | 2136 if (enclosingLinkEventParentOrSelf()) |
| 2137 return; | 2137 return; |
| 2138 | 2138 |
| 2139 // Avoid that canBeScrolledAndHasScrollableArea changes render tree | 2139 // Avoid that canBeScrolledAndHasScrollableArea changes render tree |
| 2140 // structure. | 2140 // structure. |
| 2141 // FIXME: We should avoid synchronous layout if possible. We can | 2141 // FIXME: We should avoid synchronous layout if possible. We can |
| 2142 // remove this synchronous layout if we avoid synchronous layout in | 2142 // remove this synchronous layout if we avoid synchronous layout in |
| 2143 // RenderTextControlSingleLine::scrollHeight | 2143 // LayoutTextControlSingleLine::scrollHeight |
| 2144 document().updateLayoutIgnorePendingStylesheets(); | 2144 document().updateLayoutIgnorePendingStylesheets(); |
| 2145 LayoutObject* renderer = this->renderer(); | 2145 LayoutObject* renderer = this->renderer(); |
| 2146 while (renderer && (!renderer->isBox() || !toRenderBox(renderer)->ca
nBeScrolledAndHasScrollableArea())) | 2146 while (renderer && (!renderer->isBox() || !toRenderBox(renderer)->ca
nBeScrolledAndHasScrollableArea())) |
| 2147 renderer = renderer->parent(); | 2147 renderer = renderer->parent(); |
| 2148 | 2148 |
| 2149 if (renderer) { | 2149 if (renderer) { |
| 2150 if (LocalFrame* frame = document().frame()) | 2150 if (LocalFrame* frame = document().frame()) |
| 2151 frame->eventHandler().startPanScrolling(renderer); | 2151 frame->eventHandler().startPanScrolling(renderer); |
| 2152 } | 2152 } |
| 2153 } | 2153 } |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2438 node->showTreeForThis(); | 2438 node->showTreeForThis(); |
| 2439 } | 2439 } |
| 2440 | 2440 |
| 2441 void showNodePath(const blink::Node* node) | 2441 void showNodePath(const blink::Node* node) |
| 2442 { | 2442 { |
| 2443 if (node) | 2443 if (node) |
| 2444 node->showNodePathForThis(); | 2444 node->showNodePathForThis(); |
| 2445 } | 2445 } |
| 2446 | 2446 |
| 2447 #endif | 2447 #endif |
| OLD | NEW |