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

Issue 958423005: Handle overlapping links and widgets. (Closed)

Created:
5 years, 9 months ago by Lei Zhang
Modified:
5 years, 4 months ago
Reviewers:
jun_fang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Handle overlapping links and widgets. Only one of FPDPage_HasFormFieldAtPoint() and FPDFLink_GetLinkAtPoint() should return true for a given point. Also delete some unused code. BUG=chromium:434064

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -34 lines) Patch
M core/include/fpdfdoc/fpdf_doc.h View 1 chunk +4 lines, -14 lines 0 comments Download
M core/src/fpdfdoc/doc_form.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M core/src/fpdfdoc/doc_link.cpp View 4 chunks +25 lines, -19 lines 0 comments Download
M fpdfsdk/src/fpdfdoc.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
Lei Zhang
I'm worried about this case, but maybe my understanding is wrong. Please let me know ...
5 years, 9 months ago (2015-02-28 02:13:58 UTC) #2
jun_fang
On 2015/02/28 02:13:58, Lei Zhang wrote: > I'm worried about this case, but maybe my ...
5 years, 9 months ago (2015-03-05 20:06:02 UTC) #3
Lei Zhang
On 2015/03/05 20:06:02, jun_fang wrote: > On 2015/02/28 02:13:58, Lei Zhang wrote: > > I'm ...
5 years, 9 months ago (2015-03-05 21:19:00 UTC) #4
jun_fang
On 2015/03/05 21:19:00, Lei Zhang wrote: > On 2015/03/05 20:06:02, jun_fang wrote: > > On ...
5 years, 9 months ago (2015-03-05 21:37:09 UTC) #5
Lei Zhang
On 2015/03/05 21:37:09, jun_fang wrote: > I think applications can set some rules to choose ...
5 years, 9 months ago (2015-03-06 00:37:31 UTC) #6
Lei Zhang
5 years, 4 months ago (2015-08-07 07:41:38 UTC) #7
On 2015/03/06 00:37:31, Lei Zhang wrote:
> On 2015/03/05 21:37:09, jun_fang wrote:
> > I think applications can set some rules to choose annotations or forms at
the
> > same position to respond to some given events.
> > For example, the position is far from the center of the annotations (you can
> get
> > the outer rectangle of annotations), applications 
> > can pass the event to form.
> 
> What if the two annotations have the exact same size and position? I know it's
a
> contrived example, but if the app has the z-order information, it would be
able
> to make better decisions.

I think apps need the z-order information. See
https://codereview.chromium.org/1278053004 and its associated bug.

Powered by Google App Engine
This is Rietveld 408576698