Bug 9325 - clientWidth/clientHeight on document element in strict mode should return visible frame size
Summary: clientWidth/clientHeight on document element in strict mode should return vis...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks: 7788
  Show dependency treegraph
 
Reported: 2006-06-06 01:52 PDT by Anders Carlsson
Modified: 2006-06-06 11:23 PDT (History)
0 users

See Also:


Attachments
Patch (4.11 KB, patch)
2006-06-06 02:00 PDT, Anders Carlsson
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2006-06-06 01:52:16 PDT
This is what WinIE does (Mozilla too)
Comment 1 Anders Carlsson 2006-06-06 02:00:50 PDT
Created attachment 8726 [details]
Patch
Comment 2 Darin Adler 2006-06-06 09:44:26 PDT
Comment on attachment 8726 [details]
Patch

+    if (!document()->inCompatMode() && 
+        document()->documentElement() == this)

I would put those on single lines -- they're not too long.

r=me