diff options
author | dsinclair <dsinclair@chromium.org> | 2016-08-15 13:10:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-15 13:10:03 -0700 |
commit | ef523dd36aea991084b8b934df846014a5c09c6f (patch) | |
tree | 2fdaf648680f8705ca26ed40c839dc004cf5fe66 /third_party/libtiff | |
parent | 8e557bd9e7c09f9ce75fbea42f826b74d5cdc54b (diff) | |
download | pdfium-ef523dd36aea991084b8b934df846014a5c09c6f.tar.xz |
Only create widgets if really needed.
Currently the GetWidget call will create a backing widget for a control behind
the scenes if it doesn't exist. This can cause more work to be done then needed
as we may need to create the page and any supporting structures. This created
structure will then be torn down as we don't need it anymore once we're done
with the widget.
For the instances where setting the value on the widget will have no effect (as
we'll destroy it anyway) we can tell GetWidget() to not create the widget and
return without doing any work.
BUG=pdfium:632709
Review-Url: https://codereview.chromium.org/2251453002
Diffstat (limited to 'third_party/libtiff')
0 files changed, 0 insertions, 0 deletions