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

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

Powered by Google App Engine
This is Rietveld 408576698