OLD | NEW |
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 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
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 18 matching lines...) Expand all Loading... |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 // The painting of a layer occurs in 4 phases, Each involves a recursive descen
t | 31 // The painting of a layer occurs in 4 phases, Each involves a recursive descen
t |
32 // into the layer's layout objects in painting order: | 32 // into the layer's layout objects in painting order: |
33 // 1. Background phase: backgrounds and borders of all blocks are painted. | 33 // 1. Background phase: backgrounds and borders of all blocks are painted. |
34 // Inlines are not painted at all. | 34 // Inlines are not painted at all. |
35 // 2. Float phase: floating objects are painted above block backgrounds but ent
irely | 35 // 2. Float phase: floating objects are painted above block backgrounds but ent
irely |
36 // below inline content that can overlap them. | 36 // below inline content that can overlap them. |
37 // 3. Foreground phase: all inlines are fully painted. Atomic inline elements w
ill | 37 // 3. Foreground phase: all inlines are fully painted. Atomic inline elements w
ill |
38 // get all 4 phases invoked on them during this phase, as if they were stack
ing | 38 // get all 4 phases invoked on them during this phase, as if they were stack
ing |
39 // contexts (see ObjectPainter::paintAsPseudoStackingContext()). | 39 // contexts (see ObjectPainter::paintAllPhasesAtomically()). |
40 // 4. Outline phase: outlines are painted over the foreground. | 40 // 4. Outline phase: outlines are painted over the foreground. |
41 | 41 |
42 enum PaintPhase { | 42 enum PaintPhase { |
43 // Background phase | 43 // Background phase |
44 // | 44 // |
45 // Paint background of the current object and non-self-painting descendants. | 45 // Paint background of the current object and non-self-painting descendants. |
46 PaintPhaseBlockBackground = 0, | 46 PaintPhaseBlockBackground = 0, |
47 // | 47 // |
48 // The following two values are added besides the normal PaintPhaseBlockBack
ground | 48 // The following two values are added besides the normal PaintPhaseBlockBack
ground |
49 // to distinguish backgrounds for the object itself and for descendants, bec
ause | 49 // to distinguish backgrounds for the object itself and for descendants, bec
ause |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // instance by not painting shadows and selections on text, and add | 123 // instance by not painting shadows and selections on text, and add |
124 // URL metadata for links. | 124 // URL metadata for links. |
125 GlobalPaintPrinting = 1 << 2 | 125 GlobalPaintPrinting = 1 << 2 |
126 }; | 126 }; |
127 | 127 |
128 typedef unsigned GlobalPaintFlags; | 128 typedef unsigned GlobalPaintFlags; |
129 | 129 |
130 } // namespace blink | 130 } // namespace blink |
131 | 131 |
132 #endif // PaintPhase_h | 132 #endif // PaintPhase_h |
OLD | NEW |