RESOLVED FIXED Bug 114314
FindBanner matches are offset when the WKView has a header or footer
https://bugs.webkit.org/show_bug.cgi?id=114314
Summary FindBanner matches are offset when the WKView has a header or footer
Beth Dakin
Reported 2013-04-09 15:58:08 PDT
FindBanner matches don't line up correctly when a WKView has a header or footer. <rdar://problem/13522434>
Attachments
Patch (10.78 KB, patch)
2013-04-09 16:27 PDT, Beth Dakin
no flags
Patch with new names (11.30 KB, patch)
2013-04-10 13:14 PDT, Beth Dakin
simon.fraser: review-
Patch (11.30 KB, patch)
2013-04-10 13:25 PDT, Beth Dakin
simon.fraser: review+
Beth Dakin
Comment 1 2013-04-09 16:27:35 PDT
Beth Dakin
Comment 2 2013-04-10 13:14:22 PDT
Created attachment 197392 [details] Patch with new names
Tim Horton
Comment 3 2013-04-10 13:14:57 PDT
Comment on attachment 197392 [details] Patch with new names View in context: https://bugs.webkit.org/attachment.cgi?id=197392&action=review > Source/WebCore/platform/ScrollView.cpp:338 > +IntSize ScrollView::scrollOffsetRealtiveToDocument() const Relative?
Tim Horton
Comment 4 2013-04-10 13:16:01 PDT
Comment on attachment 197392 [details] Patch with new names View in context: https://bugs.webkit.org/attachment.cgi?id=197392&action=review > Source/WebCore/rendering/RenderLayer.cpp:2384 > +LayoutRect RenderLayer::getRectToExpose(const LayoutRect &visibleRect, LayoutRect &visibleRectRealtiveToDocument, const LayoutRect &exposeRect, const ScrollAlignment& alignX, const ScrollAlignment& alignY) Relative again. > Source/WebCore/rendering/RenderLayer.cpp:2424 > + LayoutUnit intersectHeight = intersection(visibleRectRealtiveToDocument, exposeRectY).height(); And here.
Simon Fraser (smfr)
Comment 5 2013-04-10 13:18:30 PDT
Comment on attachment 197392 [details] Patch with new names View in context: https://bugs.webkit.org/attachment.cgi?id=197392&action=review > Source/WebCore/ChangeLog:17 > + New function subtracts out the headerHeight() to treat the top of the document at > + (0,0). Awkward line breaking. > Source/WebCore/WebCore.exp.in:1227 > +__ZNK7WebCore10ScrollView30scrollOffsetRealtiveToDocumentEv Typo.
Beth Dakin
Comment 6 2013-04-10 13:25:52 PDT
Simon Fraser (smfr)
Comment 7 2013-04-10 13:38:51 PDT
Comment on attachment 197395 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=197395&action=review > Source/WebCore/ChangeLog:22 > + Use scrollOffsetRealtiveToDocument() where we were previously making this Still misspelledt here. > Source/WebCore/platform/ScrollView.cpp:753 > + IntSize offsetRelativeToTotalContents = scrollOffset() + IntSize(0, headerHeight()); offsetIncludingHeader? > Source/WebCore/rendering/RenderLayer.h:404 > + LayoutRect getRectToExpose(const LayoutRect& visibleRect, LayoutRect& visibleRectRelativeToDocument, const LayoutRect& exposeRect, const ScrollAlignment& alignX, const ScrollAlignment& alignY); visibleRectRelativeToDocument should be a const LayoutRect&, no?
Beth Dakin
Comment 8 2013-04-10 13:56:11 PDT
Note You need to log in before you can comment on or make changes to this bug.