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

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

Issue 1925043002: Clean up ShadowRootRareData, ShadowRoot and SlotAssignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed Created 4 years, 7 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
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 3369 matching lines...) Expand 10 before | Expand all | Expand 10 after
3380 Frame* parent = m_frame->tree().parent(); 3380 Frame* parent = m_frame->tree().parent();
3381 while (parent) { 3381 while (parent) {
3382 if (!isOriginPotentiallyTrustworthy(parent->securityContext()->getSe curityOrigin(), errorMessage)) 3382 if (!isOriginPotentiallyTrustworthy(parent->securityContext()->getSe curityOrigin(), errorMessage))
3383 return false; 3383 return false;
3384 parent = parent->tree().parent(); 3384 parent = parent->tree().parent();
3385 } 3385 }
3386 } 3386 }
3387 return true; 3387 return true;
3388 } 3388 }
3389 3389
3390 StyleSheetList* Document::styleSheets() 3390 StyleSheetList& Document::styleSheets()
3391 { 3391 {
3392 if (!m_styleSheetList) 3392 if (!m_styleSheetList)
3393 m_styleSheetList = StyleSheetList::create(this); 3393 m_styleSheetList = StyleSheetList::create(this);
3394 return m_styleSheetList.get(); 3394 return *m_styleSheetList;
3395 } 3395 }
3396 3396
3397 String Document::preferredStylesheetSet() const 3397 String Document::preferredStylesheetSet() const
3398 { 3398 {
3399 return m_styleEngine->preferredStylesheetSetName(); 3399 return m_styleEngine->preferredStylesheetSetName();
3400 } 3400 }
3401 3401
3402 String Document::selectedStylesheetSet() const 3402 String Document::selectedStylesheetSet() const
3403 { 3403 {
3404 return m_styleEngine->selectedStylesheetSetName(); 3404 return m_styleEngine->selectedStylesheetSetName();
(...skipping 2547 matching lines...) Expand 10 before | Expand all | Expand 10 after
5952 #ifndef NDEBUG 5952 #ifndef NDEBUG
5953 using namespace blink; 5953 using namespace blink;
5954 void showLiveDocumentInstances() 5954 void showLiveDocumentInstances()
5955 { 5955 {
5956 Document::WeakDocumentSet& set = Document::liveDocumentSet(); 5956 Document::WeakDocumentSet& set = Document::liveDocumentSet();
5957 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5957 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5958 for (Document* document : set) 5958 for (Document* document : set)
5959 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); 5959 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data());
5960 } 5960 }
5961 #endif 5961 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698