haikuwebkit/LayoutTests/scrollbars/scrollbar-percent-padding-c...

25 lines
819 B
HTML
Raw Permalink Normal View History

Crash in WebCore::RenderObject::repaint https://bugs.webkit.org/show_bug.cgi?id=86162 Patch by Takashi Sakamoto <tasak@google.com> on 2012-05-14 Reviewed by Abhishek Arya. Source/WebCore: As RenderScrollbarPart has no parent renderer, we crash in WebCore::RenderBoxModelObject::paddingLeft when paddingLeft has percent value, e.g. 5%. However if we set the scrollbar's parent renderer to a renderer owning the scrollbar by using setParent method, RenderScrollbarPart::styleWillChange will invoke parent renderer's repaint. This causes crash in WebCore::RenderObject::repaint if the owning renderer is already destroyed. To fix the first crash without the second crash, modify RenderObject::containingBlock() to check isRenderScrollbarPart or not, if parent() is 0. If so, use scrollbar's owningRenderer from RenderScrollbarPart. Test: scrollbars/scrollbar-percent-padding-crash.html scrollbars/scrollbar-scrollbarparts-repaint-crash.html * rendering/RenderObject.cpp: (WebCore::RenderObject::containingBlock): Modifying containingBlock. If parent() is 0 and isRenderScrollbarPart() is true, use RenderScrollbarPart's m_scrollbar->owningRenderer() instead of parent(). * rendering/RenderObject.h: (WebCore::RenderObject::isRenderScrollbarPart): (RenderObject): Adding a new method, isRenderScrollbarPart. * rendering/RenderScrollbarPart.cpp: (WebCore::RenderScrollbarPart::rendererOwningScrollbar): (WebCore): Adding a new method, scrollbarOwningRenderer to obtain m_scrollar's owningRenderer. * rendering/RenderScrollbarPart.h: (RenderScrollbarPart): Removing "friend class RenderScrollbar". (WebCore::RenderScrollbarPart::isRenderScrollbarPart): (WebCore::toRenderScrollbarPart): (WebCore): Implementing isRenderScrollbarPart and toRenderScrollbarPart. LayoutTests: * scrollbars/scrollbar-scrollbarparts-repaint-crash-expected.txt: Added. * scrollbars/scrollbar-scrollbarparts-repaint-crash.html: Added. * scrollbars/scrollbar-percent-padding-crash-expected.txt: Added. * scrollbars/scrollbar-percent-padding-crash.html: Added. Canonical link: https://commits.webkit.org/103999@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@117007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-05-14 22:36:03 +00:00
<!DOCTYPE html>
<html>
<head>
<style>
::-webkit-scrollbar {
-webkit-padding-start: 1%; background: #666 -webkit-gradient(linear, left top, right top, from(rgba(255,255,255,0.5)), color-stop(0.5, rgba(255,255,255,0.1)), color-stop(0.5, rgba(0,0,0,0)), to(rgba(0,0,0,0.01)));
}
</style>
<script>
function runTest() {
Use testRunner instead of layoutTestController in networkinformation, perf, plugins, pointer-lock, printing, scrollbars, and security tests https://bugs.webkit.org/show_bug.cgi?id=89181 Reviewed by Kent Tamura. * perf/clone-with-focus.html: * perf/nested-combined-selectors.html: * perf/table-rows-length-caching.html: * platform/chromium/plugins/call-as-function.html: * platform/chromium/plugins/get-url-with-blank-target2.html: * platform/chromium/plugins/get-url-with-iframe-target-no-crash.html: * platform/chromium/printing/custom-page-size-style-expected.txt: * platform/chromium/printing/custom-page-size-style.html: * platform/gtk/plugins/invalidate-rect-with-null-npp-argument.html: * platform/gtk/scrollbars/overflow-scrollbar-horizontal-wheel-scroll.html: * platform/mac-wk2/plugins/contents-scale-factor.html: * platform/mac-wk2/plugins/mouse-events-scaled.html: * platform/mac/plugins/bindings-array-apply-crash.html: * platform/mac/plugins/bindings-objc-long-method-name.html: * platform/mac/plugins/bindings-objc-method-name-conversion.html: * platform/mac/plugins/bindings-test-objc.html: * platform/mac/plugins/call-as-function-test.html: * platform/mac/plugins/convert-point.html: * platform/mac/plugins/disable-plugins.html: * platform/mac/plugins/jsobjc-dom-wrappers.html: * platform/mac/plugins/jsobjc-simple.html: * platform/mac/plugins/pluginDocumentView-deallocated-dataSource.html-disabled: * platform/mac/plugins/root-object-premature-delete-crash.html: * platform/mac/plugins/supports-carbon-event-model.html: * platform/mac/plugins/testplugin-onnew-onpaint.html: * platform/mac/plugins/throw-on-dealloc.html: * platform/mac/plugins/undefined-property-crash.html: * platform/mac/plugins/update-widget-from-style-recalc.html: * platform/mac/plugins/webScriptObject-exception-deadlock.html: * platform/mac/scrollbars/key-window-not-first-responder.html: * platform/qt/plugins/application-plugin-plugins-disabled.html: * platform/win/plugins/call-javascript-that-destroys-plugin.html: * platform/win/plugins/get-value-netscape-window.html: * platform/win/plugins/iframe-inside-overflow.html: * platform/win/plugins/npn-invalidate-rect-invalidates-window.html: * platform/win/plugins/visibility-hidden.html: * platform/win/plugins/window-geometry-initialized-before-set-window.html: * platform/win/plugins/window-region-is-set-to-clip-rect.html: * platform/win/plugins/windowless-paint-rect-coordinates.html: * plugins/: * pointer-lock/lock-fail-responses-expected.txt: * pointer-lock/lock-fail-responses.html: * pointer-lock/pointer-lock-api.html: * pointer-lock/pointerlockchange-pointerlockerror-events-expected.txt: * pointer-lock/pointerlockchange-pointerlockerror-events.html: * pointer-lock/pointerlocklost-event-expected.txt: * pointer-lock/pointerlocklost-event.html: * printing/compositing-layer-printing.html: * printing/css2.1/README.txt: * printing/css2.1/page-break-after-000.html: * printing/css2.1/page-break-after-001.html: * printing/css2.1/page-break-after-002.html: * printing/css2.1/page-break-after-003.html: * printing/css2.1/page-break-after-004.html: * printing/css2.1/page-break-before-000.html: * printing/css2.1/page-break-before-001.html: * printing/css2.1/page-break-before-002.html: * printing/css2.1/page-break-inside-000.html: * printing/iframe-print.html: * printing/media-queries-print.html: * printing/numberOfPages-expected.txt: * printing/page-count-layout-overflow.html: * printing/page-count-relayout-shrink.html: * printing/page-count-with-one-word.html: * printing/page-format-data-display-none.html: * printing/page-format-data-expected.txt: * printing/page-format-data.html: * printing/page-rule-css-text.html: * printing/page-rule-in-media-query.html: * printing/page-rule-selection-expected.txt: * printing/page-rule-selection.html: * printing/pageNumerForElementById-expected.txt: * printing/print-close-crash.html: * printing/pseudo-class-outside-page.html: * printing/resources/paged-media-test-utils.js: (pageNumberForElementShouldBe): (numberOfPagesShouldBe): (runPrintingTest): * printing/return-from-printing-mode.html: * printing/script-tests/numberOfPages.js: * printing/script-tests/pageNumerForElementById.js: * printing/setPrinting.html: * printing/simultaneous-position-float-change.html: * printing/single-line-must-not-be-split-into-two-pages.html: * printing/width-overflow.html: * printing/zoomed-document.html: * scrollbars/hidden-iframe-scrollbar-crash.html: * scrollbars/hidden-iframe-scrollbar-crash2.html: * scrollbars/hidden-scrollbar-prevents-layout.html: * scrollbars/overflow-custom-scrollbar-crash.html: * scrollbars/resources/hidden-iframe-scrollbar-crash2.html: * scrollbars/scroll-rtl-or-bt-layer.html: * scrollbars/scrollable-iframe-remove-crash.html: * scrollbars/scrollbar-click-does-not-blur-content.html: * scrollbars/scrollbar-crash-on-refresh.html: * scrollbars/scrollbar-drag-thumb-with-large-content.html: * scrollbars/scrollbar-gradient-crash.html: * scrollbars/scrollbar-iframe-click-does-not-blur-content.html: * scrollbars/scrollbar-initial-position.html: * scrollbars/scrollbar-middleclick-nopaste.html: * scrollbars/scrollbar-miss-mousemove-disabled.html: * scrollbars/scrollbar-miss-mousemove.html: * scrollbars/scrollbar-owning-renderer-crash.html: * scrollbars/scrollbar-part-created-with-no-parent-crash.html: * scrollbars/scrollbar-percent-padding-crash.html: * scrollbars/scrollbar-scrollbarparts-repaint-crash.html: * scrollbars/scrollevent-iframe-no-scrolling-wheel.html: * scrollbars/scrollevent-iframe-no-scrolling.html: * security/autocomplete-cleared-on-back.html: * security/block-test-no-port.html: * security/block-test.html: * security/set-form-autocomplete-attribute.html: Canonical link: https://commits.webkit.org/107031@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-15 07:38:37 +00:00
if (window.testRunner) {
testRunner.dumpAsText();
Crash in WebCore::RenderObject::repaint https://bugs.webkit.org/show_bug.cgi?id=86162 Patch by Takashi Sakamoto <tasak@google.com> on 2012-05-14 Reviewed by Abhishek Arya. Source/WebCore: As RenderScrollbarPart has no parent renderer, we crash in WebCore::RenderBoxModelObject::paddingLeft when paddingLeft has percent value, e.g. 5%. However if we set the scrollbar's parent renderer to a renderer owning the scrollbar by using setParent method, RenderScrollbarPart::styleWillChange will invoke parent renderer's repaint. This causes crash in WebCore::RenderObject::repaint if the owning renderer is already destroyed. To fix the first crash without the second crash, modify RenderObject::containingBlock() to check isRenderScrollbarPart or not, if parent() is 0. If so, use scrollbar's owningRenderer from RenderScrollbarPart. Test: scrollbars/scrollbar-percent-padding-crash.html scrollbars/scrollbar-scrollbarparts-repaint-crash.html * rendering/RenderObject.cpp: (WebCore::RenderObject::containingBlock): Modifying containingBlock. If parent() is 0 and isRenderScrollbarPart() is true, use RenderScrollbarPart's m_scrollbar->owningRenderer() instead of parent(). * rendering/RenderObject.h: (WebCore::RenderObject::isRenderScrollbarPart): (RenderObject): Adding a new method, isRenderScrollbarPart. * rendering/RenderScrollbarPart.cpp: (WebCore::RenderScrollbarPart::rendererOwningScrollbar): (WebCore): Adding a new method, scrollbarOwningRenderer to obtain m_scrollar's owningRenderer. * rendering/RenderScrollbarPart.h: (RenderScrollbarPart): Removing "friend class RenderScrollbar". (WebCore::RenderScrollbarPart::isRenderScrollbarPart): (WebCore::toRenderScrollbarPart): (WebCore): Implementing isRenderScrollbarPart and toRenderScrollbarPart. LayoutTests: * scrollbars/scrollbar-scrollbarparts-repaint-crash-expected.txt: Added. * scrollbars/scrollbar-scrollbarparts-repaint-crash.html: Added. * scrollbars/scrollbar-percent-padding-crash-expected.txt: Added. * scrollbars/scrollbar-percent-padding-crash.html: Added. Canonical link: https://commits.webkit.org/103999@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@117007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-05-14 22:36:03 +00:00
document.body.offsetTop;
Tools: Rename TestRunner.display() to TestRunner::displayAndTrackRepaints() https://bugs.webkit.org/show_bug.cgi?id=171641 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2017-05-04 Reviewed by Simon Fraser. The plan is to add back the TestRunner.display() which does the display only without track repaints. * DumpRenderTree/DumpRenderTree.h: * DumpRenderTree/TestRunner.cpp: (displayAndTrackRepaintsCallback): (TestRunner::staticFunctions): (displayCallback): Deleted. (displayInvalidatedRegionCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/mac/DumpRenderTree.mm: (displayWebView): (displayAndTrackRepaintsWebView): * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::displayAndTrackRepaints): (TestRunner::display): Deleted. * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::displayAndTrackRepaints): (TestRunner::display): Deleted. * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::displayAndTrackRepaints): (WTR::TestRunner::display): Deleted. * WebKitTestRunner/InjectedBundle/TestRunner.h: LayoutTests: Rename testRunner.displayAndTrackRepaints() to testRunner.displayAndTrackRepaints() https://bugs.webkit.org/show_bug.cgi?id=171641 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2017-05-04 Reviewed by Simon Fraser. Replace all the calls to testRunner.displayAndTrackRepaints() by testRunner.displayAndTrackRepaints() Replace all the calls to testRunner.displayInvalidatedRegion() by testRunner.displayAndTrackRepaints() since the former is a copy of the later. * compositing/clip-change.html: * compositing/geometry/foreground-offset-change.html: * compositing/geometry/limit-layer-bounds-transformed-overflow.html: * compositing/iframes/become-composited-nested-iframes.html: * compositing/iframes/become-overlapped-iframe.html: * compositing/iframes/connect-compositing-iframe-delayed.html: * compositing/iframes/connect-compositing-iframe.html: * compositing/iframes/connect-compositing-iframe2.html: * compositing/iframes/connect-compositing-iframe3.html: * compositing/iframes/enter-compositing-iframe.html: * compositing/iframes/iframe-content-flipping.html: * compositing/iframes/iframe-resize.html: * compositing/iframes/iframe-size-to-zero.html: * compositing/iframes/iframe-src-change.html: * compositing/iframes/invisible-nested-iframe-hide.html: * compositing/iframes/invisible-nested-iframe-show.html: * compositing/iframes/leave-compositing-iframe.html: * compositing/iframes/overlapped-iframe-iframe.html: * compositing/iframes/overlapped-iframe.html: * compositing/iframes/overlapped-nested-iframes.html: * compositing/iframes/repaint-after-losing-scrollbars.html: * compositing/iframes/resources/fixed-position-subframe.html: * compositing/iframes/resources/fixed-position-transformed-subframe.html: * compositing/iframes/resources/scrollgrandchild-inner.html: * compositing/iframes/scrolling-iframe.html: * compositing/overflow/content-gains-scrollbars.html: * compositing/overflow/content-loses-scrollbars.html: * compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html: * compositing/overflow/overflow-scrollbar-layers.html: * compositing/overflow/paint-neg-z-order-descendants-into-scrolling-contents-layer.html: * compositing/overflow/repaint-after-losing-scrollbars.html: * compositing/patterns/direct-pattern-compositing-add-text-expected.html: * compositing/patterns/direct-pattern-compositing-add-text.html: * compositing/patterns/direct-pattern-compositing-change-expected.html: * compositing/patterns/direct-pattern-compositing-change.html: * compositing/patterns/direct-pattern-compositing-load-expected.html: * compositing/patterns/direct-pattern-compositing-load.html: * compositing/plugins/invalidate_rect.html: * compositing/repaint/iframes/composited-iframe-with-fixed-background-doc-repaint.html: * compositing/repaint/iframes/compositing-iframe-scroll-repaint.html: * compositing/repaint/iframes/compositing-iframe-with-fixed-background-doc-repaint.html: * compositing/repaint/newly-composited-on-scroll.html: * compositing/repaint/newly-composited-repaint-rect.html: * compositing/repaint/page-scale-repaint.html: * compositing/repaint/requires-backing-repaint.html: * compositing/repaint/transform-style-change.html: * compositing/rtl/rtl-overflow-invalidation.html: * compositing/scroll-painted-composited-content.html: * compositing/tiling/huge-layer-resize.html: * compositing/video-page-visibility.html: * compositing/video/video-with-invalid-source.html: * compositing/webgl/webgl-repaint.html: * css3/filters/multiple-filters-invalidation.html: * css3/flexbox/repaint-column-reverse.html: * css3/flexbox/repaint-during-resize-no-flex.html: * css3/flexbox/repaint-rtl-column.html: * css3/flexbox/repaint.html: * displaylists/canvas-display-list.html: * displaylists/resources/dump-target-display-list.js: (doTest): * displaylists/resources/dump-target-replay-list.js: (doTest): * fast/animation/request-animation-frame-detach-element.html: * fast/animation/request-animation-frame-detach-element2.html: * fast/animation/request-animation-frame-during-modal.html: * fast/animation/request-animation-frame-iframe.html: * fast/animation/request-animation-frame-iframe2.html: * fast/animation/script-tests/request-animation-frame-cancel.js: * fast/animation/script-tests/request-animation-frame-cancel2.js: * fast/animation/script-tests/request-animation-frame-disabled.js: * fast/animation/script-tests/request-animation-frame-prefix.js: (window.webkitRequestAnimationFrame): (window.testRunner.window.setTimeout): * fast/animation/script-tests/request-animation-frame-time-unit.js: (window.requestAnimationFrame): * fast/animation/script-tests/request-animation-frame-timestamps-advance.js: (window.requestAnimationFrame): (window.testRunner.window.setTimeout): * fast/animation/script-tests/request-animation-frame-timestamps.js: * fast/animation/script-tests/request-animation-frame-within-callback.js: * fast/animation/script-tests/request-animation-frame.js: * fast/backgrounds/obscured-background-child-style-change-expected.html: * fast/backgrounds/obscured-background-child-style-change.html: * fast/backgrounds/solid-color-context-restore.html: * fast/canvas/canvas-as-image-incremental-repaint.html: * fast/canvas/canvas-incremental-repaint-2.html: * fast/canvas/canvas-incremental-repaint.html: * fast/canvas/canvas-resize-after-paint.html: * fast/canvas/resources/repaint.js: (runRepaintTest): * fast/canvas/script-tests/canvas-imageSmoothingEnabled-repaint.js: (TestControllerPaint): * fast/canvas/webgl/canvas-test.html: * fast/canvas/webgl/webgl-layer-update.html: * fast/css/pseudostyle-anonymous-text.html: * fast/css/relative-positioned-block-crash.html: * fast/dom/Window/post-message-crash.html: * fast/dom/Window/web-timing-minimal-performance-now.html: * fast/dynamic/containing-block-change.html: * fast/dynamic/layer-no-longer-paginated.html: * fast/events/touch/gesture/pad-gesture-cancel.js: * fast/events/touch/gesture/pad-gesture-fling.js: * fast/forms/hidden-listbox.html: * fast/forms/listbox-clip.html: * fast/frames/inline-object-inside-frameset.html: * fast/frames/transparent-scrollbar.html: * fast/images/animated-background-image-crash.html: * fast/layers/add-layer-with-nested-stacking.html: * fast/layers/inline-dirty-z-order-lists.html: * fast/layers/layer-content-visibility-change.html: * fast/layers/nested-layers-1.html: * fast/layers/nested-layers-2.html: * fast/layers/nested-layers-3.html: * fast/layers/nested-layers-4.html: * fast/layers/remove-layer-with-nested-stacking.html: * fast/overflow/hidden-scrollbar-resize.html: * fast/reflections/inline-crash.html: * fast/repaint/animation-after-layer-scroll.html: * fast/repaint/background-shorthand-with-gradient-and-height-changes.html: * fast/repaint/fixed-child-move-after-scroll.html: * fast/repaint/fixed-child-of-fixed-move-after-scroll.html: * fast/repaint/fixed-child-of-transformed-move-after-scroll.html: * fast/repaint/fixed-move-after-scroll.html: * fast/repaint/no-animation-outside-viewport-subframe.html: * fast/repaint/no-animation-outside-viewport.html: * fast/repaint/obscured-background-no-repaint.html: * fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html: * fast/repaint/renderer-destruction-by-invalidateSelection-crash.html: * fast/repaint/repaint-during-scroll-with-zoom.html: * fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.html: * fast/repaint/resources/iframe-scroll-repaint-iframe.html: * fast/repaint/resources/line-flow-with-floats.js: (beginTest): * fast/repaint/resources/repaint.js: (runRepaintTest): * fast/repaint/table-overflow-hidden-in-overflow-hidden-scrolled.html: * fast/replaced/width100percent-textarea.html: * fast/scrolling/scrollbar-tickmarks-hittest.html: * fast/table/border-collapsing/cached-69296.html: * fast/table/border-collapsing/cached-cell-append.html: * fast/table/border-collapsing/cached-cell-remove.html: * fast/table/border-collapsing/cached-change-cell-border-color.html: * fast/table/border-collapsing/cached-change-cell-border-width.html: * fast/table/border-collapsing/cached-change-cell-sl-border-color.html: * fast/table/border-collapsing/cached-change-col-border-color.html: * fast/table/border-collapsing/cached-change-col-border-width.html: * fast/table/border-collapsing/cached-change-colgroup-border-color.html: * fast/table/border-collapsing/cached-change-colgroup-border-width.html: * fast/table/border-collapsing/cached-change-row-border-color.html: * fast/table/border-collapsing/cached-change-row-border-width.html: * fast/table/border-collapsing/cached-change-table-border-color.html: * fast/table/border-collapsing/cached-change-table-border-width.html: * fast/table/border-collapsing/cached-change-tbody-border-color.html: * fast/table/border-collapsing/cached-change-tbody-border-width.html: * fast/table/empty-section-crash.html: * fast/text/font-initial.html: * fast/text/international/harfbuzz-runs-with-no-glyph.html: * fast/text/text-shadow-extreme-value.html: * http/tests/misc/slow-loading-image-in-pattern.html: * media/audio-repaint.html: * media/media-document-audio-repaint.html: * plugins/windowless_plugin_paint_test.html: * scrollbars/scrollbar-percent-padding-crash.html: * svg/custom/non-scaling-stroke-update.svg: * svg/custom/stale-resource-data-crash.svg: Canonical link: https://commits.webkit.org/188591@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-05-04 21:46:39 +00:00
testRunner.displayAndTrackRepaints();
Crash in WebCore::RenderObject::repaint https://bugs.webkit.org/show_bug.cgi?id=86162 Patch by Takashi Sakamoto <tasak@google.com> on 2012-05-14 Reviewed by Abhishek Arya. Source/WebCore: As RenderScrollbarPart has no parent renderer, we crash in WebCore::RenderBoxModelObject::paddingLeft when paddingLeft has percent value, e.g. 5%. However if we set the scrollbar's parent renderer to a renderer owning the scrollbar by using setParent method, RenderScrollbarPart::styleWillChange will invoke parent renderer's repaint. This causes crash in WebCore::RenderObject::repaint if the owning renderer is already destroyed. To fix the first crash without the second crash, modify RenderObject::containingBlock() to check isRenderScrollbarPart or not, if parent() is 0. If so, use scrollbar's owningRenderer from RenderScrollbarPart. Test: scrollbars/scrollbar-percent-padding-crash.html scrollbars/scrollbar-scrollbarparts-repaint-crash.html * rendering/RenderObject.cpp: (WebCore::RenderObject::containingBlock): Modifying containingBlock. If parent() is 0 and isRenderScrollbarPart() is true, use RenderScrollbarPart's m_scrollbar->owningRenderer() instead of parent(). * rendering/RenderObject.h: (WebCore::RenderObject::isRenderScrollbarPart): (RenderObject): Adding a new method, isRenderScrollbarPart. * rendering/RenderScrollbarPart.cpp: (WebCore::RenderScrollbarPart::rendererOwningScrollbar): (WebCore): Adding a new method, scrollbarOwningRenderer to obtain m_scrollar's owningRenderer. * rendering/RenderScrollbarPart.h: (RenderScrollbarPart): Removing "friend class RenderScrollbar". (WebCore::RenderScrollbarPart::isRenderScrollbarPart): (WebCore::toRenderScrollbarPart): (WebCore): Implementing isRenderScrollbarPart and toRenderScrollbarPart. LayoutTests: * scrollbars/scrollbar-scrollbarparts-repaint-crash-expected.txt: Added. * scrollbars/scrollbar-scrollbarparts-repaint-crash.html: Added. * scrollbars/scrollbar-percent-padding-crash-expected.txt: Added. * scrollbars/scrollbar-percent-padding-crash.html: Added. Canonical link: https://commits.webkit.org/103999@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@117007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-05-14 22:36:03 +00:00
}
};
</script>
</head>
<body onload="runTest()">
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=86162">bug 86162</a>:
This tests that there is no crash when using percentage value for scrollbar's padding property. On success you should see a frame with scrollbars and one PASS message in it.
<div style="height: 1000px;"></div>
</body>
</html>