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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1910263003: Generate CSSPropertyEquality instead of using hand-updated file. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests2! Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 929b742a6a0ea87a367331f70d48c270d277fe57..00a4b12348bc551aa8719a3401879d5fa436ffce 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -132,6 +132,7 @@ class CORE_EXPORT ComputedStyle: public RefCounted<ComputedStyle> {
friend class AnimatedStyleBuilder; // Used by Web Animations CSS. Sets the color styles
friend class CSSAnimatableValueFactory; // Used by Web Animations CSS. Gets visited and unvisited colors separately.
friend class CSSPropertyEquality; // Used by CSS animations. We can't allow them to animate based off visited colors.
+ friend class CSSPropertyEqualityCustom; // Used by CSS animations. We can't allow them to animate based off visited colors.
Timothy Loh 2016/05/24 05:38:35 do we need to friend both of these?
friend class ApplyStyleCommand; // Editing has to only reveal unvisited info.
friend class EditingStyle; // Editing has to only reveal unvisited info.
friend class ComputedStyleCSSValueMapping; // Needs to be able to see visited and unvisited colors for devtools.
@@ -961,6 +962,20 @@ public:
const CSSAnimationData* animations() const { return rareNonInheritedData->m_animations.get(); }
const CSSTransitionData* transitions() const { return rareNonInheritedData->m_transitions.get(); }
+ const Vector<double>* transitionDelayList() const { return transitions() ? &transitions()->delayList() : nullptr; }
+ const Vector<double>* transitionDurationList() const { return transitions() ? &transitions()->durationList() : nullptr; }
+ const Vector<RefPtr<TimingFunction>>* transitionTimingFunctionList() const { return transitions() ? &transitions()->timingFunctionList() : nullptr; }
+ const Vector<CSSTransitionData::TransitionProperty>* transitionPropertyList() const { return transitions() ? &transitions()->propertyList() : nullptr; }
+
+ const Vector<double>* animationDelayList() const { return animations() ? &animations()->delayList() : nullptr; }
+ const Vector<double>* animationDurationList() const { return animations() ? &animations()->durationList() : nullptr; }
+ const Vector<RefPtr<TimingFunction>>* animationTimingFunctionList() const { return animations() ? &animations()-> timingFunctionList() : nullptr; }
+ const Vector<AtomicString>* animationNameList() const { return animations() ? &animations()->nameList() : nullptr; }
+ const Vector<double>* animationIterationCountList() const { return animations() ? &animations()->iterationCountList() : nullptr; }
+ const Vector<Timing::PlaybackDirection>* animationDirectionList() const { return animations() ? &animations()->directionList() : nullptr; }
+ const Vector<Timing::FillMode>* animationFillModeList() const { return animations() ? &animations()->fillModeList() : nullptr; }
+ const Vector<EAnimPlayState>* animationPlayStateList() const { return animations() ? &animations()->playStateList() : nullptr; }
+
CSSAnimationData& accessAnimations();
CSSTransitionData& accessTransitions();

Powered by Google App Engine
This is Rietveld 408576698