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

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

Issue 1765933003: style: Rename the PseudoId enum values to CamelCase and prefix them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum-clash-PseudoId: none Created 4 years, 9 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 reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 static const size_t PrintColorAdjustBits = 1; 51 static const size_t PrintColorAdjustBits = 1;
52 enum PrintColorAdjust { 52 enum PrintColorAdjust {
53 PrintColorAdjustEconomy, 53 PrintColorAdjustEconomy,
54 PrintColorAdjustExact 54 PrintColorAdjustExact
55 }; 55 };
56 56
57 // Static pseudo styles. Dynamic ones are produced on the fly. 57 // Static pseudo styles. Dynamic ones are produced on the fly.
58 enum PseudoId { 58 enum PseudoId {
59 // The order must be NOP ID, public IDs, and then internal IDs. 59 // The order must be NOP ID, public IDs, and then internal IDs.
60 // If you add or remove a public ID, you must update _pseudoBits in Computed Style. 60 // If you add or remove a public ID, you must update _pseudoBits in Computed Style.
61 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS T_LINE_INHERITED, SCROLLBAR, 61 PseudoIdNone,
62 PseudoIdFirstLine,
63 PseudoIdFirstLetter,
64 PseudoIdBefore,
65 PseudoIdAfter,
66 PseudoIdBackdrop,
67 PseudoIdSelection,
68 PseudoIdFirstLineInherited,
69 PseudoIdScrollbar,
62 // Internal IDs follow: 70 // Internal IDs follow:
63 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON, 71 PseudoIdScrollbarThumb,
72 PseudoIdScrollbarButton,
73 PseudoIdScrollbarTrack,
74 PseudoIdScrollbarTrackPiece,
75 PseudoIdScrollbarCorner,
76 PseudoIdResizer,
77 PseudoIdInputListButton,
64 // Special values follow: 78 // Special values follow:
65 AFTER_LAST_INTERNAL_PSEUDOID, 79 AfterLastInternalPseudoId,
66 FIRST_PUBLIC_PSEUDOID = FIRST_LINE, 80 FirstPublicPseudoId = PseudoIdFirstLine,
67 FIRST_INTERNAL_PSEUDOID = SCROLLBAR_THUMB, 81 FirstInternalPseudoId = PseudoIdScrollbarThumb,
68 PUBLIC_PSEUDOID_MASK = ((1 << FIRST_INTERNAL_PSEUDOID) - 1) & ~((1 << FIRST_ PUBLIC_PSEUDOID) - 1), 82 PublicPseudoIdMask = ((1 << FirstInternalPseudoId) - 1) & ~((1 << FirstPubli cPseudoId) - 1),
69 PSEUDO_ELEMENT_MASK = (1 << (BEFORE - 1)) | (1 << (AFTER - 1)) | (1 << (BACK DROP - 1)) 83 ElementPseudoIdMask = (1 << (PseudoIdBefore - 1)) | (1 << (PseudoIdAfter - 1 )) | (1 << (PseudoIdBackdrop - 1))
70 }; 84 };
71 85
72 enum ColumnFill { ColumnFillBalance, ColumnFillAuto }; 86 enum ColumnFill { ColumnFillBalance, ColumnFillAuto };
73 87
74 enum ColumnSpan { ColumnSpanNone = 0, ColumnSpanAll }; 88 enum ColumnSpan { ColumnSpanNone = 0, ColumnSpanAll };
75 89
76 enum EBorderCollapse { BorderCollapseSeparate = 0, BorderCollapseCollapse = 1 }; 90 enum EBorderCollapse { BorderCollapseSeparate = 0, BorderCollapseCollapse = 1 };
77 91
78 // These have been defined in the order of their precedence for border-collapsin g. Do 92 // These have been defined in the order of their precedence for border-collapsin g. Do
79 // not change this order! This order also must match the order in CSSValueKeywor ds.in. 93 // not change this order! This order also must match the order in CSSValueKeywor ds.in.
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 601
588 enum ScrollSnapType { 602 enum ScrollSnapType {
589 ScrollSnapTypeNone, 603 ScrollSnapTypeNone,
590 ScrollSnapTypeMandatory, 604 ScrollSnapTypeMandatory,
591 ScrollSnapTypeProximity 605 ScrollSnapTypeProximity
592 }; 606 };
593 607
594 } // namespace blink 608 } // namespace blink
595 609
596 #endif // ComputedStyleConstants_h 610 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698