Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2252423002: Refactoring button field and its type (2nd try) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after
2088 if (Page* page = document().page()) 2088 if (Page* page = document().page())
2089 page->contextMenuController().handleContextMenuEvent(event); 2089 page->contextMenuController().handleContextMenuEvent(event);
2090 } else if (eventType == EventTypeNames::textInput) { 2090 } else if (eventType == EventTypeNames::textInput) {
2091 if (event->hasInterface(EventNames::TextEvent)) { 2091 if (event->hasInterface(EventNames::TextEvent)) {
2092 if (LocalFrame* frame = document().frame()) 2092 if (LocalFrame* frame = document().frame())
2093 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e vent)); 2093 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e vent));
2094 } 2094 }
2095 #if OS(WIN) 2095 #if OS(WIN)
2096 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent()) { 2096 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent()) {
2097 MouseEvent* mouseEvent = toMouseEvent(event); 2097 MouseEvent* mouseEvent = toMouseEvent(event);
2098 if (mouseEvent->button() == MiddleButton) { 2098 if (mouseEvent->button() == static_cast<short>(WebPointerProperties::But ton::Middle)) {
2099 if (enclosingLinkEventParentOrSelf()) 2099 if (enclosingLinkEventParentOrSelf())
2100 return; 2100 return;
2101 2101
2102 // Avoid that canBeScrolledAndHasScrollableArea changes layout tree 2102 // Avoid that canBeScrolledAndHasScrollableArea changes layout tree
2103 // structure. 2103 // structure.
2104 // FIXME: We should avoid synchronous layout if possible. We can 2104 // FIXME: We should avoid synchronous layout if possible. We can
2105 // remove this synchronous layout if we avoid synchronous layout in 2105 // remove this synchronous layout if we avoid synchronous layout in
2106 // LayoutTextControlSingleLine::scrollHeight 2106 // LayoutTextControlSingleLine::scrollHeight
2107 document().updateStyleAndLayoutIgnorePendingStylesheets(); 2107 document().updateStyleAndLayoutIgnorePendingStylesheets();
2108 LayoutObject* layoutObject = this->layoutObject(); 2108 LayoutObject* layoutObject = this->layoutObject();
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 2429
2430 void showNodePath(const blink::Node* node) 2430 void showNodePath(const blink::Node* node)
2431 { 2431 {
2432 if (node) 2432 if (node)
2433 node->showNodePathForThis(); 2433 node->showNodePathForThis();
2434 else 2434 else
2435 fprintf(stderr, "Cannot showNodePath for (nil)\n"); 2435 fprintf(stderr, "Cannot showNodePath for (nil)\n");
2436 } 2436 }
2437 2437
2438 #endif 2438 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698