return CGSizeZero;
}
-MSInstanceMessageHook7(CGSize, NSString, _drawInRect,withFont,lineBreakMode,alignment,lineSpacing,includeEmoji,truncationRect, CGRect, rect, UIFont *, font, UILineBreakMode, mode, WebTextAlignment, alignment, float, spacing, BOOL, emoji, CGRect, truncation) {
+MSInstanceMessageHook7(CGSize, NSString, _drawInRect,withFont,lineBreakMode,alignment,lineSpacing,includeEmoji,truncationRect, CGRect, rect, UIFont *, font, UILineBreakMode, mode, UITextAlignment, alignment, float, spacing, BOOL, emoji, CGRect, truncation) {
WBStringDrawingState *state(stringDrawingState_);
if (state == NULL)
return MSOldCall(rect, font, mode, alignment, spacing, emoji, truncation);
NSString *textAlign;
switch (alignment) {
default:
- case WebTextAlignmentLeft:
+ case UITextAlignmentLeft:
textAlign = @"left";
break;
- case WebTextAlignmentCenter:
+ case UITextAlignmentCenter:
textAlign = @"center";
break;
- case WebTextAlignmentRight:
+ case UITextAlignmentRight:
textAlign = @"right";
break;
}
@class WAKWindow;
@class WebView;
-typedef enum {
- WebTextAlignmentLeft = 0,
- WebTextAlignmentCenter = 1,
- WebTextAlignmentRight = 2,
-} WebTextAlignment;
-
@interface WBMarkup : NSObject {
/*04*/ WebView *view_;
/*08*/ DOMDocument *document_;