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

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

Issue 237233002: Move 'embeds' / 'plugins' attributes from HTMLDocument to Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Attempt to fix Windows build Created 6 years, 8 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 4432 matching lines...) Expand 10 before | Expand all | Expand 10 after
4443 PassRefPtr<HTMLCollection> Document::forms() 4443 PassRefPtr<HTMLCollection> Document::forms()
4444 { 4444 {
4445 return ensureCachedCollection(DocForms); 4445 return ensureCachedCollection(DocForms);
4446 } 4446 }
4447 4447
4448 PassRefPtr<HTMLCollection> Document::anchors() 4448 PassRefPtr<HTMLCollection> Document::anchors()
4449 { 4449 {
4450 return ensureCachedCollection(DocAnchors); 4450 return ensureCachedCollection(DocAnchors);
4451 } 4451 }
4452 4452
4453 PassRefPtr<HTMLCollection> Document::allForBinding() 4453 PassRefPtr<HTMLAllCollection> Document::allForBinding()
4454 { 4454 {
4455 UseCounter::count(*this, UseCounter::DocumentAll); 4455 UseCounter::count(*this, UseCounter::DocumentAll);
4456 return all(); 4456 return all();
4457 } 4457 }
4458 4458
4459 PassRefPtr<HTMLCollection> Document::all() 4459 PassRefPtr<HTMLAllCollection> Document::all()
4460 { 4460 {
4461 return ensureRareData().ensureNodeLists().addCache<HTMLAllCollection>(*this, DocAll); 4461 return ensureRareData().ensureNodeLists().addCache<HTMLAllCollection>(*this, DocAll);
4462 } 4462 }
4463 4463
4464 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name) 4464 PassRefPtr<HTMLCollection> Document::windowNamedItems(const AtomicString& name)
4465 { 4465 {
4466 return ensureRareData().ensureNodeLists().addCache<HTMLNameCollection>(*this , WindowNamedItems, name); 4466 return ensureRareData().ensureNodeLists().addCache<HTMLNameCollection>(*this , WindowNamedItems, name);
4467 } 4467 }
4468 4468
4469 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name ) 4469 PassRefPtr<HTMLCollection> Document::documentNamedItems(const AtomicString& name )
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
5538 (*it)->invalidateCache(attrName); 5538 (*it)->invalidateCache(attrName);
5539 } 5539 }
5540 5540
5541 void Document::trace(Visitor* visitor) 5541 void Document::trace(Visitor* visitor)
5542 { 5542 {
5543 Supplementable<Document>::trace(visitor); 5543 Supplementable<Document>::trace(visitor);
5544 ContainerNode::trace(visitor); 5544 ContainerNode::trace(visitor);
5545 } 5545 }
5546 5546
5547 } // namespace WebCore 5547 } // 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