Commit cea8306d authored by Aleks Totic's avatar Aleks Totic Committed by Commit Bot

Fix broken DataRef printer

https://chromium-review.googlesource.com/c/chromium/src/+/727781 broke printing of DataRefs
This commit makes DataRef print like this:

(gdb) p container_style.box_data_
$2 = DataRef(scoped_refptr((blink::ComputedStyleBase::StyleBoxData *)0x1e6143288
170))

Bug: 763844
Change-Id: I6ebcdd2d32b032659d3cc00973859c23ccb8b693
Reviewed-on: https://chromium-review.googlesource.com/826262Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarTaiju Tsuiki <tzik@chromium.org>
Commit-Queue: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524093}
parent 153b61d5
......@@ -374,8 +374,7 @@ class BlinkDataRefPrinter:
self.val = val
def to_string(self):
return 'DataRef(%s)' % (
WTFRefOrOwnPtrPrinter(self.val['data_']).to_string())
return 'DataRef(%s)' % (str(self.val['data_']))
def add_pretty_printers():
......
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