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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2527303002: CSS Motion Path: offset-anchor should default to auto (Closed)
Patch Set: comments Created 4 years 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 } 1413 }
1414 LengthPoint objectPosition() const { 1414 LengthPoint objectPosition() const {
1415 return m_rareNonInheritedData->m_objectPosition; 1415 return m_rareNonInheritedData->m_objectPosition;
1416 } 1416 }
1417 void setObjectPosition(LengthPoint position) { 1417 void setObjectPosition(LengthPoint position) {
1418 SET_VAR(m_rareNonInheritedData, m_objectPosition, position); 1418 SET_VAR(m_rareNonInheritedData, m_objectPosition, position);
1419 } 1419 }
1420 1420
1421 // offset-anchor 1421 // offset-anchor
1422 static LengthPoint initialOffsetAnchor() { 1422 static LengthPoint initialOffsetAnchor() {
1423 return LengthPoint(Length(50.0, Percent), Length(50.0, Percent)); 1423 return LengthPoint(Length(Auto), Length(Auto));
1424 } 1424 }
1425 const LengthPoint& offsetAnchor() const { 1425 const LengthPoint& offsetAnchor() const {
1426 return m_rareNonInheritedData->m_transform->m_motion.m_anchor; 1426 return m_rareNonInheritedData->m_transform->m_motion.m_anchor;
1427 } 1427 }
1428 void setOffsetAnchor(const LengthPoint& offsetAnchor) { 1428 void setOffsetAnchor(const LengthPoint& offsetAnchor) {
1429 SET_NESTED_VAR(m_rareNonInheritedData, m_transform, m_motion.m_anchor, 1429 SET_NESTED_VAR(m_rareNonInheritedData, m_transform, m_motion.m_anchor,
1430 offsetAnchor); 1430 offsetAnchor);
1431 } 1431 }
1432 1432
1433 // offset-distance 1433 // offset-distance
(...skipping 2642 matching lines...) Expand 10 before | Expand all | Expand 10 after
4076 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); 4076 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1);
4077 } 4077 }
4078 4078
4079 inline bool ComputedStyle::hasPseudoElementStyle() const { 4079 inline bool ComputedStyle::hasPseudoElementStyle() const {
4080 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 4080 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
4081 } 4081 }
4082 4082
4083 } // namespace blink 4083 } // namespace blink
4084 4084
4085 #endif // ComputedStyle_h 4085 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698