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

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

Issue 2861773004: Move border-*-width out of BorderValue and store on SurroundData in ComputedStyle instead (Closed)
Patch Set: meade@'s suggestion Created 3 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 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 }; 492 };
493 493
494 enum ScrollSnapType { 494 enum ScrollSnapType {
495 kScrollSnapTypeNone, 495 kScrollSnapTypeNone,
496 kScrollSnapTypeMandatory, 496 kScrollSnapTypeMandatory,
497 kScrollSnapTypeProximity 497 kScrollSnapTypeProximity
498 }; 498 };
499 499
500 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; 500 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit };
501 501
502 // In order to conserve memory, the border width uses fixed point,
503 // which can be bitpacked. This fixed point implementation is
504 // essentially the same as in LayoutUnit. Six bits are used for the
505 // fraction, which leaves 20 bits for the integer part, making 1048575
506 // the largest number.
507
508 static const int kBorderWidthFractionalBits = 6;
509 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
510 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
511
502 } // namespace blink 512 } // namespace blink
503 513
504 #endif // ComputedStyleConstants_h 514 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/OutlineValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698