- 11 Sep, 2013 17 commits
-
-
mario@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=114867 Reviewed by Martin Robinson. Removed all trace of Gail and Pango specific code from the AtkText implementation, now everything has been reimplemented. * accessibility/atk/WebKitAccessibleInterfaceText.cpp: (webkitAccessibleTextGetTextForOffset): Removed fallback code relying in Gail/Pango, now all the related code has been removed. Also, replaced the collection of if statements with a switch, for better readability of the code. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
allan.jensen@digia.com authored
https://bugs.webkit.org/show_bug.cgi?id=120786 Reviewed by Antonio Gomes. Source/WebCore: When a hovered element is detached it will now emit a fake mousemove event similar to what happens when a hovered element has CSS display set to none. Test: fast/events/mouseenterleave-detached-element.html * dom/Document.cpp: (WebCore::Document::hoveredElementDidDetach): * page/EventHandler.cpp: (WebCore::EventHandler::EventHandler): (WebCore::EventHandler::clear): (WebCore::EventHandler::handleMouseMoveEvent): * page/EventHandler.h: LayoutTests: Test of mouseenter/mouseleave events when a hovered element is removed. * fast/events/mouseenterleave-detached-element-expected.txt: Added. * fast/events/mouseenterleave-detached-element.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=121149 Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-09-11 Reviewed by Mario Sanchez Prada. Source/WebCore: Adds mapping MenuItemRadioRole to ATK. * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (atkRole): Tools: Adds mapping MenuItemRadioRole to ATK. * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: (roleToString): * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::roleToString): LayoutTests: Corrected expectations so that they can properly test MenuItemRadioRole. * platform/efl/accessibility/aria-menubar-menuitems-expected.txt: * platform/gtk/accessibility/aria-menubar-menuitems-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
berto@igalia.com authored
https://bugs.webkit.org/show_bug.cgi?id=121150 Reviewed by Carlos Garcia Campos. The removal of autom4te.cache is wrong, it uses 'rm -f' instead of 'rm -rf' and it relies on an undefined variable. In addition to that, it should be done after running autoreconf, which is when it's no longer needed. * autogen.sh: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mario@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=114872 Reviewed by Gustavo Noronha Silva. Source/WebCore: Re-implement these functions without using GailTextUtil nor Pango. * accessibility/atk/WebKitAccessibleInterfaceText.cpp: (lineAtPositionForAtkBoundary): New helper function to find the line at a given position considering values of AtkTextBoundary. (webkitAccessibleTextLineForBoundary): New function, implementing atk_text_get_text_*_offset for LINE. (webkitAccessibleTextGetTextForOffset): Replace usage of Gail for LINE boundaries with webkitAccessibleTextLineForBoundary(). Source/WebKit/gtk: Fixed wrong unit test. * tests/testatk.c: (testWebkitAtkGetTextAtOffsetWithPreformattedText): This test was reporting a trailing '\n' for some reason for a <pre> block, which is plainly wrong since, in order to return that, there should be at least a trailing empty space after that and before the </pre> closing tag. This is fixed now. (testWebkitAtkGetTextAtOffsetWithWrappedLines): Uncommented tests that were previously not passing due to a bug in GailTextUtil. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
berto@igalia.com authored
https://bugs.webkit.org/show_bug.cgi?id=19512 Reviewed by Carlos Garcia Campos. Quote all directory names. This doesn't mean that all possible directory names are safe for building webkit, but the configure script already runs a sanity check. * autogen.sh: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
* history/BackForwardList.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
Rubber-stamped by Antti Koivisto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rniwa@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=121083 Reviewed by Sam Weinig. Support [Inherited] option in makeprop.pl and generate CSSProperty::isInheritedProperty in CSSPropertyNames.cpp using a lookup table. We can pack the table better by using bitfield in the future but I think boolean lookup table is a good first cut. Updated CSSPropertyNames.in and SVGCSSPropertyNames.in to use the new option and removed the old code from CSSProperty.cpp. * css/CSSProperty.cpp: * css/CSSPropertyNames.in: * css/SVGCSSPropertyNames.in: * css/makeprop.pl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
<https://webkit.org/b/121146> Reviewed by Antti Koivisto. Nuke another old FIXME. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
zandobersek@gmail.com authored
https://bugs.webkit.org/show_bug.cgi?id=121145 Reviewed by Carlos Garcia Campos. Disabling the dependencies' deprecated symbols in debug builds is only causing unnecessary build failures. Compiler warnings are being thrown whenever a deprecated symbol is being used, so a build failure is an overreach in this case. * Source/autotools/SetupAutoconfHeader.m4: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
gyuyoung.kim@samsung.com authored
https://bugs.webkit.org/show_bug.cgi?id=121080 Reviewed by Andreas Kling. Clean-up remained functions of HTML elements using auto-generated isFooElement(), and replace toFooElement() with ELEMENT_TYPE_CASTS() macro. Besides this patch clean-up unnecessary checks which are being supported by auto-generated isFooElement(). Source/WebCore: No new tests, no behavior change. * accessibility/atk/AXObjectCacheAtk.cpp: (WebCore::notifyChildrenSelectionChange): * html/HTMLFrameElementBase.h: (WebCore::toHTMLFrameElementBase): * html/HTMLIFrameElement.h: * html/HTMLImageLoader.cpp: (WebCore::HTMLImageLoader::dispatchLoadEvent): (WebCore::HTMLImageLoader::notifyFinished): * html/HTMLObjectElemenaeh: * html/HTMLOptionsCollection.cpp: (WebCore::HTMLOptionsCollection::HTMLOptionsCollection): * html/HTMLSelectElement.h: * html/HTMLTagNames.in: * html/HTMLVideoElement.h: * html/shadow/HTMLContentElement.h: * loader/ImageLoader.cpp: (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent): * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::create): * page/PageSerializer.cpp: (WebCore::frameOwnerURLAttributeName): * page/SpatialNavigation.cpp: (WebCore::canScrollInDirection): * platform/gtk/PasteboardGtk.cpp: (WebCore::getURLForImageNode): * plugins/IFrameShimSupport.cpp: (WebCore::getPluginOcclusions): * rendering/HitTestResult.cpp: (WebCore::HitTestResult::mediaSupportsFullscreen): (WebCore::HitTestResult::mediaElement): (WebCore::HitTestResult::enterFullscreenForVideo): (WebCore::HitTestResult::mediaIsVideo): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::requiresCompositingForVideo): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::RenderListBox): * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::RenderMenuList): * testing/Internals.cpp: (WebCore::Internals::isSelectPopupVisible): Source/WebKit/blackberry: * Api/WebPage.cpp: (BlackBerry::WebKit::WebPagePrivate::adjustRectOffsetForFrameOffset): (BlackBerry::WebKit::WebPage::notifyFullScreenVideoExited): (BlackBerry::WebKit::WebPagePrivate::enterFullscreenForNode): (BlackBerry::WebKit::WebPagePrivate::exitFullscreenForNode): (BlackBerry::WebKit::WebPagePrivate::enterFullScreenForElement): (BlackBerry::WebKit::WebPagePrivate::exitFullScreenForElement): * WebCoreSupport/ChromeClientBlackBerry.cpp: (WebCore::ChromeClientBlackBerry::supportsFullscreenForNode): * WebCoreSupport/EditorClientBlackBerry.cpp: (WebCore::EditorClientBlackBerry::shouldChangeSelectedRange): * WebKitSupport/DOMSupport.cpp: (BlackBerry::WebKit::DOMSupport::isElementTypePlugin): * WebKitSupport/InputHandler.cpp: (BlackBerry::WebKit::InputHandler::willOpenPopupForNode): (BlackBerry::WebKit::InputHandler::didNodeOpenPopup): * WebKitSupport/SelectionHandler.cpp: (BlackBerry::WebKit::SelectionHandler::selectionPositionChanged): Source/WebKit/gtk: No new tests, no behavior change. * WebCoreSupport/ChromeClientGtk.cpp: (WebKit::ChromeClient::supportsFullscreenForNode): Source/WebKit/mac: No new tests, no behavior change. * Plugins/WebPluginController.mm: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::supportsFullscreenForNode): * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:WebCore::]): Source/WebKit/qt: * WebCoreSupport/ChromeClientQt.cpp: Source/WebKit/win: * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::supportsFullscreenForNode): * WebView.cpp: (WebView::enterFullscreenForNode): Source/WebKit2: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::containsAnyFormControls): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
Rubber-stamped by Antti Koivisto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cfleizach@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121109 Reviewed by Sam Weinig. Remove the Mac platform overrides of accessibilityTitle, Description, HelpText. The Base implementation has these and we can share them between iOS and Mac * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (-[WebAccessibilityObjectWrapperBase accessibilityTitle]): (-[WebAccessibilityObjectWrapperBase accessibilityDescription]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
<https://webkit.org/b/121143> Reviewed by Antti Koivisto. Nuke a 3 year old FIXME about renaming this class. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155504 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cfleizach@apple.com authored
AX: AXValue/AXMenuItemMarkChar not defined for menuitemradio (should be false (0) with aria-checked=mixed | undefined) https://bugs.webkit.org/show_bug.cgi?id=120372 Unreviewed. Layout test fix for MacOS WK2. * platform/mac/accessibility/menu-item-values.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ossy@webkit.org authored
counter of run-javascriptcore-tests build step on build.webkit.org. * BuildSlaveSupport/build.webkit.org-config/master.cfg: (RunJavaScriptCoreTests.commandComplete): * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Sep, 2013 23 commits
-
-
fpizlo@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121132 Reviewed by Mark Hahnenberg. This still has no effect on codegen since Int48 still looks like a Double right now. * bytecode/ExitKind.cpp: (JSC::exitKindToString): * bytecode/ExitKind.h: * bytecode/SpeculatedType.cpp: (JSC::speculationFromValue): * bytecode/SpeculatedType.h: (JSC::isMachineIntSpeculation): (JSC::isMachineIntSpeculationExpectingDefined): (JSC::isMachineIntSpeculationForArithmetic): * dfg/DFGGraph.cpp: (JSC::DFG::Graph::dump): * dfg/DFGGraph.h: (JSC::DFG::Graph::addShouldSpeculateMachineInt): (JSC::DFG::Graph::mulShouldSpeculateInt32): (JSC::DFG::Graph::mulShouldSpeculateMachineInt): (JSC::DFG::Graph::negateShouldSpeculateMachineInt): (JSC::DFG::Graph::hasExitSite): * dfg/DFGNode.h: (JSC::DFG::Node::shouldSpeculateMachineInt): (JSC::DFG::Node::shouldSpeculateMachineIntForArithmetic): (JSC::DFG::Node::shouldSpeculateMachineIntExpectingDefined): (JSC::DFG::Node::canSpeculateInt48): * dfg/DFGNodeFlags.h: (JSC::DFG::nodeCanSpeculateInt48): * dfg/DFGPredictionPropagationPhase.cpp: (JSC::DFG::PredictionPropagationPhase::propagate): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
fpizlo@apple.com authored
got a bit overlooked from the fast/js->js refactoring. * Scripts/run-javascriptcore-tests: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
fpizlo@apple.com authored
Be explicit about backwards propagation properties that care about escaping to bytecode, as opposed to just escaping within DFG code. Rubber stamped by Mark Hahnenberg. We need to care about escaping to bytecode if we're doing a lossy optimization, i.e. the optimization means we produce less information and so we can't rescue ourselves during OSR exit. We only need to care about escaping within the DFG code (and can ignore what might happen in bytecode) if we're doing an optimization that is lossless, i.e. we can always still reconstruct the values that bytecode wants. Example #1: Large int32 + int32 which overflows. We want to optimize away the overflow check and just do a 32-bit add. This is lossy; the result should have one extra bit but we simply throw that bit away by doing a check-less 32-bit add. Hence we need to know that even the bytecode wouldn't have cared about that bit. This is true in cases like (a + b) | 0. Example #2: Larbe int32 + int32 which overflows. We want to optimize away the overflow check by doing a 64-bit add. This is lossless. We can always convert the resulting 64-bit int back to a double if that's what bytecode wants. Hence we only need to know that the DFG code won't want to do something to this value that would make 64-bit ints either unprofitable or unsound. The backwards propagator's notions of flags (NodeUsedAsValue, etc) are for lossy optimizations and so should be named in a way that reflects this. This patch calls then NodeBytecodeUsesAsValue, etc. * dfg/DFGAbstractInterpreterInlines.h: (JSC::DFG::::executeEffects): * dfg/DFGArrayMode.cpp: (JSC::DFG::ArrayMode::refine): * dfg/DFGBackwardsPropagationPhase.cpp: (JSC::DFG::BackwardsPropagationPhase::mergeDefaultFlags): (JSC::DFG::BackwardsPropagationPhase::propagate): * dfg/DFGFixupPhase.cpp: (JSC::DFG::FixupPhase::fixupNode): * dfg/DFGGraph.h: (JSC::DFG::Graph::addImmediateShouldSpeculateInt32): * dfg/DFGNode.h: (JSC::DFG::Node::arithNodeFlags): * dfg/DFGNodeFlags.cpp: (JSC::DFG::dumpNodeFlags): * dfg/DFGNodeFlags.h: (JSC::DFG::bytecodeUsesAsNumber): (JSC::DFG::bytecodeCanTruncateInteger): (JSC::DFG::bytecodeCanIgnoreNegativeZero): (JSC::DFG::nodeMayNegZero): (JSC::DFG::nodeCanSpeculateInt32): * dfg/DFGPredictionPropagationPhase.cpp: (JSC::DFG::PredictionPropagationPhase::propagate): * dfg/DFGSpeculativeJIT.cpp: (JSC::DFG::SpeculativeJIT::compileDoubleAsInt32): (JSC::DFG::SpeculativeJIT::compileAdd): (JSC::DFG::SpeculativeJIT::compileArithSub): (JSC::DFG::SpeculativeJIT::compileArithNegate): (JSC::DFG::SpeculativeJIT::compileArithMul): (JSC::DFG::SpeculativeJIT::compileArithDiv): (JSC::DFG::SpeculativeJIT::compileArithMod): * dfg/DFGVariableAccessData.h: (JSC::DFG::VariableAccessData::shouldUseDoubleFormatAccordingToVote): * ftl/FTLLowerDFGToLLVM.cpp: (JSC::FTL::LowerDFGToLLVM::compileAdd): (JSC::FTL::LowerDFGToLLVM::compileArithSub): (JSC::FTL::LowerDFGToLLVM::compileArithMul): (JSC::FTL::LowerDFGToLLVM::compileArithDiv): (JSC::FTL::LowerDFGToLLVM::compileArithMod): (JSC::FTL::LowerDFGToLLVM::compileArithNegate): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
dbates@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=121111 Reviewed by Andy Estes and Sam Weinig. Source/WebCore: Tests: platform/iphone-simulator/text-autosizing/anonymous-block.html platform/iphone-simulator/text-autosizing/contenteditable.html platform/iphone-simulator/text-autosizing/first-letter.html platform/iphone-simulator/text-autosizing/font-family-case-insensitive.html platform/iphone-simulator/text-autosizing/lists.html platform/iphone-simulator/text-autosizing/overflow.html platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height.html platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height.html platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height.html * WebCore.exp.in: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): (WebCore::CSSParser::parseValue): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: Add property -webkit-text-size-adjust. * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue): Added. (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyInitialValue): Added. (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyInheritValue): Added. (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::createHandler): Added. (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/StyleResolver.cpp: (WebCore::StyleResolver::updateFont): (WebCore::StyleResolver::applyProperties): Add COMPILE_ASSERT to ensure that all properties that affect font size, including -webkit-text-size-adjust, are resolved before properties that depend on them; see <rdar://problem/13522835>. (WebCore::StyleResolver::applyProperty): (WebCore::StyleResolver::checkForTextSizeAdjust): Added. * css/StyleResolver.h: * dom/Document.cpp: (WebCore::TextAutoSizingTraits::constructDeletedValue): Added. (WebCore::TextAutoSizingTraits::isDeletedValue): Added. (WebCore::Document::detach): (WebCore::Document::addAutoSizingNode): Added. (WebCore::Document::validateAutoSizingNodes): Added. (WebCore::Document::resetAutoSizingNodes): Added. * dom/Document.h: * editing/EditingStyle.cpp: * page/Frame.h: Add declarations for setTextAutosizingWidth(), textAutosizingWidth(). * page/FrameView.cpp: (WebCore::FrameView::layout): * page/Settings.in: Generate setter and getter for setting minimumZoomFontSize. * platform/graphics/Font.h: (WebCore::Font::equalForTextAutoSizing): Added. * platform/graphics/FontDescription.cpp: (WebCore::FontDescription::familiesEqualForTextAutoSizing): Added. * platform/graphics/FontDescription.h: (WebCore::FontDescription::equalForTextAutoSizing): Added. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::RenderBlock): (WebCore::isVisibleRenderText): Added. (WebCore::resizeTextPermitted): Added. (WebCore::RenderBlock::immediateLineCount): Added. (WebCore::isNonBlocksOrNonFixedHeightListItems): Added. (WebCore::oneLineTextMultiplier): Added. (WebCore::textMultiplier): Added. (WebCore::RenderBlock::adjustComputedFontSizes): Added. * rendering/RenderBlock.h: (WebCore::RenderBlock::resetComputedFontSize): Added. * rendering/RenderObject.cpp: (WebCore::RenderObject::traverseNext): Added. (WebCore::includeNonFixedHeight): Added. (WebCore::RenderObject::adjustComputedFontSizesOnBlocks): Added. (WebCore::RenderObject::resetTextAutosizing): Added. * rendering/RenderObject.h: * rendering/RenderText.cpp: (WebCore::RenderText::RenderText): * rendering/RenderText.h: (WebCore::RenderText::candidateComputedTextSize): Added. (WebCore::RenderText::setCandidateComputedTextSize): Added. * rendering/style/RenderStyle.cpp: (WebCore::computeFontHash): (WebCore::RenderStyle::hashForTextAutosizing): Added. (WebCore::RenderStyle::equalForTextAutosizing): Added. (WebCore::RenderStyle::changeRequiresLayout): (WebCore::RenderStyle::specifiedLineHeight): Added; iOS-specific variant. We should reconcile this getter with the getter of the same name that is compiled when building with IOS_TEXT_AUTOSIZING disabled. (WebCore::RenderStyle::setSpecifiedLineHeight): Added. * rendering/style/RenderStyle.h: (WebCore::RenderStyle::initialSpecifiedLineHeight): Added. (WebCore::RenderStyle::initialTextSizeAdjust): Added. (WebCore::RenderStyle::setTextSizeAdjust): Added. (WebCore::RenderStyle::textSizeAdjust): Added. * rendering/style/StyleInheritedData.cpp: (WebCore::StyleInheritedData::StyleInheritedData): (WebCore::StyleInheritedData::operator==): * rendering/style/StyleInheritedData.h: * rendering/style/StyleRareInheritedData.cpp: (WebCore::StyleRareInheritedData::StyleRareInheritedData): (WebCore::StyleRareInheritedData::operator==): * rendering/style/StyleRareInheritedData.h: * rendering/style/TextSizeAdjustment.h: Added. (TextSizeAdjustment::TextSizeAdjustment): (TextSizeAdjustment::percentage): (TextSizeAdjustment::multiplier): (TextSizeAdjustment::isAuto): (TextSizeAdjustment::isNone): (TextSizeAdjustment::isPercentage): (TextSizeAdjustment::operator == ): (TextSizeAdjustment::operator != ): Source/WebKit/mac: * WebView/WebFrame.mm: (-[WebFrame resetTextAutosizingBeforeLayout]): Added. (-[WebFrame _setVisibleSize:]): Added. (-[WebFrame _setTextAutosizingWidth:]): Added. * WebView/WebFramePrivate.h: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences _setMinimumZoomFontSize:]): Added. (-[WebPreferences _minimumZoomFontSize]): Added. Source/WTF: Define iOS text autosizing to be enabled on iOS unless otherwise defined. * wtf/FeatureDefines.h: Tools: Implement infrastructure to test the iOS text autosizing code. * DumpRenderTree/TestRunner.cpp: (setTextAutosizingEnabledCallback): Added. (TestRunner::staticFunctions): * DumpRenderTree/TestRunner.h: * DumpRenderTree/mac/DumpRenderTree.mm: (resetDefaultsToConsistentValues): * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setTextAutosizingEnabled): Added. LayoutTests: Add tests to ensure we don't regress iOS text autosizing. * platform/iphone-simulator/text-autosizing/anonymous-block-expected.txt: Added. * platform/iphone-simulator/text-autosizing/anonymous-block.html: Added. * platform/iphone-simulator/text-autosizing/contenteditable-expected.txt: Added. * platform/iphone-simulator/text-autosizing/contenteditable.html: Added. * platform/iphone-simulator/text-autosizing/first-letter-expected.txt: Added. * platform/iphone-simulator/text-autosizing/first-letter.html: Added. * platform/iphone-simulator/text-autosizing/font-family-case-insensitive-expected.txt: Added. * platform/iphone-simulator/text-autosizing/font-family-case-insensitive.html: Added. * platform/iphone-simulator/text-autosizing/lists-expected.txt: Added. * platform/iphone-simulator/text-autosizing/lists.html: Added. * platform/iphone-simulator/text-autosizing/overflow-expected.txt: Added. * platform/iphone-simulator/text-autosizing/overflow.html: Added. * platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height-expected.txt: Added. * platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height.html: Added. * platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height-expected.txt: Added. * platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height.html: Added. * platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height-expected.txt: Added. * platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=120612#add_comment Patch by Chris Curtis <chris_curtis@apple.com> on 2013-09-10 Reviewed by Geoffrey Garen. The codeBlock was assumed to exist when appendSourceToMessage was set. This was an invalid assumption. I added a check to ensure that there is a valid codeBlock before accessing it. * API/tests/testapi.c: (valueToObjectExceptionCallAsFunction): (valueToObjectExceptionTest): (main): * runtime/VM.cpp: (JSC::VM::throwException): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mark.lam@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121136. Reviewed by Darin Adler. * interpreter/Interpreter.cpp: (JSC::UnwindFunctor::operator()): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bfulgham@apple.com authored
* platform/win/TestExpectations: Rearrange some test declarations to match Mac for easier comparison. Disable some unrelated tests (e.g., Ogg Vorbis tests). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cfleizach@apple.com authored
AX: AXValue/AXMenuItemMarkChar not defined for menuitemradio (should be false (0) with aria-checked=mixed | undefined) https://bugs.webkit.org/show_bug.cgi?id=120372 Reviewed by Mario Sanchez Prada. Source/WebCore: Add new roles to make the distinction between menu item, menu item radio and menu item checkbox. Expose AXValue for menu items, so that they can convey the, on/off/mixed state of aria-checked. Test: platform/mac/accessibility/menu-item-values.html * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::isMenuRelated): (WebCore::AccessibilityNodeObject::isMenuItem): (WebCore::AccessibilityNodeObject::isChecked): (WebCore::AccessibilityNodeObject::actionElement): (WebCore::AccessibilityNodeObject::visibleText): (WebCore::AccessibilityNodeObject::title): * accessibility/AccessibilityObject.cpp: (WebCore::createARIARoleMap): (WebCore::AccessibilityObject::checkboxOrRadioValue): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored): * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper accessibilityCanFuzzyHitTest]): (-[WebAccessibilityObjectWrapper accessibilityTraits]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]): (createAccessibilityRoleMap): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): LayoutTests: * platform/mac/accessibility/menu-item-values-expected.txt: Added. * platform/mac/accessibility/menu-item-values.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121077 Reviewed by Andreas Kling. Source/WebCore: * platform/PODArena.h: (WebCore::PODArena::minAlignment): * platform/graphics/cpu/arm/filters/FELightingNEON.h: (WebCore::FELighting::platformApplyNeon): Source/WTF: * GNUmakefile.list.am: * WTF.pro: * WTF.vcxproj/WTF.vcxproj: * WTF.vcxproj/WTF.vcxproj.filters: * WTF.xcodeproj/project.pbxproj: * wtf/Alignment.h: Removed. * wtf/CMakeLists.txt: * wtf/text/ASCIIFastPath.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
zoltan@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=121117 Reviewed by Andreas Kling. No new tests, no behavior change. * Target.pri: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mhahnenberg@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121128 Reviewed by Geoffrey Garen. This will increase test coverage of the copying phase, which might not always get triggered normally with our default parameters for required Heap/CopiedBlock utilization. * Scripts/run-jsc-stress-tests: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bdakin@apple.com authored
* blog-files/regions/unstyled-article.png: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mhahnenberg@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121118 Reviewed by Geoffrey Garen. * heap/CopiedBlock.h: Added some debug-only consistency checking logic. We now make sure that m_liveBytes is consistent with another field, m_liveObjects. m_liveObjects is the number of "objects" that currently reside in the CopiedBlock. If we have zero live bytes then we should have zero live objects. The converse and the inverse should also be true. (JSC::CopiedBlock::CopiedBlock): (JSC::CopiedBlock::didSurviveGC): (JSC::CopiedBlock::didEvacuateBytes): (JSC::CopiedBlock::canBeRecycled): (JSC::CopiedBlock::shouldEvacuate): (JSC::CopiedBlock::liveBytes): (JSC::CopiedBlock::checkConsistency): * heap/CopiedBlockInlines.h: (JSC::CopiedBlock::reportLiveBytes): * heap/CopyVisitorInlines.h: (JSC::CopyVisitor::didCopy): * runtime/MapData.cpp: (JSC::MapData::replaceAndPackBackingStore): Renamed parameter to be consistent with its meaning. (JSC::MapData::replaceBackingStore): Ditto. Also removed an unnecessary local variable. (JSC::MapData::visitChildren): Before we passed the size of the MapData to copyLater(), which was wrong. Now we pass capacity * sizeof(Entry). (JSC::MapData::copyBackingStore): Before when we reassigned the newly copied backing store, we set the capacity (in elements) to the size (in bytes) of the backing store. This made us think we're way bigger than we actually are. Now we just pass the old capacity in. * runtime/MapData.h: (JSC::MapData::capacityInBytes): Helper function to calculate the size of the backing store. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=121126 Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-09-10 Reviewed by Antonio Gomes. No new tests, build fix. * CMakeLists.txt: MediaStreamComponent.cpp and MediaStreamDescriptor.cpp were added with an incorrect path. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
<https://webkit.org/b/121078> Reviewed by Anders Carlsson. The AnimationController is owned by the Frame so make the back-pointer a reference. This knocks off a couple of null checks. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121125 Reviewed by Andreas Kling. Source/WebCore: * platform/PODArena.h: Source/WTF: * wtf/Alignment.h: * wtf/Vector.h: (WTF::VectorBuffer::swap): (WTF::VectorBuffer::inlineBuffer): * wtf/text/ASCIIFastPath.h: (WTF::isAlignedTo): (WTF::isAlignedToMachineWord): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bfulgham@apple.com authored
* GNUmakefile.list.am: Remove reference to deleted OwnPtrWin.cpp file. * WTF.pro: Ditto. * wtf/CMakeLists.txt: Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
fpizlo@apple.com authored
Rubber stamped by Mark Hahnenberg. * dfg/DFGAbstractInterpreterInlines.h: (JSC::DFG::::executeEffects): * dfg/DFGFixupPhase.cpp: (JSC::DFG::FixupPhase::fixupNode): (JSC::DFG::FixupPhase::fixupToPrimitive): (JSC::DFG::FixupPhase::fixIntEdge): (JSC::DFG::FixupPhase::truncateConstantsIfNecessary): (JSC::DFG::FixupPhase::attemptToMakeIntegerAdd): * dfg/DFGGraph.h: (JSC::DFG::Graph::addSpeculationMode): (JSC::DFG::Graph::valueAddSpeculationMode): (JSC::DFG::Graph::arithAddSpeculationMode): (JSC::DFG::Graph::addShouldSpeculateInt32): (JSC::DFG::Graph::mulShouldSpeculateInt32): (JSC::DFG::Graph::negateShouldSpeculateInt32): (JSC::DFG::Graph::addImmediateShouldSpeculateInt32): (JSC::DFG::Graph::mulImmediateShouldSpeculateInt32): * dfg/DFGNode.h: (JSC::DFG::Node::shouldSpeculateInt32): (JSC::DFG::Node::shouldSpeculateInt32ForArithmetic): (JSC::DFG::Node::shouldSpeculateInt32ExpectingDefined): (JSC::DFG::Node::canSpeculateInt32): * dfg/DFGNodeFlags.h: (JSC::DFG::nodeCanSpeculateInt32): * dfg/DFGPredictionPropagationPhase.cpp: (JSC::DFG::PredictionPropagationPhase::propagate): (JSC::DFG::PredictionPropagationPhase::doDoubleVoting): * dfg/DFGSpeculativeJIT.cpp: (JSC::DFG::SpeculativeJIT::arrayify): (JSC::DFG::GPRTemporary::GPRTemporary): (JSC::DFG::SpeculativeJIT::compilePeepHoleIntegerBranch): (JSC::DFG::SpeculativeJIT::compileValueToInt32): (JSC::DFG::SpeculativeJIT::compileUInt32ToNumber): (JSC::DFG::SpeculativeJIT::compileInt32ToDouble): (JSC::DFG::SpeculativeJIT::compileGetByValOnIntTypedArray): (JSC::DFG::SpeculativeJIT::compilePutByValForIntTypedArray): (JSC::DFG::SpeculativeJIT::compileAdd): (JSC::DFG::SpeculativeJIT::compileArithSub): (JSC::DFG::SpeculativeJIT::compileArithNegate): (JSC::DFG::SpeculativeJIT::compileArithIMul): (JSC::DFG::SpeculativeJIT::compileArithMul): (JSC::DFG::SpeculativeJIT::compileArithDiv): (JSC::DFG::SpeculativeJIT::compileArithMod): (JSC::DFG::SpeculativeJIT::compileNewTypedArray): (JSC::DFG::SpeculativeJIT::speculateInt32): (JSC::DFG::SpeculativeJIT::emitSwitchImm): * dfg/DFGSpeculativeJIT.h: (JSC::DFG::SpeculateInt32Operand::SpeculateInt32Operand): (JSC::DFG::SpeculateInt32Operand::~SpeculateInt32Operand): * dfg/DFGSpeculativeJIT32_64.cpp: (JSC::DFG::SpeculativeJIT::compileIntegerCompare): (JSC::DFG::SpeculativeJIT::compileLogicalNot): (JSC::DFG::SpeculativeJIT::emitBranch): (JSC::DFG::SpeculativeJIT::compile): * dfg/DFGSpeculativeJIT64.cpp: (JSC::DFG::SpeculativeJIT::compileIntegerCompare): (JSC::DFG::SpeculativeJIT::compileLogicalNot): (JSC::DFG::SpeculativeJIT::emitBranch): (JSC::DFG::SpeculativeJIT::compile): * ftl/FTLLowerDFGToLLVM.cpp: (JSC::FTL::LowerDFGToLLVM::compileUInt32ToNumber): (JSC::FTL::LowerDFGToLLVM::compileGetByVal): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=121114 Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-09-10 Reviewed by Christophe Dumez. Use a tarball for libseccomp instead of git to avoid network issues on the buildbots while checking out the git repo. Using tarballs has the advantage of them being cached if the checksum matches, in which case there will be no need to download them again. * efl/jhbuild.modules: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
fpizlo@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121116 Reviewed by Oliver Hunt. SpecInt48 will mean that we have something that would be a double if it was a JSValue, but it's profitable to represent it as something other than a double. SpecInt48AsDouble means that it has a value that could have been represented like SpecInt48, but we're making a heuristic decision not to do it. * bytecode/SpeculatedType.h: (JSC::isInt48Speculation): * dfg/DFGAbstractInterpreterInlines.h: (JSC::DFG::::executeEffects): (JSC::DFG::::clobberCapturedVars): * dfg/DFGAbstractValue.cpp: (JSC::DFG::AbstractValue::filter): * dfg/DFGAbstractValue.h: (JSC::DFG::AbstractValue::makeHeapTop): (JSC::DFG::AbstractValue::makeBytecodeTop): (JSC::DFG::AbstractValue::isHeapTop): (JSC::DFG::AbstractValue::heapTop): (JSC::DFG::AbstractValue::validateType): (JSC::DFG::AbstractValue::validate): (JSC::DFG::AbstractValue::makeTop): * dfg/DFGInPlaceAbstractState.cpp: (JSC::DFG::InPlaceAbstractState::initialize): * dfg/DFGJITCompiler.h: (JSC::DFG::JITCompiler::noticeOSREntry): * dfg/DFGUseKind.h: (JSC::DFG::typeFilterFor): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mark.lam@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120899. Rubber stamped by Filip Pizlo. * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: (test_layout_failure_new_output): (test_layout_crash_new_output): (test_mozilla_and_layout_failure_new_output): * Scripts/run-fast-jsc: Removed. * Scripts/run-javascriptcore-tests: * Scripts/run-layout-jsc: Copied from Tools/Scripts/run-fast-jsc. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric.carlson@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120879 Reviewed by Jer Noble. * Modules/mediastream/MediaStream.h: Inherit from ScriptWrappable. * Modules/mediastream/MediaStreamTrack.h: Ditto. * Modules/mediastream/RTCDTMFSender.h: Ditto. * Modules/mediastream/RTCDataChannel.h: Ditto. * Modules/mediastream/RTCIceCandidate.h: Ditto. * Modules/mediastream/RTCPeerConnection.h: Ditto. * Modules/mediastream/RTCSessionDescription.h: Ditto. * Modules/mediastream/RTCStatsReport.h: Ditto. * Modules/mediastream/RTCStatsResponse.h: Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric.carlson@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120878 Reviewed by Jer Noble. No new tests, no functional change. * CMakeLists.txt: Add MediaStreamComponent.cpp and MediaStreamDescriptor.cpp. * GNUmakefile.list.am: Ditto. * Modules/mediastream/LocalMediaStream.cpp: (WebCore::LocalMediaStream::create): MediaStreamDescriptor::create() doesn't take a UUID. * Modules/mediastream/MediaStream.cpp: (WebCore::createFromSourceVectors): Ditto. * WebCore.xcodeproj/project.pbxproj: Add MediaStreamComponent.cpp and MediaStreamDescriptor.cpp. * platform/mediastream/MediaStreamComponent.cpp: Added. * platform/mediastream/MediaStreamComponent.h: * platform/mediastream/MediaStreamDescriptor.cpp: Added. * platform/mediastream/MediaStreamDescriptor.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-