Bug 23574 - add #if ENABLE(PAN_SCROLLING) around EventHandler::setPanScrollCursor
Summary: add #if ENABLE(PAN_SCROLLING) around EventHandler::setPanScrollCursor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 12:50 PST by Feng Qian
Modified: 2009-02-07 18:48 PST (History)
1 user (show)

See Also:


Attachments
patch v1 (1.68 KB, patch)
2009-01-27 12:54 PST, Feng Qian
eric: review+
Details | Formatted Diff | Diff
patch with my name (1.68 KB, patch)
2009-02-06 15:58 PST, Feng Qian
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Feng Qian 2009-01-27 12:50:21 PST
EventHanlder::setPanScrollCursor is a private method of EventHandler class, and it is only used by autoscrollTimerFired when ENABLE(PAN_SCROLLING) is true. Putting #if ENABLE(PAN_SCROLLING) around Event::setPanScrollCursor can save some bytes for platforms that do not support pan scrolling.
Comment 1 Feng Qian 2009-01-27 12:54:37 PST
Created attachment 27082 [details]
patch v1
Comment 2 Holger Freyther 2009-01-31 12:10:20 PST
Can't you compile the libWebCore to an archive (.a) file and let the linker sort that out?
Comment 3 Feng Qian 2009-02-02 09:31:30 PST
On Android platform, libwebcore is compiled as a shared library (used by browser and other apps). In this case, I think a smart linker should be able to strip setPanScrollCursor off since the function is private and not used, but the linker seems not as smart as we want :(

(In reply to comment #2)
> Can't you compile the libWebCore to an archive (.a) file and let the linker
> sort that out?
> 

Comment 4 Eric Seidel (no email) 2009-02-06 14:23:07 PST
Comment on attachment 27082 [details]
patch v1

The patch looks fine.  The ChangeLog needs your full name.  You should investigate setting the CHANGE_LOG_NAME environment variable.  see prepare-ChangeLog for more info.
Comment 5 Feng Qian 2009-02-06 15:58:05 PST
Created attachment 27430 [details]
patch with my name

Thanks, Eric

Updated the patch with fixed name in the changeLog.
Comment 6 Eric Seidel (no email) 2009-02-06 15:59:35 PST
Comment on attachment 27430 [details]
patch with my name

Still looks good. :)
Comment 7 Brent Fulgham 2009-02-07 18:48:44 PST
Committed in http://trac.webkit.org/changeset/40767