webengine/osswebengine/WebCore/rendering/bidi.cpp
changeset 13 10e98eab6f85
parent 0 dd21522fd290
child 16 a359256acfc6
equal deleted inserted replaced
8:7c90e6132015 13:10e98eab6f85
    92 static bool betweenMidpoints;
    92 static bool betweenMidpoints;
    93 
    93 
    94 static bool isLineEmpty = true;
    94 static bool isLineEmpty = true;
    95 static bool previousLineBrokeCleanly = true;
    95 static bool previousLineBrokeCleanly = true;
    96 static int numSpaces;
    96 static int numSpaces;
       
    97 
       
    98 struct cleanupMidpoints {
       
    99     ~cleanupMidpoints() {
       
   100     	if(smidpoints)
       
   101     		{
       
   102     		smidpoints->clear();
       
   103     		delete smidpoints;
       
   104     		smidpoints = 0;
       
   105     		}
       
   106     }
       
   107 };
       
   108 static cleanupMidpoints deleteMidPoints;
       
   109 
    97 
   110 
    98 static int getBPMWidth(int childValue, Length cssUnit)
   111 static int getBPMWidth(int childValue, Length cssUnit)
    99 {
   112 {
   100     if (!cssUnit.isIntrinsicOrAuto())
   113     if (!cssUnit.isIntrinsicOrAuto())
   101         return (cssUnit.isFixed() ? cssUnit.value() : childValue);
   114         return (cssUnit.isFixed() ? cssUnit.value() : childValue);