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

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

Issue 2922483004: Generate enum/getters/setters/mappings for image-rendering. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Apple Inc. All rights 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 kDot, 259 kDot,
260 kCircle, 260 kCircle,
261 kDoubleCircle, 261 kDoubleCircle,
262 kTriangle, 262 kTriangle,
263 kSesame, 263 kSesame,
264 kCustom 264 kCustom
265 }; 265 };
266 266
267 enum TextOverflow { kTextOverflowClip = 0, kTextOverflowEllipsis }; 267 enum TextOverflow { kTextOverflowClip = 0, kTextOverflowEllipsis };
268 268
269 enum class EImageRendering {
270 kAuto,
271 kOptimizeSpeed,
272 kOptimizeQuality,
273 kOptimizeContrast,
274 kPixelated
275 };
276
277 static const size_t kGridAutoFlowBits = 4; 269 static const size_t kGridAutoFlowBits = 4;
278 enum InternalGridAutoFlowAlgorithm { 270 enum InternalGridAutoFlowAlgorithm {
279 kInternalAutoFlowAlgorithmSparse = 0x1, 271 kInternalAutoFlowAlgorithmSparse = 0x1,
280 kInternalAutoFlowAlgorithmDense = 0x2 272 kInternalAutoFlowAlgorithmDense = 0x2
281 }; 273 };
282 274
283 enum InternalGridAutoFlowDirection { 275 enum InternalGridAutoFlowDirection {
284 kInternalAutoFlowDirectionRow = 0x4, 276 kInternalAutoFlowDirectionRow = 0x4,
285 kInternalAutoFlowDirectionColumn = 0x8 277 kInternalAutoFlowDirectionColumn = 0x8
286 }; 278 };
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // fraction, which leaves 20 bits for the integer part, making 1048575 396 // fraction, which leaves 20 bits for the integer part, making 1048575
405 // the largest number. 397 // the largest number.
406 398
407 static const int kBorderWidthFractionalBits = 6; 399 static const int kBorderWidthFractionalBits = 6;
408 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 400 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
409 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 401 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
410 402
411 } // namespace blink 403 } // namespace blink
412 404
413 #endif // ComputedStyleConstants_h 405 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698