FindBanner matches don't line up correctly when a WKView has a header or footer. <rdar://problem/13522434>
Created attachment 197187 [details] Patch
Created attachment 197392 [details] Patch with new names
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?
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.
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.
Created attachment 197395 [details] Patch
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?
Thanks Simon! http://trac.webkit.org/changeset/148137