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

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

Issue 408883003: Remove shouldUseInputMethod (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove shouldUseInputMethod completely Created 6 years, 5 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
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 600
601 ASSERT(AXObjectCache::accessibilityEnabled()); 601 ASSERT(AXObjectCache::accessibilityEnabled());
602 ASSERT(document().existingAXObjectCache()); 602 ASSERT(document().existingAXObjectCache());
603 603
604 if (AXObjectCache* cache = document().existingAXObjectCache()) 604 if (AXObjectCache* cache = document().existingAXObjectCache())
605 return cache->rootAXEditableElement(this); 605 return cache->rootAXEditableElement(this);
606 606
607 return false; 607 return false;
608 } 608 }
609 609
610 bool Node::shouldUseInputMethod()
611 {
612 return isContentEditable(UserSelectAllIsAlwaysNonEditable);
613 }
614
615 RenderBox* Node::renderBox() const 610 RenderBox* Node::renderBox() const
616 { 611 {
617 RenderObject* renderer = this->renderer(); 612 RenderObject* renderer = this->renderer();
618 return renderer && renderer->isBox() ? toRenderBox(renderer) : 0; 613 return renderer && renderer->isBox() ? toRenderBox(renderer) : 0;
619 } 614 }
620 615
621 RenderBoxModelObject* Node::renderBoxModelObject() const 616 RenderBoxModelObject* Node::renderBoxModelObject() const
622 { 617 {
623 RenderObject* renderer = this->renderer(); 618 RenderObject* renderer = this->renderer();
624 return renderer && renderer->isBoxModelObject() ? toRenderBoxModelObject(ren derer) : 0; 619 return renderer && renderer->isBoxModelObject() ? toRenderBoxModelObject(ren derer) : 0;
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
2579 node->showTreeForThis(); 2574 node->showTreeForThis();
2580 } 2575 }
2581 2576
2582 void showNodePath(const blink::Node* node) 2577 void showNodePath(const blink::Node* node)
2583 { 2578 {
2584 if (node) 2579 if (node)
2585 node->showNodePathForThis(); 2580 node->showNodePathForThis();
2586 } 2581 }
2587 2582
2588 #endif 2583 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698