RenderStyle* style = nodeRenderer->style();
if (style) {
isUnclipped |= !style->hasAppearance();
- cachedInput.setTextSize(style->fontSize());
+ cachedInput.setTextSize(style->font().size());
cachedInput.setIsRtlText(style->direction() == RTL
|| style->textAlign() == WebCore::RIGHT
|| style->textAlign() == WebCore::WEBKIT_RIGHT);
DUMP_NAV_LOGD("// int mPaddingTop=%d;\n", b->mPaddingTop);
DUMP_NAV_LOGD("// int mPaddingRight=%d;\n", b->mPaddingRight);
DUMP_NAV_LOGD("// int mPaddingBottom=%d;\n", b->mPaddingBottom);
- DUMP_NAV_LOGD("// int mTextSize=%d;\n", b->mTextSize);
+ DUMP_NAV_LOGD("// float mTextSize=%f;\n", b->mTextSize);
DUMP_NAV_LOGD("// Type mType=%d;\n", b->mType);
DEBUG_PRINT_BOOL(mIsRtlText);
DEBUG_PRINT_BOOL(mIsTextField);
void setPaddingLeft(int left) { mPaddingLeft = left; }
void setPaddingRight(int right) { mPaddingRight = right; }
void setPaddingTop(int top) { mPaddingTop = top; }
- void setTextSize(int textSize) { mTextSize = textSize; }
- int textSize() const { return mTextSize; }
+ void setTextSize(float textSize) { mTextSize = textSize; }
+ float textSize() const { return mTextSize; }
private:
int mPaddingLeft;
int mPaddingRight;
int mPaddingTop;
- int mTextSize;
+ float mTextSize;
Type mType;
bool mIsRtlText : 1;
bool mIsTextField : 1;
return WtfStringToJstring(env, value);
}
-static jint nativeFocusCandidateTextSize(JNIEnv *env, jobject obj)
+static jfloat nativeFocusCandidateTextSize(JNIEnv *env, jobject obj)
{
const CachedInput* input = getInputCandidate(env, obj);
- return input ? input->textSize() : 0;
+ return input ? input->textSize() : 0.f;
}
static int nativeFocusCandidateType(JNIEnv *env, jobject obj)
(void*) nativeFocusCandidatePointer },
{ "nativeFocusCandidateText", "()Ljava/lang/String;",
(void*) nativeFocusCandidateText },
- { "nativeFocusCandidateTextSize", "()I",
+ { "nativeFocusCandidateTextSize", "()F",
(void*) nativeFocusCandidateTextSize },
{ "nativeFocusCandidateType", "()I",
(void*) nativeFocusCandidateType },