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

Side by Side Diff: sky/engine/core/frame/LocalDOMWindow.cpp

Issue 883443003: Remove PseudoId. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.h ('k') | sky/engine/core/frame/Window.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) 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 return m_document.get(); 544 return m_document.get();
545 } 545 }
546 546
547 StyleMedia& LocalDOMWindow::styleMedia() const 547 StyleMedia& LocalDOMWindow::styleMedia() const
548 { 548 {
549 if (!m_media) 549 if (!m_media)
550 m_media = StyleMedia::create(m_frame); 550 m_media = StyleMedia::create(m_frame);
551 return *m_media; 551 return *m_media;
552 } 552 }
553 553
554 PassRefPtr<CSSStyleDeclaration> LocalDOMWindow::getComputedStyle(Element* elt, c onst String& pseudoElt) const 554 PassRefPtr<CSSStyleDeclaration> LocalDOMWindow::getComputedStyle(Element* elt) c onst
555 { 555 {
556 if (!elt) 556 if (!elt)
557 return nullptr; 557 return nullptr;
558 558
559 return CSSComputedStyleDeclaration::create(elt, false, pseudoElt); 559 return CSSComputedStyleDeclaration::create(elt, false);
560 } 560 }
561 561
562 double LocalDOMWindow::devicePixelRatio() const 562 double LocalDOMWindow::devicePixelRatio() const
563 { 563 {
564 if (!m_frame) 564 if (!m_frame)
565 return 0.0; 565 return 0.0;
566 566
567 return m_frame->devicePixelRatio(); 567 return m_frame->devicePixelRatio();
568 } 568 }
569 569
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 { 742 {
743 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier()); 743 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier());
744 } 744 }
745 745
746 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier() 746 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier()
747 { 747 {
748 return DOMWindowLifecycleNotifier::create(this); 748 return DOMWindowLifecycleNotifier::create(this);
749 } 749 }
750 750
751 } // namespace blink 751 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.h ('k') | sky/engine/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698