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

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

Issue 2312293003: [CSSTypedOM] Computed StylePropertyMap use ComputedStyle for Lengths (Closed)
Patch Set: Change style recalc. Use CSSComputedStyleDec instead of CSSStyleDec. Created 4 years, 2 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
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public 6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 28 matching lines...) Expand all
39 class MutableStylePropertySet; 39 class MutableStylePropertySet;
40 class Node; 40 class Node;
41 class LayoutObject; 41 class LayoutObject;
42 class ComputedStyle; 42 class ComputedStyle;
43 class ShadowData; 43 class ShadowData;
44 class ShadowList; 44 class ShadowList;
45 class StyleColor; 45 class StyleColor;
46 class StylePropertyShorthand; 46 class StylePropertyShorthand;
47 47
48 class CORE_EXPORT CSSComputedStyleDeclaration final : public CSSStyleDeclaration { 48 class CORE_EXPORT CSSComputedStyleDeclaration final : public CSSStyleDeclaration {
49 friend class ComputedStylePropertyMap;
49 public: 50 public:
50 static CSSComputedStyleDeclaration* create(Node* node, bool allowVisitedStyl e = false, const String& pseudoElementName = String()) 51 static CSSComputedStyleDeclaration* create(Node* node, bool allowVisitedStyl e = false, const String& pseudoElementName = String())
51 { 52 {
52 return new CSSComputedStyleDeclaration(node, allowVisitedStyle, pseudoEl ementName); 53 return new CSSComputedStyleDeclaration(node, allowVisitedStyle, pseudoEl ementName);
53 } 54 }
54 ~CSSComputedStyleDeclaration() override; 55 ~CSSComputedStyleDeclaration() override;
55 56
56 String getPropertyValue(CSSPropertyID) const; 57 String getPropertyValue(CSSPropertyID) const;
57 bool getPropertyPriority(CSSPropertyID) const; 58 bool getPropertyPriority(CSSPropertyID) const;
58 59
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override; 103 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override;
103 104
104 Member<Node> m_node; 105 Member<Node> m_node;
105 PseudoId m_pseudoElementSpecifier; 106 PseudoId m_pseudoElementSpecifier;
106 bool m_allowVisitedStyle; 107 bool m_allowVisitedStyle;
107 }; 108 };
108 109
109 } // namespace blink 110 } // namespace blink
110 111
111 #endif // CSSComputedStyleDeclaration_h 112 #endif // CSSComputedStyleDeclaration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698