RESOLVED FIXED 142544
Optimize offsetWidth and offsetHeight to not necessarily do a layout
https://bugs.webkit.org/show_bug.cgi?id=142544
Summary Optimize offsetWidth and offsetHeight to not necessarily do a layout
Dave Hyatt
Reported 2015-03-10 14:17:46 PDT
Optimize offsetWidth and offsetHeight to not necessarily do a layout.
Attachments
Patch (7.62 KB, patch)
2015-03-10 14:27 PDT, Dave Hyatt
buildbot: commit-queue-
Archive of layout-test-results from ews104 for mac-mavericks-wk2 (861.94 KB, application/zip)
2015-03-10 16:14 PDT, Build Bot
no flags
Try this (8.22 KB, patch)
2015-03-10 17:03 PDT, Dave Hyatt
no flags
Patch (9.88 KB, patch)
2015-03-11 10:17 PDT, Dave Hyatt
bdakin: review+
Dave Hyatt
Comment 1 2015-03-10 14:27:07 PDT
WebKit Commit Bot
Comment 2 2015-03-10 14:29:03 PDT
Attachment 248358 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Document.cpp:1952: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] ERROR: Source/WebCore/dom/Document.cpp:1952: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 3 2015-03-10 16:14:53 PDT
Comment on attachment 248358 [details] Patch Attachment 248358 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5783148558286848 New failing tests: fast/images/repaint-subrect-grid.html
Build Bot
Comment 4 2015-03-10 16:14:57 PDT
Created attachment 248368 [details] Archive of layout-test-results from ews104 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Dave Hyatt
Comment 5 2015-03-10 17:03:06 PDT
Created attachment 248370 [details] Try this
WebKit Commit Bot
Comment 6 2015-03-10 17:05:20 PDT
Attachment 248370 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Document.cpp:1952: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] ERROR: Source/WebCore/dom/Document.cpp:1952: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 2 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dave Hyatt
Comment 7 2015-03-11 10:17:48 PDT
WebKit Commit Bot
Comment 8 2015-03-11 10:21:28 PDT
Attachment 248429 [details] did not pass style-queue: ERROR: Source/WebCore/dom/Document.cpp:1952: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] ERROR: Source/WebCore/dom/Document.cpp:1952: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 2 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dave Hyatt
Comment 9 2015-03-11 11:14:23 PDT
Landed in r181396.
Radar WebKit Bug Importer
Comment 10 2015-03-13 17:05:50 PDT
Simon Fraser (smfr)
Comment 11 2015-03-18 18:03:43 PDT
Chris Dumez
Comment 12 2015-05-11 10:51:34 PDT
Comment on attachment 248429 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248429&action=review > Source/WebCore/dom/Document.cpp:1931 > + bool checkingLogicalHeight = ((dimensionsCheck & HeightDimensionsCheck) && !isVertical) || ((dimensionsCheck & WidthDimensionsCheck) && !isVertical); Is this really correct? I would have expected the second check to use "&& isVectical" instead of "&& !isVectical".
Note You need to log in before you can comment on or make changes to this bug.