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

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

Issue 240253007: Don't always repaint on zIndex change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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.cpp ('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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 }; 68 };
69 69
70 // When some style properties change, different amounts of work have to be done depending on 70 // When some style properties change, different amounts of work have to be done depending on
71 // context (e.g. whether the property is changing on an element which has a comp ositing layer). 71 // context (e.g. whether the property is changing on an element which has a comp ositing layer).
72 // A simple StyleDifference does not provide enough information so we return a b it mask of 72 // A simple StyleDifference does not provide enough information so we return a b it mask of
73 // StyleDifferenceContextSensitiveProperties from RenderStyle::visualInvalidatio nDiff() too. 73 // StyleDifferenceContextSensitiveProperties from RenderStyle::visualInvalidatio nDiff() too.
74 enum StyleDifferenceContextSensitiveProperty { 74 enum StyleDifferenceContextSensitiveProperty {
75 ContextSensitivePropertyNone = 0, 75 ContextSensitivePropertyNone = 0,
76 ContextSensitivePropertyTransform = (1 << 0), 76 ContextSensitivePropertyTransform = (1 << 0),
77 ContextSensitivePropertyOpacity = (1 << 1), 77 ContextSensitivePropertyOpacity = (1 << 1),
78 ContextSensitivePropertyFilter = (1 << 2), 78 ContextSensitivePropertyZIndex = (1 << 2),
79 ContextSensitivePropertyFilter = (1 << 3),
79 // The object needs to be repainted if it contains text or properties depend ent on color (e.g., border or outline). 80 // The object needs to be repainted if it contains text or properties depend ent on color (e.g., border or outline).
80 ContextSensitivePropertyTextOrColor = (1 << 3) 81 ContextSensitivePropertyTextOrColor = (1 << 4)
81 }; 82 };
82 83
83 // Static pseudo styles. Dynamic ones are produced on the fly. 84 // Static pseudo styles. Dynamic ones are produced on the fly.
84 enum PseudoId { 85 enum PseudoId {
85 // The order must be NOP ID, public IDs, and then internal IDs. 86 // The order must be NOP ID, public IDs, and then internal IDs.
86 // If you add or remove a public ID, you must update _pseudoBits in RenderSt yle. 87 // If you add or remove a public ID, you must update _pseudoBits in RenderSt yle.
87 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS T_LINE_INHERITED, SCROLLBAR, 88 NOPSEUDO, FIRST_LINE, FIRST_LETTER, BEFORE, AFTER, BACKDROP, SELECTION, FIRS T_LINE_INHERITED, SCROLLBAR,
88 // Internal IDs follow: 89 // Internal IDs follow:
89 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON, 90 SCROLLBAR_THUMB, SCROLLBAR_BUTTON, SCROLLBAR_TRACK, SCROLLBAR_TRACK_PIECE, S CROLLBAR_CORNER, RESIZER, INPUT_LIST_BUTTON,
90 // Special values follow: 91 // Special values follow:
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 static const float maximumAllowedFontSize = 1000000.0f; 554 static const float maximumAllowedFontSize = 1000000.0f;
554 555
555 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; 556 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine };
556 enum TextIndentType { TextIndentNormal, TextIndentHanging }; 557 enum TextIndentType { TextIndentNormal, TextIndentHanging };
557 558
558 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox } ; 559 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox } ;
559 560
560 } // namespace WebCore 561 } // namespace WebCore
561 562
562 #endif // RenderStyleConstants_h 563 #endif // RenderStyleConstants_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698