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

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

Issue 6685081: Merge 80487 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 9 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/WebCore/dom/ContainerNode.cpp ('k') | Source/WebCore/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, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 { 347 {
348 ASSERT(this); 348 ASSERT(this);
349 ASSERT(m_document || (nodeType() == DOCUMENT_TYPE_NODE && !inDocument()) ); 349 ASSERT(m_document || (nodeType() == DOCUMENT_TYPE_NODE && !inDocument()) );
350 return m_document; 350 return m_document;
351 } 351 }
352 352
353 // Do not use this method to change the document of a node until after the n ode has been 353 // Do not use this method to change the document of a node until after the n ode has been
354 // removed from its previous document. 354 // removed from its previous document.
355 void setDocument(Document*); 355 void setDocument(Document*);
356 356
357 // Used by the basic DOM methods (e.g., appendChild()).
358 void setDocumentRecursively(Document*);
359
357 // Returns true if this node is associated with a document and is in its ass ociated document's 360 // Returns true if this node is associated with a document and is in its ass ociated document's
358 // node tree, false otherwise. 361 // node tree, false otherwise.
359 bool inDocument() const 362 bool inDocument() const
360 { 363 {
361 ASSERT(m_document || !getFlag(InDocumentFlag)); 364 ASSERT(m_document || !getFlag(InDocumentFlag));
362 return getFlag(InDocumentFlag); 365 return getFlag(InDocumentFlag);
363 } 366 }
364 367
365 bool isReadOnlyNode() const { return nodeType() == ENTITY_REFERENCE_NODE; } 368 bool isReadOnlyNode() const { return nodeType() == ENTITY_REFERENCE_NODE; }
366 virtual bool childTypeAllowed(NodeType) { return false; } 369 virtual bool childTypeAllowed(NodeType) { return false; }
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 bool hasRareData() const { return getFlag(HasRareDataFlag); } 642 bool hasRareData() const { return getFlag(HasRareDataFlag); }
640 643
641 NodeRareData* rareData() const; 644 NodeRareData* rareData() const;
642 NodeRareData* ensureRareData(); 645 NodeRareData* ensureRareData();
643 646
644 private: 647 private:
645 #if USE(JSC) 648 #if USE(JSC)
646 void markCachedNodeListsSlow(JSC::MarkStack&, JSC::JSGlobalData&); 649 void markCachedNodeListsSlow(JSC::MarkStack&, JSC::JSGlobalData&);
647 #endif 650 #endif
648 651
649 void setDocumentRecursively(Document*);
650 void setStyleChange(StyleChangeType); 652 void setStyleChange(StyleChangeType);
651 653
652 // Used to share code between lazyAttach and setNeedsStyleRecalc. 654 // Used to share code between lazyAttach and setNeedsStyleRecalc.
653 void markAncestorsWithChildNeedsStyleRecalc(); 655 void markAncestorsWithChildNeedsStyleRecalc();
654 656
655 virtual void refEventTarget(); 657 virtual void refEventTarget();
656 virtual void derefEventTarget(); 658 virtual void derefEventTarget();
657 659
658 virtual NodeRareData* createRareData(); 660 virtual NodeRareData* createRareData();
659 bool rareDataFocused() const; 661 bool rareDataFocused() const;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 } 732 }
731 733
732 } //namespace 734 } //namespace
733 735
734 #ifndef NDEBUG 736 #ifndef NDEBUG
735 // Outside the WebCore namespace for ease of invocation from gdb. 737 // Outside the WebCore namespace for ease of invocation from gdb.
736 void showTree(const WebCore::Node*); 738 void showTree(const WebCore::Node*);
737 #endif 739 #endif
738 740
739 #endif 741 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/dom/ContainerNode.cpp ('k') | Source/WebCore/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698