From 855bf5a103b19bdc941fc9533166f8bb770e26f9 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Mon, 26 Apr 2010 14:32:27 -0400 Subject: move CachedInput::init() to cpp The implementation of init() calls bzero, which is defined in CachedPrefix.h. if CachedInput.h is included directly bzero may not be defined. It is always defined for CachedInput.cpp. http://b/2535696 enter the commit message for your changes. Lines starting Change-Id: I995498cd4bc611f0f1a45aadf27a1fd330e62410 --- WebKit/android/nav/CachedInput.cpp | 5 +++++ WebKit/android/nav/CachedInput.h | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'WebKit/android/nav') diff --git a/WebKit/android/nav/CachedInput.cpp b/WebKit/android/nav/CachedInput.cpp index 924bbca..dcd9ccd 100644 --- a/WebKit/android/nav/CachedInput.cpp +++ b/WebKit/android/nav/CachedInput.cpp @@ -28,6 +28,11 @@ namespace android { +void CachedInput::init() { + bzero(this, sizeof(CachedInput)); + mName = WebCore::String(); +} + #if DUMP_NAV_CACHE #define DEBUG_PRINT_BOOL(field) \ diff --git a/WebKit/android/nav/CachedInput.h b/WebKit/android/nav/CachedInput.h index 42cadf1..a3d6b10 100644 --- a/WebKit/android/nav/CachedInput.h +++ b/WebKit/android/nav/CachedInput.h @@ -39,10 +39,7 @@ public: // constructor } void* formPointer() const { return mForm; } - void init() { - bzero(this, sizeof(CachedInput)); - mName = WebCore::String(); - } + void init(); WebCore::HTMLInputElement::InputType inputType() const { return mInputType; } bool isRtlText() const { return mIsRtlText; } bool isTextField() const { return mIsTextField; } -- cgit v1.1