Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Issue 2251453002: Only create widgets if really needed. (Closed)

Created:
4 years, 4 months ago by dsinclair
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com, npm
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

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=chromium:632709 Committed: https://pdfium.googlesource.com/pdfium/+/ef523dd36aea991084b8b934df846014a5c09c6f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -33 lines) Patch
M fpdfsdk/fsdk_baseform.cpp View 9 chunks +10 lines, -8 lines 0 comments Download
M fpdfsdk/include/fsdk_baseform.h View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/javascript/Field.h View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/javascript/Field.cpp View 22 chunks +35 lines, -23 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
dsinclair
PTAL. This allows me to load the testfocus2 file inside an ASAN chrome build without ...
4 years, 4 months ago (2016-08-15 19:51:09 UTC) #4
Tom Sepez
lgtm
4 years, 4 months ago (2016-08-15 20:09:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2251453002/1
4 years, 4 months ago (2016-08-15 20:09:49 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://pdfium.googlesource.com/pdfium/+/ef523dd36aea991084b8b934df846014a5c09c6f
4 years, 4 months ago (2016-08-15 20:10:07 UTC) #11
Lei Zhang
4 years, 1 month ago (2016-11-03 15:33:40 UTC) #12
Message was sent while issue was closed.
BTW, the BUG= line is wrong.

Powered by Google App Engine
This is Rietveld 408576698