Changeset 17687 in webkit


Ignore:
Timestamp:
Nov 9, 2006 7:41:25 AM (17 years ago)
Author:
darin
Message:
  • improved version of last night's build fix (should not do using namespace in a header)
  • rendering/RenderObject.h:
  • rendering/RenderObject.cpp: (WebCore::RenderObject::maxTopMargin): (WebCore::RenderObject::maxBottomMargin):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r17682 r17687  
     12006-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
    1102006-11-08  Maciej Stachowiak  <mjs@apple.com>
    211
  • trunk/WebCore/rendering/RenderObject.cpp

    r17677 r17687  
    30873087int RenderObject::previousOffset(int current) const
    30883088{
    3089     int previousOffset = current - 1;
    3090     return previousOffset;
     3089    return current - 1;
    30913090}
    30923091
    30933092int RenderObject::nextOffset(int current) const
    30943093{
    3095     int nextOffset = current + 1;
    3096     return nextOffset;
     3094    return current + 1;
    30973095}
    30983096
     
    31003098{
    31013099    return inlineBoxWrapper();
     3100}
     3101
     3102int RenderObject::maxTopMargin(bool positive) const
     3103{
     3104    return positive ? max(0, marginTop()) : min(0, -marginTop());
     3105}
     3106
     3107int RenderObject::maxBottomMargin(bool positive) const
     3108{
     3109    return positive ? max(0, marginBottom()) : min(0, -marginBottom());
    31023110}
    31033111
  • trunk/WebCore/rendering/RenderObject.h

    r17680 r17687  
    2929
    3030#include "CachedResourceClient.h"
     31#if 0
    3132#include "DeprecatedValueList.h"
    3233#include "RenderStyle.h"
     
    3536#include <algorithm>
    3637#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"
    4840
    4941namespace WebCore {
     
    7769struct HitTestRequest;
    7870
     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
    7980enum PaintPhase {
    8081    PaintPhaseBlockBackground,
     
    657658    virtual bool isBottomMarginQuirk() const { return false; }
    658659
    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;
    661662
    662663    virtual int marginTop() const { return 0; }
Note: See TracChangeset for help on using the changeset viewer.