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

Issue 1067043002: PDF Plugin: Swallow Invalidate calls before getting initial size (Closed)

Created:
5 years, 8 months ago by tommycli
Modified:
5 years, 8 months ago
Reviewers:
Lei Zhang, raymes
CC:
chromium-reviews, dmichael (off chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF Plugin: Swallow Invalidate calls before getting initial size The PDF Plugin current expects the size to be set before any invalidate operations, and will DCHECK that. https://crrev.com/323331 broke this, as the initial size is given to the plugin is now deferred to give the DOM a chance to 'settle down'. Instead, we can just ignore invalidate calls before the size is set. When the size is actually set, the whole page will be invalidated anyways, so there's no harm. BUG=474428 Committed: https://crrev.com/4d903a9645edd964b26e2afc4391aa9949c3c0c8 Cr-Commit-Position: refs/heads/master@{#324947}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M pdf/paint_manager.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
tommycli
thestig: PTAL. You may want to double-check my reasoning here. I take it that the ...
5 years, 8 months ago (2015-04-07 20:53:18 UTC) #2
tommycli
BTW: I checked, and these 'dchecks' were around since the initial inclusion into google3. [1] ...
5 years, 8 months ago (2015-04-07 20:58:46 UTC) #3
Lei Zhang
The DCHECKs is copied from http://codereview.chromium.org/7215030/ and they still exist in ppapi/utility/graphics/paint_manager.cc. I don't know ...
5 years, 8 months ago (2015-04-07 23:21:33 UTC) #4
raymes
I'm not sure about this. It seems innocuous. Possibly we should make the calling code ...
5 years, 8 months ago (2015-04-08 06:32:28 UTC) #5
tommycli
On 2015/04/08 06:32:28, raymes wrote: > I'm not sure about this. It seems innocuous. Possibly ...
5 years, 8 months ago (2015-04-09 18:43:35 UTC) #6
tommycli
raymes: I accidentally dropped you off the list when I replied. Pasted below: --- I ...
5 years, 8 months ago (2015-04-10 20:30:51 UTC) #8
raymes
That seems reasonable to me. lgtm
5 years, 8 months ago (2015-04-13 00:29:27 UTC) #9
tommycli
thestig: I sent to CQ dry run. You okay with this solution?
5 years, 8 months ago (2015-04-13 16:54:11 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1067043002/20001
5 years, 8 months ago (2015-04-13 16:55:12 UTC) #12
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-13 17:58:22 UTC) #14
Lei Zhang
Should the changes apply to ppapi/utility/graphics/paint_manager.cc as well? Otherwise, I defer to raymes@
5 years, 8 months ago (2015-04-13 22:17:45 UTC) #15
raymes
Those two files have diverged so much now. I think if the DCHECK is still ...
5 years, 8 months ago (2015-04-13 23:34:44 UTC) #16
tommycli
On 2015/04/13 23:34:44, raymes wrote: > Those two files have diverged so much now. I ...
5 years, 8 months ago (2015-04-13 23:49:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1067043002/20001
5 years, 8 months ago (2015-04-13 23:53:12 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-13 23:55:49 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/4d903a9645edd964b26e2afc4391aa9949c3c0c8 Cr-Commit-Position: refs/heads/master@{#324947}
5 years, 8 months ago (2015-04-13 23:56:44 UTC) #21
tommycli
thestig/raymes: Does this need a merge to M43? I believe the Release behavior of skipping ...
5 years, 8 months ago (2015-04-14 00:00:16 UTC) #22
raymes
5 years, 8 months ago (2015-04-14 00:37:38 UTC) #23
Message was sent while issue was closed.
I don't think it would matter, but you could merge it just to be safe.

On Tue, 14 Apr 2015 at 10:00 <tommycli@chromium.org> wrote:

> thestig/raymes: Does this need a merge to M43?
>
> I believe the Release behavior of skipping the DCHECK and just moving on is
> also
> harmless.
>
> https://codereview.chromium.org/1067043002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698