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

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

Issue 27207002: Add support for [PutForwards] IDL extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 7 years, 2 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/dom/Document.h ('k') | Source/core/dom/Document.idl » ('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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 if (!m_implementation) 672 if (!m_implementation)
673 m_implementation = DOMImplementation::create(this); 673 m_implementation = DOMImplementation::create(this);
674 return m_implementation.get(); 674 return m_implementation.get();
675 } 675 }
676 676
677 bool Document::hasManifest() const 677 bool Document::hasManifest() const
678 { 678 {
679 return documentElement() && isHTMLHtmlElement(documentElement()) && document Element()->hasAttribute(manifestAttr); 679 return documentElement() && isHTMLHtmlElement(documentElement()) && document Element()->hasAttribute(manifestAttr);
680 } 680 }
681 681
682 Location* Document::location() const
683 {
684 if (!frame())
685 return 0;
686
687 return domWindow()->location();
688 }
689
682 void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* a fterChange, int childCountDelta) 690 void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* a fterChange, int childCountDelta)
683 { 691 {
684 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c hildCountDelta); 692 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c hildCountDelta);
685 693
686 Element* newDocumentElement = ElementTraversal::firstWithin(this); 694 Element* newDocumentElement = ElementTraversal::firstWithin(this);
687 if (newDocumentElement == m_documentElement) 695 if (newDocumentElement == m_documentElement)
688 return; 696 return;
689 m_documentElement = newDocumentElement; 697 m_documentElement = newDocumentElement;
690 // The root style used for media query matching depends on the document elem ent. 698 // The root style used for media query matching depends on the document elem ent.
691 clearStyleResolver(); 699 clearStyleResolver();
(...skipping 4584 matching lines...) Expand 10 before | Expand all | Expand 10 after
5276 { 5284 {
5277 return DocumentLifecycleNotifier::create(this); 5285 return DocumentLifecycleNotifier::create(this);
5278 } 5286 }
5279 5287
5280 DocumentLifecycleNotifier* Document::lifecycleNotifier() 5288 DocumentLifecycleNotifier* Document::lifecycleNotifier()
5281 { 5289 {
5282 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo tifier()); 5290 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo tifier());
5283 } 5291 }
5284 5292
5285 } // namespace WebCore 5293 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698