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

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

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances 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 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 if (Page* page = document().page()) 2089 if (Page* page = document().page())
2090 page->contextMenuController().handleContextMenuEvent(event); 2090 page->contextMenuController().handleContextMenuEvent(event);
2091 } else if (eventType == EventTypeNames::textInput) { 2091 } else if (eventType == EventTypeNames::textInput) {
2092 if (event->hasInterface(EventNames::TextEvent)) { 2092 if (event->hasInterface(EventNames::TextEvent)) {
2093 if (LocalFrame* frame = document().frame()) 2093 if (LocalFrame* frame = document().frame())
2094 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e vent)); 2094 frame->eventHandler().defaultTextInputEventHandler(toTextEvent(e vent));
2095 } 2095 }
2096 #if OS(WIN) 2096 #if OS(WIN)
2097 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent()) { 2097 } else if (eventType == EventTypeNames::mousedown && event->isMouseEvent()) {
2098 MouseEvent* mouseEvent = toMouseEvent(event); 2098 MouseEvent* mouseEvent = toMouseEvent(event);
2099 if (mouseEvent->button() == MiddleButton) { 2099 if (mouseEvent->button() == static_cast<short>(WebPointerProperties::But ton::Middle)) {
2100 if (enclosingLinkEventParentOrSelf()) 2100 if (enclosingLinkEventParentOrSelf())
2101 return; 2101 return;
2102 2102
2103 // Avoid that canBeScrolledAndHasScrollableArea changes layout tree 2103 // Avoid that canBeScrolledAndHasScrollableArea changes layout tree
2104 // structure. 2104 // structure.
2105 // FIXME: We should avoid synchronous layout if possible. We can 2105 // FIXME: We should avoid synchronous layout if possible. We can
2106 // remove this synchronous layout if we avoid synchronous layout in 2106 // remove this synchronous layout if we avoid synchronous layout in
2107 // LayoutTextControlSingleLine::scrollHeight 2107 // LayoutTextControlSingleLine::scrollHeight
2108 document().updateStyleAndLayoutIgnorePendingStylesheets(); 2108 document().updateStyleAndLayoutIgnorePendingStylesheets();
2109 LayoutObject* layoutObject = this->layoutObject(); 2109 LayoutObject* layoutObject = this->layoutObject();
(...skipping 319 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