Changeset 17687 in webkit
- Timestamp:
- Nov 9, 2006 7:41:25 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r17682 r17687 1 2006-11-09 Darin Adler <darin@apple.com> 2 3 - improved version of last night's build fix (should not do using namespace in a header) 4 5 * rendering/RenderObject.h: 6 * rendering/RenderObject.cpp: 7 (WebCore::RenderObject::maxTopMargin): 8 (WebCore::RenderObject::maxBottomMargin): 9 1 10 2006-11-08 Maciej Stachowiak <mjs@apple.com> 2 11 -
trunk/WebCore/rendering/RenderObject.cpp
r17677 r17687 3087 3087 int RenderObject::previousOffset(int current) const 3088 3088 { 3089 int previousOffset = current - 1; 3090 return previousOffset; 3089 return current - 1; 3091 3090 } 3092 3091 3093 3092 int RenderObject::nextOffset(int current) const 3094 3093 { 3095 int nextOffset = current + 1; 3096 return nextOffset; 3094 return current + 1; 3097 3095 } 3098 3096 … … 3100 3098 { 3101 3099 return inlineBoxWrapper(); 3100 } 3101 3102 int RenderObject::maxTopMargin(bool positive) const 3103 { 3104 return positive ? max(0, marginTop()) : min(0, -marginTop()); 3105 } 3106 3107 int RenderObject::maxBottomMargin(bool positive) const 3108 { 3109 return positive ? max(0, marginBottom()) : min(0, -marginBottom()); 3102 3110 } 3103 3111 -
trunk/WebCore/rendering/RenderObject.h
r17680 r17687 29 29 30 30 #include "CachedResourceClient.h" 31 #if 0 31 32 #include "DeprecatedValueList.h" 32 33 #include "RenderStyle.h" … … 35 36 #include <algorithm> 36 37 #include <wtf/HashMap.h> 37 38 using namespace std; 39 40 /* 41 * The painting of a layer occurs in three distinct phases. Each phase involves 42 * a recursive descent into the layer's render objects. The first phase is the background phase. 43 * The backgrounds and borders of all blocks are painted. Inlines are not painted at all. 44 * Floats must paint above block backgrounds but entirely below inline content that can overlap them. 45 * In the foreground phase, all inlines are fully painted. Inline replaced elements will get all 46 * three phases invoked on them during this phase. 47 */ 38 #endif 39 #include "PlatformString.h" 48 40 49 41 namespace WebCore { … … 77 69 struct HitTestRequest; 78 70 71 /* 72 * The painting of a layer occurs in three distinct phases. Each phase involves 73 * a recursive descent into the layer's render objects. The first phase is the background phase. 74 * The backgrounds and borders of all blocks are painted. Inlines are not painted at all. 75 * Floats must paint above block backgrounds but entirely below inline content that can overlap them. 76 * In the foreground phase, all inlines are fully painted. Inline replaced elements will get all 77 * three phases invoked on them during this phase. 78 */ 79 79 80 enum PaintPhase { 80 81 PaintPhaseBlockBackground, … … 657 658 virtual bool isBottomMarginQuirk() const { return false; } 658 659 659 virtual int maxTopMargin(bool positive) const { return positive ? max(0, marginTop()) : min(0, -marginTop()); }660 virtual int maxBottomMargin(bool positive) const { return positive ? max(0, marginBottom()) : min(0, -marginBottom()); }660 virtual int maxTopMargin(bool positive) const; 661 virtual int maxBottomMargin(bool positive) const; 661 662 662 663 virtual int marginTop() const { return 0; }
Note: See TracChangeset
for help on using the changeset viewer.