DescriptionHTMLImageElement width/height should updateLayout first.
HTMLImageElement::width/height were not updating layout first before
checking for the layoutObject() which means that we fall back to the
attribute when we shouldn't. We're also using the updateLayout method
instead of updateLayoutIgnorePendingStylesheets which should be used
for all JS APIs. Finally I deleted the unused boolean argument to the
methods.
We also make sure to check if we're in the document before causing a
layout so checking for a disconnected image's width/height before
drawing to a canvas doesn't cause a sync layout.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200594
Patch Set 1 #Patch Set 2 : Use a local resource. #Patch Set 3 : Check if we're in the document. #
Total comments: 1
Messages
Total messages: 14 (5 generated)
|