|
@@ -19,7 +19,6 @@ interface
|
|
|
|
|
|
uses
|
|
|
Classes, SysUtils, Math, fpCSSResolver,
|
|
|
- LazLoggerBase,
|
|
|
Fresnel.Classes, Fresnel.DOM, Fresnel.Controls;
|
|
|
|
|
|
type
|
|
@@ -318,14 +317,14 @@ begin
|
|
|
ChildEl.CSSComputedAttribute[fcaBottom]:=FloatToCSSStr(ChildBottom);
|
|
|
ChildEl.CSSComputedAttribute[fcaHeight]:=FloatToCSSStr(BFCNode.Height);
|
|
|
|
|
|
- debugln(['TFLBlockFormattingContext.PlaceLineNodes ',ChildEl.GetPath,
|
|
|
- ' Left=',ChildEl.CSSComputedAttribute[fcaLeft],
|
|
|
- ' Top=',ChildEl.CSSComputedAttribute[fcaTop],
|
|
|
- ' Width=',ChildEl.CSSComputedAttribute[fcaWidth],
|
|
|
- ' Height=',ChildEl.CSSComputedAttribute[fcaHeight],
|
|
|
- ' Right=',ChildEl.CSSComputedAttribute[fcaRight],
|
|
|
- ' Bottom=',ChildEl.CSSComputedAttribute[fcaBottom],
|
|
|
- '']);
|
|
|
+ FLLog(etDebug,'TFLBlockFormattingContext.PlaceLineNodes '+ChildEl.GetPath+
|
|
|
+ ' Left='+ChildEl.CSSComputedAttribute[fcaLeft]+
|
|
|
+ ' Top='+ChildEl.CSSComputedAttribute[fcaTop]+
|
|
|
+ ' Width='+ChildEl.CSSComputedAttribute[fcaWidth]+
|
|
|
+ ' Height='+ChildEl.CSSComputedAttribute[fcaHeight]+
|
|
|
+ ' Right='+ChildEl.CSSComputedAttribute[fcaRight]+
|
|
|
+ ' Bottom='+ChildEl.CSSComputedAttribute[fcaBottom]
|
|
|
+ );
|
|
|
end;
|
|
|
end;
|
|
|
|
|
@@ -453,7 +452,7 @@ begin
|
|
|
ChildEl.CSSComputedAttribute[fcaTop]:=FloatToCSSStr(ChildTop);
|
|
|
ChildEl.CSSComputedAttribute[fcaBottom]:=FloatToCSSStr(ChildBottom);
|
|
|
ChildEl.CSSComputedAttribute[fcaHeight]:=FloatToCSSStr(ChildHeight);
|
|
|
- debugln(['TFLBlockFormattingContext.PlaceAbsoluteNode ',ChildEl.GetPath,
|
|
|
+ FLLog(etDebug,['TFLBlockFormattingContext.PlaceAbsoluteNode ',ChildEl.GetPath,
|
|
|
' Left=',ChildEl.CSSComputedAttribute[fcaLeft],
|
|
|
' Top=',ChildEl.CSSComputedAttribute[fcaTop],
|
|
|
' Width=',ChildEl.CSSComputedAttribute[fcaWidth],
|
|
@@ -578,7 +577,7 @@ var
|
|
|
var
|
|
|
N: TFLBFCNode;
|
|
|
begin
|
|
|
- debugln(['AddLineNodeCache ',ChildEl.GetPath,' L=',ChildLeft,',R=',ChildRight,',W=',ChildWidth,',H=',ChildHeight]);
|
|
|
+ FLLog(etDebug,['AddLineNodeCache ',ChildEl.GetPath,' L=',FloatToStr(ChildLeft),',R=',FloatToStr(ChildRight),',W=',FloatToStr(ChildWidth),',H=',FloatToStr(ChildHeight)]);
|
|
|
N:=AddLineNode(ChildNode);
|
|
|
N.BorderLeft:=ChildBorderLeft;
|
|
|
N.BorderRight:=ChildBorderRight;
|
|
@@ -880,7 +879,7 @@ var
|
|
|
s: String;
|
|
|
begin
|
|
|
s:='['+IntToStr(ID)+'] '+Msg;
|
|
|
- DebugLn(['Error: TFresnelLayouter.ErrorLayout ',s]);
|
|
|
+ FLLog(etError,['Error: TFresnelLayouter.ErrorLayout ',s]);
|
|
|
raise EFresnelLayout.Create(s);
|
|
|
end;
|
|
|
|
|
@@ -1097,7 +1096,7 @@ var
|
|
|
NewParent: TFresnelElement;
|
|
|
ParentLNode: TSimpleFresnelLayoutNode;
|
|
|
begin
|
|
|
- debugln(['TSimpleFresnelLayouter.UpdateLayoutParent ',El.GetPath]);
|
|
|
+ FLLog(etDebug,['TSimpleFresnelLayouter.UpdateLayoutParent ',El.GetPath]);
|
|
|
if LNode.SkipLayout or (El.Parent=nil) then
|
|
|
LNode.Parent:=nil
|
|
|
else begin
|
|
@@ -1326,7 +1325,7 @@ var
|
|
|
aDisplayBox, aVisibility: String;
|
|
|
{%H-}Code: integer;
|
|
|
begin
|
|
|
- DebugLn('TSimpleFresnelLayouter.ComputeCSS ',El.GetPath);
|
|
|
+ FLLog(etDebug,['TSimpleFresnelLayouter.ComputeCSS ',El.GetPath]);
|
|
|
// every node gets a layout ndoe
|
|
|
LNode:=CreateLayoutNode(El);
|
|
|
|
|
@@ -1362,7 +1361,7 @@ begin
|
|
|
|
|
|
// block container
|
|
|
LNode.BlockContainer:=GetBlockContainer(El);
|
|
|
- DebugLn('TSimpleFresnelLayouter.ComputeCSS ',El.Name,' BlockContainer=',DbgSName(LNode.BlockContainer));
|
|
|
+ FLLog(etDebug,['TSimpleFresnelLayouter.ComputeCSS ',El.Name,' BlockContainer=',LNode.BlockContainer.ToString]);
|
|
|
|
|
|
// LayoutParent
|
|
|
UpdateLayoutParent(El,LNode);
|
|
@@ -1459,10 +1458,10 @@ procedure TViewportLayouter.WriteLayoutTree;
|
|
|
El: TFresnelElement;
|
|
|
begin
|
|
|
El:=Node.Element;
|
|
|
- dbgout(Prefix,El.Name,' NodeCount=',dbgs(Node.NodeCount),' display-outside=',El.CSSComputedAttribute[fcaDisplayOutside],' display-inside=',El.CSSComputedAttribute[fcaDisplayInside],' position=',El.CSSComputedAttribute[fcaPosition],' z-index=',El.CSSComputedAttribute[fcaZIndex]);
|
|
|
+ FLLog(etError,[El.Name,' NodeCount=',IntToStr(Node.NodeCount),' display-outside=',El.CSSComputedAttribute[fcaDisplayOutside],' display-inside=',El.CSSComputedAttribute[fcaDisplayInside],' position=',El.CSSComputedAttribute[fcaPosition],' z-index=',El.CSSComputedAttribute[fcaZIndex]]);
|
|
|
if Node.Layouter<>nil then
|
|
|
- dbgout(' layouter=',Node.Layouter.ClassName);
|
|
|
- DebugLn;
|
|
|
+ FLLog(etDebug,[' layouter=',Node.Layouter.ClassName]);
|
|
|
+ FLLog(etDebug,'');
|
|
|
for i:=0 to Node.NodeCount-1 do
|
|
|
WriteNode(Prefix+' ',TSimpleFresnelLayoutNode(Node.Nodes[i]));
|
|
|
end;
|
|
@@ -1470,17 +1469,17 @@ procedure TViewportLayouter.WriteLayoutTree;
|
|
|
begin
|
|
|
if Viewport=nil then
|
|
|
begin
|
|
|
- DebugLn('TSimpleFresnelLayouter.WriteLayoutTree Viewport=nil');
|
|
|
+ FLLog(etError,'TSimpleFresnelLayouter.WriteLayoutTree Viewport=nil');
|
|
|
exit;
|
|
|
end;
|
|
|
if Viewport.LayoutNode=nil then
|
|
|
begin
|
|
|
- DebugLn('TSimpleFresnelLayouter.WriteLayoutTree Viewport.LayoutNode=nil');
|
|
|
+ FLLog(etError,'TSimpleFresnelLayouter.WriteLayoutTree Viewport.LayoutNode=nil');
|
|
|
exit;
|
|
|
end;
|
|
|
- DebugLn('TSimpleFresnelLayouter.WriteLayoutTree BEGIN======================');
|
|
|
+ FLLog(etDebug,'TSimpleFresnelLayouter.WriteLayoutTree BEGIN======================');
|
|
|
WriteNode('',TSimpleFresnelLayoutNode(Viewport.LayoutNode));
|
|
|
- DebugLn('TSimpleFresnelLayouter.WriteLayoutTree END========================');
|
|
|
+ FLLog(etDebug,'TSimpleFresnelLayouter.WriteLayoutTree END========================');
|
|
|
end;
|
|
|
|
|
|
end.
|