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

Side by Side Diff: Source/core/rendering/style/RenderStyleConstants.h

Issue 144963002: Make pseudo element update work with LocalStyleChange. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review issues and removed always true if-tests. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/style/RenderStyle.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 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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef RenderStyleConstants_h 26 #ifndef RenderStyleConstants_h
27 #define RenderStyleConstants_h 27 #define RenderStyleConstants_h
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 enum StyleRecalcChange { 31 enum StyleRecalcChange {
32 NoChange, 32 NoChange,
33 NoInherit, 33 NoInherit,
34 UpdatePseudoElements,
34 Inherit, 35 Inherit,
35 Force, 36 Force,
36 Reattach, 37 Reattach,
37 }; 38 };
38 39
39 static const size_t PrintColorAdjustBits = 1; 40 static const size_t PrintColorAdjustBits = 1;
40 enum PrintColorAdjust { 41 enum PrintColorAdjust {
41 PrintColorAdjustEconomy, 42 PrintColorAdjustEconomy,
42 PrintColorAdjustExact 43 PrintColorAdjustExact
43 }; 44 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 enum PseudoId { 80 enum PseudoId {
80 // The order must be NOP ID, public IDs, and then internal IDs. 81 // The order must be NOP ID, public IDs, and then internal IDs.
81 // If you add or remove a public ID, you must update _pseudoBits in RenderSt yle. 82 // If you add or remove a public ID, you must update _pseudoBits in RenderSt yle.
82 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS T_LINE_INHERITED, SCROLLBAR, 83 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS T_LINE_INHERITED, SCROLLBAR,
83 // Internal IDs follow: 84 // Internal IDs follow:
84 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON, 85 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON,
85 // Special values follow: 86 // Special values follow:
86 AFTER_LAST_INTERNAL_PSEUDOID, 87 AFTER_LAST_INTERNAL_PSEUDOID,
87 FIRST_PUBLIC_PSEUDOID = FIRST_LINE, 88 FIRST_PUBLIC_PSEUDOID = FIRST_LINE,
88 FIRST_INTERNAL_PSEUDOID = SCROLLBAR_THUMB, 89 FIRST_INTERNAL_PSEUDOID = SCROLLBAR_THUMB,
89 PUBLIC_PSEUDOID_MASK = ((1 << FIRST_INTERNAL_PSEUDOID) - 1) & ~((1 << FIRST_ PUBLIC_PSEUDOID) - 1) 90 PUBLIC_PSEUDOID_MASK = ((1 << FIRST_INTERNAL_PSEUDOID) - 1) & ~((1 << FIRST_ PUBLIC_PSEUDOID) - 1),
91 PSEUDO_ELEMENT_MASK = (1 << (BEFORE - 1)) | (1 << (AFTER - 1)) | (1 << (BACK DROP - 1))
90 }; 92 };
91 93
92 enum ColumnFill { ColumnFillBalance, ColumnFillAuto }; 94 enum ColumnFill { ColumnFillBalance, ColumnFillAuto };
93 95
94 enum ColumnSpan { ColumnSpanNone = 0, ColumnSpanAll }; 96 enum ColumnSpan { ColumnSpanNone = 0, ColumnSpanAll };
95 97
96 enum EBorderCollapse { BSEPARATE = 0, BCOLLAPSE = 1 }; 98 enum EBorderCollapse { BSEPARATE = 0, BCOLLAPSE = 1 };
97 99
98 // These have been defined in the order of their precedence for border-collapsin g. Do 100 // These have been defined in the order of their precedence for border-collapsin g. Do
99 // not change this order! This order also must match the order in CSSValueKeywor ds.in. 101 // not change this order! This order also must match the order in CSSValueKeywor ds.in.
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows). 557 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows).
556 static const float maximumAllowedFontSize = 1000000.0f; 558 static const float maximumAllowedFontSize = 1000000.0f;
557 559
558 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; 560 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine };
559 561
560 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }; 562 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox };
561 563
562 } // namespace WebCore 564 } // namespace WebCore
563 565
564 #endif // RenderStyleConstants_h 566 #endif // RenderStyleConstants_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698