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

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

Issue 2767213003: First Implementation of Snapped Points
Patch Set: Rebase and format Created 3 years, 6 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, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
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 Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 CSSPropertyStrokeDashoffset, CSSPropertyStrokeLinecap, 169 CSSPropertyStrokeDashoffset, CSSPropertyStrokeLinecap,
170 CSSPropertyStrokeLinejoin, CSSPropertyStrokeMiterlimit, 170 CSSPropertyStrokeLinejoin, CSSPropertyStrokeMiterlimit,
171 CSSPropertyStrokeOpacity, CSSPropertyStrokeWidth, 171 CSSPropertyStrokeOpacity, CSSPropertyStrokeWidth,
172 CSSPropertyAlignmentBaseline, CSSPropertyBaselineShift, 172 CSSPropertyAlignmentBaseline, CSSPropertyBaselineShift,
173 CSSPropertyDominantBaseline, CSSPropertyTextAnchor, CSSPropertyWritingMode, 173 CSSPropertyDominantBaseline, CSSPropertyTextAnchor, CSSPropertyWritingMode,
174 CSSPropertyVectorEffect, CSSPropertyPaintOrder, CSSPropertyD, CSSPropertyCx, 174 CSSPropertyVectorEffect, CSSPropertyPaintOrder, CSSPropertyD, CSSPropertyCx,
175 CSSPropertyCy, CSSPropertyX, CSSPropertyY, CSSPropertyR, CSSPropertyRx, 175 CSSPropertyCy, CSSPropertyX, CSSPropertyY, CSSPropertyR, CSSPropertyRx,
176 CSSPropertyRy, CSSPropertyScrollSnapType, CSSPropertyScrollSnapPointsX, 176 CSSPropertyRy, CSSPropertyScrollSnapType, CSSPropertyScrollSnapPointsX,
177 CSSPropertyScrollSnapPointsY, CSSPropertyScrollSnapCoordinate, 177 CSSPropertyScrollSnapPointsY, CSSPropertyScrollSnapCoordinate,
178 CSSPropertyScrollSnapDestination, CSSPropertyTranslate, CSSPropertyRotate, 178 CSSPropertyScrollSnapDestination, CSSPropertyTranslate, CSSPropertyRotate,
179 CSSPropertyScale, CSSPropertyCaretColor}; 179 CSSPropertyScale, CSSPropertyCaretColor, CSSPropertyScrollSnapAlign,
180 CSSPropertyScrollPadding, CSSPropertyScrollPaddingTop,
181 CSSPropertyScrollPaddingRight, CSSPropertyScrollPaddingBottom,
182 CSSPropertyScrollPaddingLeft, CSSPropertyScrollPaddingBlock,
183 CSSPropertyScrollPaddingBlockStart, CSSPropertyScrollPaddingBlockEnd,
184 CSSPropertyScrollPaddingInline, CSSPropertyScrollPaddingInlineStart,
185 CSSPropertyScrollPaddingInlineEnd, CSSPropertyScrollSnapMargin,
186 CSSPropertyScrollSnapMarginTop, CSSPropertyScrollSnapMarginRight,
187 CSSPropertyScrollSnapMarginBottom, CSSPropertyScrollSnapMarginLeft,
188 CSSPropertyScrollSnapMarginBlock, CSSPropertyScrollSnapMarginBlockStart,
189 CSSPropertyScrollSnapMarginBlockEnd, CSSPropertyScrollSnapMarginInline,
190 CSSPropertyScrollSnapMarginInlineStart,
191 CSSPropertyScrollSnapMarginInlineEnd, CSSPropertyScrollSnapStop};
180 192
181 CSSValueID CssIdentifierForFontSizeKeyword(int keyword_size) { 193 CSSValueID CssIdentifierForFontSizeKeyword(int keyword_size) {
182 DCHECK_NE(keyword_size, 0); 194 DCHECK_NE(keyword_size, 0);
183 DCHECK_LE(keyword_size, 8); 195 DCHECK_LE(keyword_size, 8);
184 return static_cast<CSSValueID>(CSSValueXxSmall + keyword_size - 1); 196 return static_cast<CSSValueID>(CSSValueXxSmall + keyword_size - 1);
185 } 197 }
186 198
187 void LogUnimplementedPropertyID(CSSPropertyID property_id) { 199 void LogUnimplementedPropertyID(CSSPropertyID property_id) {
188 DEFINE_STATIC_LOCAL(HashSet<CSSPropertyID>, property_id_set, ()); 200 DEFINE_STATIC_LOCAL(HashSet<CSSPropertyID>, property_id_set, ());
189 if (!property_id_set.insert(property_id).is_new_entry) 201 if (!property_id_set.insert(property_id).is_new_entry)
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 "These styles are computed, and therefore the '" + 576 "These styles are computed, and therefore the '" +
565 getPropertyNameString(id) + "' property is read-only."); 577 getPropertyNameString(id) + "' property is read-only.");
566 } 578 }
567 579
568 DEFINE_TRACE(CSSComputedStyleDeclaration) { 580 DEFINE_TRACE(CSSComputedStyleDeclaration) {
569 visitor->Trace(node_); 581 visitor->Trace(node_);
570 CSSStyleDeclaration::Trace(visitor); 582 CSSStyleDeclaration::Trace(visitor);
571 } 583 }
572 584
573 } // namespace blink 585 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698