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

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

Issue 112953007: Make TreeScope::documentScope() return a reference and ensure m_documentScope is never NULL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added FIXMEs Created 6 years, 11 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/StyleSheetList.h ('k') | Source/core/dom/Document.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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 bool hasPendingForcedStyleRecalc() const; 632 bool hasPendingForcedStyleRecalc() const;
633 void styleRecalcTimerFired(Timer<Document>*); 633 void styleRecalcTimerFired(Timer<Document>*);
634 634
635 void registerNodeList(LiveNodeListBase*); 635 void registerNodeList(LiveNodeListBase*);
636 void unregisterNodeList(LiveNodeListBase*); 636 void unregisterNodeList(LiveNodeListBase*);
637 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = 0) const ; 637 bool shouldInvalidateNodeListCaches(const QualifiedName* attrName = 0) const ;
638 void invalidateNodeListCaches(const QualifiedName* attrName); 638 void invalidateNodeListCaches(const QualifiedName* attrName);
639 639
640 void attachNodeIterator(NodeIterator*); 640 void attachNodeIterator(NodeIterator*);
641 void detachNodeIterator(NodeIterator*); 641 void detachNodeIterator(NodeIterator*);
642 void moveNodeIteratorsToNewDocument(Node*, Document*); 642 void moveNodeIteratorsToNewDocument(Node&, Document&);
643 643
644 void attachRange(Range*); 644 void attachRange(Range*);
645 void detachRange(Range*); 645 void detachRange(Range*);
646 646
647 void updateRangesAfterChildrenChanged(ContainerNode*); 647 void updateRangesAfterChildrenChanged(ContainerNode*);
648 // nodeChildrenWillBeRemoved is used when removing all node children at once . 648 // nodeChildrenWillBeRemoved is used when removing all node children at once .
649 void nodeChildrenWillBeRemoved(ContainerNode*); 649 void nodeChildrenWillBeRemoved(ContainerNode*);
650 // nodeWillBeRemoved is only safe when removing one node at a time. 650 // nodeWillBeRemoved is only safe when removing one node at a time.
651 void nodeWillBeRemoved(Node&); 651 void nodeWillBeRemoved(Node&);
652 bool canReplaceChild(const Node& newChild, const Node& oldChild) const; 652 bool canReplaceChild(const Node& newChild, const Node& oldChild) const;
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 inline bool Node::isDocumentNode() const 1350 inline bool Node::isDocumentNode() const
1351 { 1351 {
1352 return this == document(); 1352 return this == document();
1353 } 1353 }
1354 1354
1355 Node* eventTargetNodeForDocument(Document*); 1355 Node* eventTargetNodeForDocument(Document*);
1356 1356
1357 } // namespace WebCore 1357 } // namespace WebCore
1358 1358
1359 #endif // Document_h 1359 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/css/StyleSheetList.h ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698