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

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

Issue 2043273002: Defer compositor keyframe snapshots until the next style resolve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 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 Library General Public 6 * modify it under the terms of the GNU Library 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 static StyleResolver* create(Document& document) 82 static StyleResolver* create(Document& document)
83 { 83 {
84 return new StyleResolver(document); 84 return new StyleResolver(document);
85 } 85 }
86 ~StyleResolver(); 86 ~StyleResolver();
87 void dispose(); 87 void dispose();
88 88
89 PassRefPtr<ComputedStyle> styleForElement(Element*, const ComputedStyle* par entStyle = 0, StyleSharingBehavior = AllowStyleSharing, 89 PassRefPtr<ComputedStyle> styleForElement(Element*, const ComputedStyle* par entStyle = 0, StyleSharingBehavior = AllowStyleSharing,
90 RuleMatchingBehavior = MatchAllRules); 90 RuleMatchingBehavior = MatchAllRules);
91 91
92 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(Element&, c onst ComputedStyle* baseStyle, CSSPropertyID, const CSSValue*); 92 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(Element&, c onst ComputedStyle& baseStyle, const ComputedStyle* parentStyle, CSSPropertyID, const CSSValue*);
93 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(StyleResolv erState&, CSSPropertyID, const CSSValue*);
94 93
95 PassRefPtr<ComputedStyle> pseudoStyleForElement(Element*, const PseudoStyleR equest&, const ComputedStyle* parentStyle); 94 PassRefPtr<ComputedStyle> pseudoStyleForElement(Element*, const PseudoStyleR equest&, const ComputedStyle* parentStyle);
96 95
97 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); 96 PassRefPtr<ComputedStyle> styleForPage(int pageIndex);
98 PassRefPtr<ComputedStyle> styleForText(Text*); 97 PassRefPtr<ComputedStyle> styleForText(Text*);
99 98
100 static PassRefPtr<ComputedStyle> styleForDocument(Document&); 99 static PassRefPtr<ComputedStyle> styleForDocument(Document&);
101 100
102 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte r we factor StyleResolver further. 101 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte r we factor StyleResolver further.
103 // https://bugs.webkit.org/show_bug.cgi?id=108890 102 // https://bugs.webkit.org/show_bug.cgi?id=108890
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 bool m_printMediaType; 251 bool m_printMediaType;
253 bool m_hasFullscreenUAStyle = false; 252 bool m_hasFullscreenUAStyle = false;
254 253
255 unsigned m_styleSharingDepth; 254 unsigned m_styleSharingDepth;
256 HeapVector<Member<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLis ts; 255 HeapVector<Member<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLis ts;
257 }; 256 };
258 257
259 } // namespace blink 258 } // namespace blink
260 259
261 #endif // StyleResolver_h 260 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698