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

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

Issue 2904383002: Make TextIndentLine an enum class. (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
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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 kContentDistributionSpaceBetween, 402 kContentDistributionSpaceBetween,
403 kContentDistributionSpaceAround, 403 kContentDistributionSpaceAround,
404 kContentDistributionSpaceEvenly, 404 kContentDistributionSpaceEvenly,
405 kContentDistributionStretch 405 kContentDistributionStretch
406 }; 406 };
407 407
408 // Reasonable maximum to prevent insane font sizes from causing crashes on some 408 // Reasonable maximum to prevent insane font sizes from causing crashes on some
409 // platforms (such as Windows). 409 // platforms (such as Windows).
410 static const float kMaximumAllowedFontSize = 10000.0f; 410 static const float kMaximumAllowedFontSize = 10000.0f;
411 411
412 enum TextIndentLine { kFirstLine, kEachLine }; 412 enum class TextIndentLine { kFirstLine, kEachLine };
413 enum class TextIndentType { kNormal, kHanging }; 413 enum class TextIndentType { kNormal, kHanging };
414 414
415 enum CSSBoxType { 415 enum CSSBoxType {
416 kBoxMissing = 0, 416 kBoxMissing = 0,
417 kMarginBox, 417 kMarginBox,
418 kBorderBox, 418 kBorderBox,
419 kPaddingBox, 419 kPaddingBox,
420 kContentBox 420 kContentBox
421 }; 421 };
422 422
(...skipping 11 matching lines...) Expand all
434 // fraction, which leaves 20 bits for the integer part, making 1048575 434 // fraction, which leaves 20 bits for the integer part, making 1048575
435 // the largest number. 435 // the largest number.
436 436
437 static const int kBorderWidthFractionalBits = 6; 437 static const int kBorderWidthFractionalBits = 6;
438 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 438 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
439 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 439 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
440 440
441 } // namespace blink 441 } // namespace blink
442 442
443 #endif // ComputedStyleConstants_h 443 #endif // ComputedStyleConstants_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698