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

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

Issue 421293004: Move Node::enclosingBlockFlowElement() to htmlediting.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Node.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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // Uses an editing-specific concept of what a leaf node is, and should proba bly be moved 319 // Uses an editing-specific concept of what a leaf node is, and should proba bly be moved
320 // out of the Node class into an editing-specific source file. 320 // out of the Node class into an editing-specific source file.
321 Node* nextLeafNode() const; 321 Node* nextLeafNode() const;
322 322
323 // Returns the previous leaf node or 0 if there are no more. 323 // Returns the previous leaf node or 0 if there are no more.
324 // Delivers leaf nodes as if the whole DOM tree were a linear chain of its l eaf nodes. 324 // Delivers leaf nodes as if the whole DOM tree were a linear chain of its l eaf nodes.
325 // Uses an editing-specific concept of what a leaf node is, and should proba bly be moved 325 // Uses an editing-specific concept of what a leaf node is, and should proba bly be moved
326 // out of the Node class into an editing-specific source file. 326 // out of the Node class into an editing-specific source file.
327 Node* previousLeafNode() const; 327 Node* previousLeafNode() const;
328 328
329 // enclosingBlockFlowElement() is deprecated. Use enclosingBlock instead.
330 Element* enclosingBlockFlowElement() const;
331
332 bool isRootEditableElement() const; 329 bool isRootEditableElement() const;
333 Element* rootEditableElement() const; 330 Element* rootEditableElement() const;
334 Element* rootEditableElement(EditableType) const; 331 Element* rootEditableElement(EditableType) const;
335 332
336 bool inSameContainingBlockFlowElement(Node*);
337
338 // For <link> and <style> elements. 333 // For <link> and <style> elements.
339 virtual bool sheetLoaded() { return true; } 334 virtual bool sheetLoaded() { return true; }
340 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool /* error loadi ng subresource */) { } 335 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool /* error loadi ng subresource */) { }
341 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); } 336 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); }
342 337
343 bool hasName() const { return !isTextNode() && getFlag(HasNameOrIsEditingTex tFlag); } 338 bool hasName() const { return !isTextNode() && getFlag(HasNameOrIsEditingTex tFlag); }
344 339
345 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag); } 340 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag); }
346 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag ); } 341 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag ); }
347 342
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } // namespace blink 891 } // namespace blink
897 892
898 #ifndef NDEBUG 893 #ifndef NDEBUG
899 // Outside the WebCore namespace for ease of invocation from gdb. 894 // Outside the WebCore namespace for ease of invocation from gdb.
900 void showNode(const blink::Node*); 895 void showNode(const blink::Node*);
901 void showTree(const blink::Node*); 896 void showTree(const blink::Node*);
902 void showNodePath(const blink::Node*); 897 void showNodePath(const blink::Node*);
903 #endif 898 #endif
904 899
905 #endif 900 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698