Bug 48545

Summary: Home/End, PgUp, PgDwn, spacebar, shift+spacebar, etc. should respect writing-mode
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: Layout and RenderingAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, mitz, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 46123    
Attachments:
Description Flags
Part 1: Patch for Mac WebKit 1 views.
none
Part 1: Patch for Mac WebKit 1 views.
none
Part 1: Patch for Mac WebKit 1 views.
mitz: review+
Part 2: Patch for WebKit2 views.
sam: review+
Cleanup on Windows. aroben: review+

Dave Hyatt
Reported 2010-10-28 11:56:27 PDT
The arrow keys, spacebar, shift+spacebar, etc. should respect writing-mode and move in the appropriate writing-mode direction rather than being hardcoded to horizontal-tb.
Attachments
Part 1: Patch for Mac WebKit 1 views. (6.23 KB, patch)
2010-12-09 12:10 PST, Dave Hyatt
no flags
Part 1: Patch for Mac WebKit 1 views. (4.64 KB, patch)
2010-12-09 12:28 PST, Dave Hyatt
no flags
Part 1: Patch for Mac WebKit 1 views. (4.67 KB, patch)
2010-12-09 13:05 PST, Dave Hyatt
mitz: review+
Part 2: Patch for WebKit2 views. (26.88 KB, patch)
2010-12-13 11:55 PST, Dave Hyatt
sam: review+
Cleanup on Windows. (2.66 KB, patch)
2010-12-13 12:28 PST, Dave Hyatt
aroben: review+
Adele Peterson
Comment 1 2010-10-29 15:11:33 PDT
Dave Hyatt
Comment 2 2010-12-09 12:10:42 PST
Created attachment 76101 [details] Part 1: Patch for Mac WebKit 1 views.
Dave Hyatt
Comment 3 2010-12-09 12:28:01 PST
Created attachment 76110 [details] Part 1: Patch for Mac WebKit 1 views.
mitz
Comment 4 2010-12-09 13:02:54 PST
Comment on attachment 76110 [details] Part 1: Patch for Mac WebKit 1 views. View in context: https://bugs.webkit.org/attachment.cgi?id=76110&action=review > WebKit/mac/WebView/WebFrameView.mm:595 > + if (isVertical) { > + if (!isFlipped) > + NSMakePoint(frame.origin.x, NSMaxY(frame)); > + else > + NSMakePoint(frame.origin.x, NSMinY(frame)); > + } else { > + if (!isFlipped) > + NSMakePoint(NSMaxX(frame), frame.origin.y); > + else > + NSMakePoint(NSMinX(frame), frame.origin.y); > + } I think you meant to assign the result of NSMakePoint() to point
Dave Hyatt
Comment 5 2010-12-09 13:05:07 PST
(In reply to comment #4) > (From update of attachment 76110 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=76110&action=review > > > WebKit/mac/WebView/WebFrameView.mm:595 > > + if (isVertical) { > > + if (!isFlipped) > > + NSMakePoint(frame.origin.x, NSMaxY(frame)); > > + else > > + NSMakePoint(frame.origin.x, NSMinY(frame)); > > + } else { > > + if (!isFlipped) > > + NSMakePoint(NSMaxX(frame), frame.origin.y); > > + else > > + NSMakePoint(NSMinX(frame), frame.origin.y); > > + } > > I think you meant to assign the result of NSMakePoint() to point WORST PATCH EVER!
Dave Hyatt
Comment 6 2010-12-09 13:05:35 PST
Created attachment 76115 [details] Part 1: Patch for Mac WebKit 1 views.
mitz
Comment 7 2010-12-09 13:41:15 PST
Comment on attachment 76115 [details] Part 1: Patch for Mac WebKit 1 views. View in context: https://bugs.webkit.org/attachment.cgi?id=76115&action=review > WebKit/mac/WebView/WebFrameView.mm:604 > + greenspace
Darin Adler
Comment 8 2010-12-09 14:10:52 PST
Comment on attachment 76115 [details] Part 1: Patch for Mac WebKit 1 views. View in context: https://bugs.webkit.org/attachment.cgi?id=76115&action=review > WebKit/mac/WebView/WebFrameView.mm:544 > + return renderView->style()->isHorizontalWritingMode(); Sense here seems backwards!
Dave Hyatt
Comment 9 2010-12-13 11:55:26 PST
Created attachment 76418 [details] Part 2: Patch for WebKit2 views.
Sam Weinig
Comment 10 2010-12-13 11:59:41 PST
Comment on attachment 76418 [details] Part 2: Patch for WebKit2 views. View in context: https://bugs.webkit.org/attachment.cgi?id=76418&action=review > WebKit2/WebProcess/WebPage/mac/WebPageMac.mm:112 > +static inline void logicalScroll(Page* page, ScrollLogicalDirection direction, ScrollGranularity granularity) > +{ > + page->focusController()->focusedOrMainFrame()->eventHandler()->logicalScrollRecursively(direction, granularity); > +} Is anyone still calling the scroll() function above? Can we remove it?
Dave Hyatt
Comment 11 2010-12-13 12:14:47 PST
Fixed in r73941.
Dave Hyatt
Comment 12 2010-12-13 12:28:29 PST
Created attachment 76420 [details] Cleanup on Windows.
Adam Roben (:aroben)
Comment 13 2010-12-13 12:29:10 PST
Comment on attachment 76420 [details] Cleanup on Windows. Is it possible to add a test for this?
WebKit Review Bot
Comment 14 2010-12-13 13:51:44 PST
http://trac.webkit.org/changeset/73941 might have broken SnowLeopard Intel Release (Tests) and GTK Linux 64-bit Debug The following tests are not passing: editing/selection/extend-to-line-boundary.html
Note You need to log in before you can comment on or make changes to this bug.