OLD | NEW |
---|---|
(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 | |
OLD | NEW |