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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/WindowGetComputedStyle.h

Issue 1849653003: Implement ComputedStylePropertyMap for Typed OM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maps-inline
Patch Set: Update global-interface-listing Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WindowGetComputedStyle_h
6 #define WindowGetComputedStyle_h
7
8 #include "core/css/CSSComputedStyleDeclaration.h"
9 #include "core/css/cssom/ComputedStylePropertyMap.h"
10 #include "core/dom/Document.h"
11 #include "wtf/Allocator.h"
12
13 namespace blink {
14
15 class WindowGetComputedStyle {
16 STATIC_ONLY(WindowGetComputedStyle);
17 public:
18 static StylePropertyMap* getComputedStyleMap(const DOMWindow&, Element* elt, const String& pseudoElt)
19 {
20 ASSERT(elt);
Timothy Loh 2016/03/31 06:59:25 Not sure about this, what happens if you use null?
meade_UTC10 2016/04/04 03:32:41 Done. FWIW, this was pretty much copied from here:
21 RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> computedStyleDeclaration = CSSComputedStyleDeclaration::create(elt, false, pseudoElt);
22 return ComputedStylePropertyMap::create(computedStyleDeclaration);
23 }
24 };
25
26 } // namespace blink
27
28 #endif // WindowGetComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698