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

Side by Side Diff: Source/core/frame/DOMWindow.cpp

Issue 195953003: Oilpan: Move CSSStyleDeclaration and subclasses to the heap using transistion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback Created 6 years, 9 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/frame/DOMWindow.h ('k') | Source/core/inspector/InspectorCSSAgent.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) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 return m_document.get(); 1284 return m_document.get();
1285 } 1285 }
1286 1286
1287 StyleMedia& DOMWindow::styleMedia() const 1287 StyleMedia& DOMWindow::styleMedia() const
1288 { 1288 {
1289 if (!m_media) 1289 if (!m_media)
1290 m_media = StyleMedia::create(m_frame); 1290 m_media = StyleMedia::create(m_frame);
1291 return *m_media; 1291 return *m_media;
1292 } 1292 }
1293 1293
1294 PassRefPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* elt, const String& pseudoElt) const 1294 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* elt, const String& pseudoElt) const
1295 { 1295 {
1296 if (!elt) 1296 if (!elt)
1297 return nullptr; 1297 return nullptr;
1298 1298
1299 return CSSComputedStyleDeclaration::create(elt, false, pseudoElt); 1299 return CSSComputedStyleDeclaration::create(elt, false, pseudoElt);
1300 } 1300 }
1301 1301
1302 PassRefPtrWillBeRawPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* eleme nt, const String& pseudoElement) const 1302 PassRefPtrWillBeRawPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* eleme nt, const String& pseudoElement) const
1303 { 1303 {
1304 UseCounter::count(document(), UseCounter::GetMatchedCSSRules); 1304 UseCounter::count(document(), UseCounter::GetMatchedCSSRules);
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>: :lifecycleNotifier()); 1861 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>: :lifecycleNotifier());
1862 } 1862 }
1863 1863
1864 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() 1864 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier()
1865 { 1865 {
1866 return DOMWindowLifecycleNotifier::create(this); 1866 return DOMWindowLifecycleNotifier::create(this);
1867 } 1867 }
1868 1868
1869 1869
1870 } // namespace WebCore 1870 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698