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

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

Issue 684633006: Reattach whitespace siblings only when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 1 month 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/dom/Element.cpp ('k') | 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 CreateSVGElement = CreateElement | IsSVGFlag, 737 CreateSVGElement = CreateElement | IsSVGFlag,
738 CreateDocument = CreateContainer | InDocumentFlag, 738 CreateDocument = CreateContainer | InDocumentFlag,
739 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, 739 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag,
740 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, 740 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag,
741 }; 741 };
742 742
743 Node(TreeScope*, ConstructionType); 743 Node(TreeScope*, ConstructionType);
744 744
745 virtual void didMoveToNewDocument(Document& oldDocument); 745 virtual void didMoveToNewDocument(Document& oldDocument);
746 746
747 static void reattachWhitespaceSiblings(Text* start); 747 static void reattachWhitespaceSiblingsIfNeeded(Text* start);
748 748
749 #if !ENABLE(OILPAN) 749 #if !ENABLE(OILPAN)
750 void willBeDeletedFromDocument(); 750 void willBeDeletedFromDocument();
751 #endif 751 #endif
752 752
753 bool hasRareData() const { return getFlag(HasRareDataFlag); } 753 bool hasRareData() const { return getFlag(HasRareDataFlag); }
754 754
755 NodeRareData* rareData() const; 755 NodeRareData* rareData() const;
756 NodeRareData& ensureRareData(); 756 NodeRareData& ensureRareData();
757 #if !ENABLE(OILPAN) 757 #if !ENABLE(OILPAN)
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 } // namespace blink 894 } // namespace blink
895 895
896 #ifndef NDEBUG 896 #ifndef NDEBUG
897 // Outside the WebCore namespace for ease of invocation from gdb. 897 // Outside the WebCore namespace for ease of invocation from gdb.
898 void showNode(const blink::Node*); 898 void showNode(const blink::Node*);
899 void showTree(const blink::Node*); 899 void showTree(const blink::Node*);
900 void showNodePath(const blink::Node*); 900 void showNodePath(const blink::Node*);
901 #endif 901 #endif
902 902
903 #endif // Node_h 903 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698