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

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 bindings generator 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
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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 if (!m_implementation) 673 if (!m_implementation)
674 m_implementation = DOMImplementation::create(this); 674 m_implementation = DOMImplementation::create(this);
675 return m_implementation.get(); 675 return m_implementation.get();
676 } 676 }
677 677
678 bool Document::hasManifest() const 678 bool Document::hasManifest() const
679 { 679 {
680 return documentElement() && isHTMLHtmlElement(documentElement()) && document Element()->hasAttribute(manifestAttr); 680 return documentElement() && isHTMLHtmlElement(documentElement()) && document Element()->hasAttribute(manifestAttr);
681 } 681 }
682 682
683 Location* Document::location() const
684 {
685 if (!frame())
686 return 0;
687
688 return domWindow()->location();
689 }
690
683 void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* a fterChange, int childCountDelta) 691 void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* a fterChange, int childCountDelta)
684 { 692 {
685 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c hildCountDelta); 693 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c hildCountDelta);
686 694
687 Element* newDocumentElement = ElementTraversal::firstWithin(this); 695 Element* newDocumentElement = ElementTraversal::firstWithin(this);
688 if (newDocumentElement == m_documentElement) 696 if (newDocumentElement == m_documentElement)
689 return; 697 return;
690 m_documentElement = newDocumentElement; 698 m_documentElement = newDocumentElement;
691 // The root style used for media query matching depends on the document elem ent. 699 // The root style used for media query matching depends on the document elem ent.
692 clearStyleResolver(); 700 clearStyleResolver();
(...skipping 4576 matching lines...) Expand 10 before | Expand all | Expand 10 after
5269 { 5277 {
5270 return DocumentLifecycleNotifier::create(this); 5278 return DocumentLifecycleNotifier::create(this);
5271 } 5279 }
5272 5280
5273 DocumentLifecycleNotifier* Document::lifecycleNotifier() 5281 DocumentLifecycleNotifier* Document::lifecycleNotifier()
5274 { 5282 {
5275 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo tifier()); 5283 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo tifier());
5276 } 5284 }
5277 5285
5278 } // namespace WebCore 5286 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698