Bug 10752

Summary: The inspector should not respond to Make Text Smaller/Bigger commands
Product: WebKit Reporter: mitz
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: All   
OS: All   
Attachments:
Description Flags
First attempt
mjs: review-
Now with testcase
none
Slight tweaks mitz: review+

Description mitz 2006-09-06 04:16:12 PDT
When the Inspector is focused, Safari's View > Make Text Smaller/Bigger commands target it, and the results aren't pretty.
Comment 1 Rob Buis 2007-05-19 09:20:02 PDT
Created attachment 14627 [details]
First  attempt

This fixes the problem in the inspector, unfortunately no way to autotest I think.
Cheers,

Rob.
Comment 2 mitz 2007-05-19 11:28:24 PDT
Comment on attachment 14627 [details]
First  attempt

Is it possible to make a layout test for this part?

-            if (type != CSSPrimitiveValue::CSS_EMS && type != CSSPrimitiveValue::CSS_EXS && view && view->frame()) {
+            if (type != CSSPrimitiveValue::CSS_EMS && type != CSSPrimitiveValue::CSS_EXS && style->textSizeAdjust() && view && view->frame()) {
Comment 3 Maciej Stachowiak 2007-05-29 01:06:45 PDT
Comment on attachment 14627 [details]
First  attempt

I think Mitz is right that the change for handling of -webkit-text-size-adjust can be tested, even if not in the inspector. Please add a test case.
Comment 4 Timothy Hatcher 2007-06-26 05:44:43 PDT
Ideally the inspector should work with text zoom.
Comment 5 Rob Buis 2007-07-05 04:10:11 PDT
Created attachment 15398 [details]
Now with testcase

This time there is a testcase, since I can now also zoom in/out, bug 14209 patch is also in this patch.
Cheers,

Rob.
Comment 6 Rob Buis 2007-07-05 13:29:54 PDT
Created attachment 15405 [details]
Slight tweaks

The testcase contained some garbage and was in the wrong dir, this patch fixes that.
Cheers,

Rob.
Comment 7 mitz 2007-07-08 04:56:01 PDT
Comment on attachment 15405 [details]
Slight tweaks

r=me
Comment 8 Rob Buis 2007-07-12 00:51:44 PDT
Landed in r24097.
Comment 9 Matt Lilek 2007-07-12 01:04:05 PDT
See bug 14588 for followup