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: Source/core/dom/Node.cpp

Issue 922423002: Move rendering/RenderTextControl* to layout/LayoutTextControl* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/themeChromium.css ('k') | Source/core/editing/SpellChecker.cpp » ('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 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/css/themeChromium.css ('k') | Source/core/editing/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698