Commit d1f4c0ca authored by Christian Biesinger's avatar Christian Biesinger Committed by Commit Bot

Update Length prettyprinter to current code

The length type enum has changed since this code was written.

R=tzik@chromium.org

Change-Id: I24a294968d3c4157be41e6a597c78cc731fa868d
Reviewed-on: https://chromium-review.googlesource.com/1135907Reviewed-by: default avatarTaiju Tsuiki <tzik@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575544}
parent 8529340f
...@@ -261,28 +261,24 @@ class BlinkLengthPrinter: ...@@ -261,28 +261,24 @@ class BlinkLengthPrinter:
if ltype == 2: if ltype == 2:
return 'Length(%g, Fixed%s)' % (val, quirk) return 'Length(%g, Fixed%s)' % (val, quirk)
if ltype == 3: if ltype == 3:
return 'Length(Intrinsic)'
if ltype == 4:
return 'Length(MinIntrinsic)'
if ltype == 5:
return 'Length(MinContent)' return 'Length(MinContent)'
if ltype == 6: if ltype == 4:
return 'Length(MaxContent)' return 'Length(MaxContent)'
if ltype == 7: if ltype == 5:
return 'Length(FillAvailable)' return 'Length(FillAvailable)'
if ltype == 8: if ltype == 6:
return 'Length(FitContent)' return 'Length(FitContent)'
if ltype == 9: if ltype == 7:
# Would like to print pixelsAndPercent() but can't call member # Would like to print pixelsAndPercent() but can't call member
# functions - https://sourceware.org/bugzilla/show_bug.cgi?id=13326 # functions - https://sourceware.org/bugzilla/show_bug.cgi?id=13326
return 'Length(Calculated)' return 'Length(Calculated)'
if ltype == 10: if ltype == 8:
return 'Length(ExtendToZoom)' return 'Length(ExtendToZoom)'
if ltype == 11: if ltype == 9:
return 'Length(DeviceWidth)' return 'Length(DeviceWidth)'
if ltype == 12: if ltype == 10:
return 'Length(DeviceHeight)' return 'Length(DeviceHeight)'
if ltype == 13: if ltype == 11:
return 'Length(MaxSizeNone)' return 'Length(MaxSizeNone)'
return 'Length(unknown type %i)' % ltype return 'Length(unknown type %i)' % ltype
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment