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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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/ScriptedAnimationController.cpp ('k') | Source/core/dom/Text.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, 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 , m_usesSiblingRules(false) 78 , m_usesSiblingRules(false)
79 , m_usesSiblingRulesOverride(false) 79 , m_usesSiblingRulesOverride(false)
80 , m_usesFirstLineRules(false) 80 , m_usesFirstLineRules(false)
81 , m_usesFirstLetterRules(false) 81 , m_usesFirstLetterRules(false)
82 , m_usesRemUnits(false) 82 , m_usesRemUnits(false)
83 , m_maxDirectAdjacentSelectors(0) 83 , m_maxDirectAdjacentSelectors(0)
84 , m_ignorePendingStylesheets(false) 84 , m_ignorePendingStylesheets(false)
85 , m_didCalculateResolver(false) 85 , m_didCalculateResolver(false)
86 // We don't need to create CSSFontSelector for imported document or 86 // We don't need to create CSSFontSelector for imported document or
87 // HTMLTemplateElement's document, because those documents have no frame. 87 // HTMLTemplateElement's document, because those documents have no frame.
88 , m_fontSelector(document.frame() ? CSSFontSelector::create(&document) : 0) 88 , m_fontSelector(document.frame() ? CSSFontSelector::create(&document) : nul lptr)
89 { 89 {
90 } 90 }
91 91
92 StyleEngine::~StyleEngine() 92 StyleEngine::~StyleEngine()
93 { 93 {
94 for (unsigned i = 0; i < m_injectedAuthorStyleSheets.size(); ++i) 94 for (unsigned i = 0; i < m_injectedAuthorStyleSheets.size(); ++i)
95 m_injectedAuthorStyleSheets[i]->clearOwnerNode(); 95 m_injectedAuthorStyleSheets[i]->clearOwnerNode();
96 for (unsigned i = 0; i < m_authorStyleSheets.size(); ++i) 96 for (unsigned i = 0; i < m_authorStyleSheets.size(); ++i)
97 m_authorStyleSheets[i]->clearOwnerNode(); 97 m_authorStyleSheets[i]->clearOwnerNode();
98 98
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 { 610 {
611 HashMap<StyleSheetContents*, AtomicString>::iterator it = sheetToTextCache() .find(contents); 611 HashMap<StyleSheetContents*, AtomicString>::iterator it = sheetToTextCache() .find(contents);
612 if (it == sheetToTextCache().end()) 612 if (it == sheetToTextCache().end())
613 return; 613 return;
614 614
615 textToSheetCache().remove(it->value); 615 textToSheetCache().remove(it->value);
616 sheetToTextCache().remove(contents); 616 sheetToTextCache().remove(contents);
617 } 617 }
618 618
619 } 619 }
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptedAnimationController.cpp ('k') | Source/core/dom/Text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698