- 22 Jan, 2014 2 commits
-
-
mmaxfield@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=126987 Reviewed by Simon Fraser. When "inherit" is specified and there is no parent, Length values have an "Auto" type Source/WebCore: Test: fast/css3-text/css3-word-spacing-percentage/word-spacing-crash.html * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::setWordSpacing): LayoutTests: * fast/css3-text/css3-word-spacing-percentage/word-spacing-crash-expected.txt: Added. * fast/css3-text/css3-word-spacing-percentage/word-spacing-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162588 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mmaxfield@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=127333 Source/JavaScriptCore: This is required for unprefixing the text-decoration-* CSS properties. Reviewed by Simon Fraser. * Configurations/FeatureDefines.xcconfig: Source/WebCore: Reviewed by Simon Fraser. This is required for unprefixing the text-decoration-* CSS properties. No new tests are necessary becase the flag was already on by default. * Configurations/FeatureDefines.xcconfig: * css/CSSComputedStyleDeclaration.cpp: (WebCore::renderTextDecorationSkipFlagsToCSSValue): (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isColorPropertyID): (WebCore::CSSParser::parseValue): (WebCore::CSSParser::addTextDecorationProperty): (WebCore::CSSParser::parseTextUnderlinePosition): * css/CSSParser.h: * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::operator TextUnderlinePosition): * css/CSSPropertyNames.in: * css/CSSValueKeywords.in: * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/StylePropertyShorthand.cpp: (WebCore::webkitTextDecorationShorthand): (WebCore::shorthandForProperty): (WebCore::matchingShorthandsForLonghand): * css/StylePropertyShorthand.h: * css/StyleResolver.cpp: (WebCore::shouldApplyPropertyInParseOrder): (WebCore::isValidVisitedLinkProperty): (WebCore::StyleResolver::applyProperty): * platform/graphics/GraphicsContext.h: * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::setPlatformStrokeStyle): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::platformInit): * platform/graphics/wince/GraphicsContextWinCE.cpp: (WebCore::createPen): * rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::computeMaxLogicalTop): * rendering/InlineFlowBox.h: * rendering/InlineTextBox.cpp: (WebCore::textDecorationStyleToStrokeStyle): (WebCore::boundingBoxForAllActiveDecorations): (WebCore::InlineTextBox::paintDecoration): * rendering/RenderObject.cpp: (WebCore::decorationColor): * rendering/RootInlineBox.cpp: (WebCore::RootInlineBox::maxLogicalTop): * rendering/RootInlineBox.h: * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresRepaintIfTextOrBorderOrOutline): (WebCore::RenderStyle::colorIncludingFallback): (WebCore::RenderStyle::visitedDependentColor): * rendering/style/RenderStyle.h: * rendering/style/RenderStyleConstants.h: * rendering/style/StyleRareInheritedData.cpp: (WebCore::StyleRareInheritedData::StyleRareInheritedData): (WebCore::StyleRareInheritedData::operator==): * rendering/style/StyleRareInheritedData.h: * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: Source/WebKit/mac: Reviewed by Simon Fraser. This is required for unprefixing the text-decoration-* CSS properties. * Configurations/FeatureDefines.xcconfig: Source/WebKit2: Reviewed by Simon Fraser. This is required for unprefixing the text-decoration-* CSS properties. * Configurations/FeatureDefines.xcconfig: Source/WTF: Reviewed by Simon Fraser. This is required for unprefixing the text-decoration-* CSS properties. * wtf/Platform.h: Tools: This is required for unprefixing the text-decoration-* CSS properties. Reviewed by Simon Fraser. * Configurations/FeatureDefines.xcconfig: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 Jan, 2014 1 commit
-
-
zoltan@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=99584 Reviewed by David Hyatt. Source/WebCore: Add support for the text-align-last CSS3 property, according to the latest specification: http://dev.w3.org/csswg/css-text-3/#text-align-last-property Tests: fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify.html fast/css3-text/css3-text-align-last/text-align-last-with-text-align-non-justify.html * rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlockFlow::textAlignmentForLine): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): LayoutTests: * fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify-expected.html: Added. * fast/css3-text/css3-text-align-last/text-align-last-with-text-align-justify.html: Added. * fast/css3-text/css3-text-align-last/text-align-last-with-text-align-non-justify-expected.html: Added. * fast/css3-text/css3-text-align-last/text-align-last-with-text-align-non-justify.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Jan, 2014 1 commit
-
-
mmaxfield@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=126674 Reviewed by Simon Fraser. Source/WebCore: One change between CSS2.1 and CSS3 is that the word-spacing CSS property can take percentages (of the width of the space character) in CSS3. In order to implement this, the datatype must be changed from a float to a Length, which can hold percentage values. Then, during layout, we can query the width of the space character and update the Font's word-spacing value appropriately. However, the RenderStyle still holds on to the Length (as a rare inherited value). Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead of style's Length value. * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are parsed the same way. * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given CSSValue and set the style's word spacing with it. (WebCore::ApplyPropertyWordSpacing::createHandler): (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing. * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * rendering/RenderBlockLineLayout.cpp: (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead of style's Length value. * rendering/RenderText.cpp: (WebCore::RenderText::computePreferredLogicalWidths): Ditto. * rendering/SimpleLineLayout.cpp: (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout if either the percentage or the length is nonzero. * rendering/line/BreakingContextInlineHeaders.h: (WebCore::BreakingContext::handleText): Use Font's computed value instead of style's Length value. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::wordSpacing): (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute percentage values, but hold on to the original Length. * rendering/style/RenderStyle.h: * rendering/style/StyleRareInheritedData.cpp: * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length LayoutTests: See per-file description * fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font-expected.html: Added. * fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html: Added. Make sure that if Javascript changes the font after initial layout, that the word-spacing value gets appropriately updated. * fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-expected.html: Added. * fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse-expected.txt: Added. * fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html: Added. Make sure that the CSSOM yields the correct percentage values when queried. * fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html: Added. Try some specific values of percentages (-100%, 0%, and 100%). * css1/text_properties/word_spacing.html: Updated to not disregard percentages * css2.1/20110323/c541-word-sp-001-expected.html: * css2.1/20110323/c541-word-sp-001.htm: Ditto * platform/mac/css1/text_properties/word_spacing-expected.png: * platform/mac/css1/text_properties/word_spacing-expected.txt: Ditto git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Jan, 2014 1 commit
-
-
mmaxfield@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=20606 Reviewed by Simon Fraser. Source/WebCore: This turns on fractional letter-spacing and word-spacing CSS values. It is taken mostly from Blink r153727 and iOS. Updating the relevant types is all that is necessary Existing tests have been updated. * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * platform/graphics/Font.cpp: (WebCore::Font::Font): (WebCore::Font::width): * platform/graphics/Font.h: (WebCore::Font::wordSpacing): (WebCore::Font::letterSpacing): (WebCore::Font::setWordSpacing): (WebCore::Font::setLetterSpacing): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::wordSpacing): (WebCore::RenderStyle::letterSpacing): (WebCore::RenderStyle::setWordSpacing): (WebCore::RenderStyle::setLetterSpacing): * rendering/style/RenderStyle.h: LayoutTests: Manually verified that these tests are correct after enabling fractional letter-spacing and word spacing * platform/mac/css1/text_properties/letter_spacing-expected.png: * platform/mac/css1/text_properties/letter_spacing-expected.txt: * platform/mac/css1/text_properties/word_spacing-expected.png: * platform/mac/css1/text_properties/word_spacing-expected.txt: * platform/mac/fast/text/basic/013-expected.png: * platform/mac/fast/text/basic/013-expected.txt: * platform/mac/fast/text/text-letter-spacing-expected.txt: * platform/mac/svg/W3C-SVG-1.1/text-spacing-01-b-expected.png: * platform/mac/svg/W3C-SVG-1.1/text-spacing-01-b-expected.txt: * platform/mac/svg/batik/text/textLayout-expected.txt: * platform/mac/svg/custom/text-letter-spacing-expected.png: * platform/mac/svg/custom/text-letter-spacing-expected.txt: * platform/mac/svg/text/text-spacing-01-b-expected.png: * platform/mac/svg/text/text-spacing-01-b-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 27 Nov, 2013 1 commit
-
-
betravis@adobe.com authored
https://bugs.webkit.org/show_bug.cgi?id=124851 Reviewed by Alexandru Chiculita. Source/WebCore: The current shape-inside specification has the property default to the 'auto' value, not 'outside-shape'. Updated tests are under fast/shapes. * rendering/style/RenderStyle.cpp: * rendering/style/RenderStyle.h: LayoutTests: Update tests to reflect a default shape-inside value of 'auto'. * fast/shapes/css-shapes-disabled-expected.txt: * fast/shapes/css-shapes-disabled.html: * fast/shapes/parsing/parsing-shape-inside-expected.txt: * fast/shapes/parsing/parsing-shape-inside.html: * fast/shapes/parsing/parsing-shape-lengths-expected.txt: * fast/shapes/parsing/parsing-shape-lengths.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Nov, 2013 1 commit
-
-
cfleizach@apple.com authored
AX: Implement CSS -webkit-alt property (text alternative for generated content pseudo-elements ::before and ::after) https://bugs.webkit.org/show_bug.cgi?id=120188 Reviewed by Dean Jackson. Source/WebCore: Add a -webkit-alt CSS property that can be used to label Image content or Text content for accessibility clients. To accomplish this, it sets the string in the RenderStyle. Then when the ContentData creates an anonymous renderer, it sets that string on the TextFragment or RenderImage, which can be queried by accessibility code. Test: platform/mac/accessibility/webkit-alt-for-css-content.html * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::alternativeText): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::textUnderElement): (WebCore::objectInclusionFromAltText): (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored): * css/CSSComputedStyleDeclaration.cpp: (WebCore::altTextToCSSValue): (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseAlt): * css/CSSParser.h: * css/CSSPropertyNames.in: * css/StyleResolver.cpp: (WebCore::StyleResolver::applyProperty): * rendering/RenderImage.h: (WebCore::RenderImage::altText): (WebCore::RenderImage::setAltText): * rendering/RenderTextFragment.h: * rendering/style/ContentData.cpp: (WebCore::ImageContentData::createRenderer): (WebCore::TextContentData::createRenderer): * rendering/style/ContentData.h: (WebCore::ContentData::setAltText): (WebCore::ContentData::altText): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::setContent): (WebCore::RenderStyle::setContentAltText): (WebCore::RenderStyle::contentAltText): * rendering/style/RenderStyle.h: * rendering/style/StyleRareNonInheritedData.h: LayoutTests: * platform/mac/accessibility/webkit-alt-for-css-content-expected.txt: Added. * platform/mac/accessibility/webkit-alt-for-css-content.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Nov, 2013 1 commit
-
-
ossy@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=124199. Patch by Tibor Meszaros <mtibor@inf.u-szeged.hu> on 2013-11-13 Reviewed by Csaba Osztrogonác. * css/CSSCursorImageValue.cpp: (WebCore::CSSCursorImageValue::cachedOrPendingImage): * dom/Document.cpp: (WebCore::Document::scriptedAnimationControllerSetThrottled): * fileapi/ThreadableBlobRegistry.cpp: (WebCore::ThreadableBlobRegistry::registerBlobURL): * html/HTMLAnchorElement.cpp: (WebCore::shouldProhibitLinks): * html/parser/XSSAuditor.cpp: (WebCore::isSemicolonSeparatedAttribute): * inspector/InspectorConsoleInstrumentation.h: (WebCore::InspectorInstrumentation::addMessageToConsole): * loader/DocumentThreadableLoader.cpp: (WebCore::DocumentThreadableLoader::didReceiveData): (WebCore::DocumentThreadableLoader::didFail): (WebCore::DocumentThreadableLoader::preflightFailure): * loader/cache/CachedImage.cpp: (WebCore::CachedImage::imageSizeForRenderer): * page/animation/ImplicitAnimation.cpp: (WebCore::ImplicitAnimation::animate): * page/animation/KeyframeAnimation.cpp: (WebCore::KeyframeAnimation::animate): * platform/graphics/WidthIterator.cpp: (WebCore::applyFontTransforms): * rendering/RenderView.cpp: (WebCore::RenderView::setIsInWindow): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): (WebCore::RenderStyle::changeRequiresLayerRepaint): (WebCore::RenderStyle::changeRequiresRecompositeLayer): * testing/Internals.cpp: (WebCore::Internals::setHeaderHeight): (WebCore::Internals::setCaptionsStyleSheetOverride): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Nov, 2013 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=124125 Reviewed by Sam Weinig. As per the coding style guidelines. * loader/CrossOriginPreflightResultCache.cpp: (WebCore::CrossOriginPreflightResultCache::appendEntry): (WebCore::CrossOriginPreflightResultCache::canSkipPreflight): * loader/WorkerThreadableLoader.cpp: * loader/appcache/ApplicationCacheStorage.cpp: (WebCore::ApplicationCacheStorage::loadCache): * loader/appcache/ManifestParser.cpp: (WebCore::parseManifest): * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::deadCapacity): (WebCore::MemoryCache::lruListFor): * page/CaptionUserPreferencesMediaAF.cpp: * page/Chrome.cpp: * page/DOMTimer.cpp: (WebCore::DOMTimer::intervalClampedToMinimum): * page/FocusController.cpp: * page/Frame.cpp: (WebCore::Frame::resizePageRectsKeepingRatio): * page/PageGroupLoadDeferrer.cpp: * page/Settings.cpp: * page/animation/AnimationBase.cpp: (WebCore::solveStepsFunction): (WebCore::AnimationBase::fireAnimationEventsIfNeeded): (WebCore::AnimationBase::timeToNextService): (WebCore::AnimationBase::fractionalTime): (WebCore::AnimationBase::getTimeToNextEvent): * page/animation/KeyframeAnimation.cpp: (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty): * platform/DateComponents.cpp: * platform/ScrollAnimator.cpp: (WebCore::ScrollAnimator::handleWheelEvent): * platform/ScrollView.cpp: (WebCore::ScrollView::unscaledVisibleContentSize): (WebCore::ScrollView::setScrollOffset): (WebCore::ScrollView::updateScrollbars): (WebCore::ScrollView::scrollContents): * platform/Scrollbar.cpp: (WebCore::Scrollbar::moveThumb): * platform/ScrollbarThemeComposite.cpp: (WebCore::usedTotalSize): (WebCore::ScrollbarThemeComposite::thumbPosition): (WebCore::ScrollbarThemeComposite::thumbLength): * platform/SharedBuffer.cpp: (WebCore::SharedBuffer::append): (WebCore::SharedBuffer::copyBufferAndClear): (WebCore::SharedBuffer::getSomeData): * platform/ThreadTimers.cpp: (WebCore::ThreadTimers::updateSharedTimer): * platform/Timer.cpp: (WebCore::TimerHeapLessThanFunction::operator()): (WebCore::TimerBase::heapPop): (WebCore::TimerBase::nextUnalignedFireInterval): * platform/URL.cpp: (WebCore::findHostnamesInMailToURL): (WebCore::portAllowed): * platform/audio/AudioResampler.cpp: (WebCore::AudioResampler::setRate): * platform/audio/AudioResamplerKernel.cpp: (WebCore::AudioResamplerKernel::process): * platform/audio/Distance.cpp: (WebCore::DistanceEffect::gain): * platform/audio/DynamicsCompressorKernel.cpp: (WebCore::DynamicsCompressorKernel::process): * platform/audio/EqualPowerPanner.cpp: (WebCore::EqualPowerPanner::pan): * platform/audio/HRTFDatabase.cpp: (WebCore::HRTFDatabase::indexFromElevationAngle): * platform/audio/HRTFElevation.cpp: (WebCore::HRTFElevation::createForSubject): * platform/audio/HRTFKernel.cpp: (WebCore::HRTFKernel::HRTFKernel): (WebCore::HRTFKernel::createInterpolatedKernel): * platform/audio/HRTFPanner.cpp: (WebCore::HRTFPanner::calculateDesiredAzimuthIndexAndBlend): * platform/audio/Reverb.cpp: * platform/audio/SincResampler.cpp: (WebCore::SincResampler::process): * platform/cf/URLCF.cpp: * platform/graphics/Color.cpp: (WebCore::makeRGB): (WebCore::makeRGBA): (WebCore::colorFloatToRGBAByte): (WebCore::Color::light): (WebCore::Color::dark): * platform/graphics/CrossfadeGeneratedImage.cpp: * platform/graphics/FloatQuad.cpp: (WebCore::min4): (WebCore::max4): (WebCore::withinEpsilon): * platform/graphics/FloatSize.cpp: (WebCore::FloatSize::isZero): * platform/graphics/FontFastPath.cpp: (WebCore::Font::floatWidthForSimpleText): * platform/graphics/FontPlatformData.cpp: * platform/graphics/GraphicsContext.cpp: * platform/graphics/RoundedRect.cpp: (WebCore::RoundedRect::Radii::expand): * platform/graphics/ShadowBlur.cpp: (WebCore::calculateLobes): (WebCore::computeSliceSizesFromRadii): * platform/graphics/SimpleFontData.cpp: (WebCore::SimpleFontData::initCharWidths): * platform/graphics/WidthIterator.cpp: (WebCore::WidthIterator::WidthIterator): (WebCore::WidthIterator::advanceInternal): * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp: (WebCore::InbandTextTrackPrivateAVF::processCue): * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm: * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::platformDuration): (WebCore::MediaPlayerPrivateAVFoundationObjC::currentTime): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::setOpacity): (WebCore::GraphicsLayerCA::setNeedsDisplay): (WebCore::GraphicsLayerCA::setupAnimation): (WebCore::clampedContentsScaleForScale): * platform/graphics/ca/mac/TileController.mm: (WebCore::TileController::getTileIndexRangeForRect): (WebCore::TileController::computeTileCoverageRect): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::setPlatformShadow): (WebCore::computeLineBoundsAndAntialiasingModeForText): * platform/graphics/cg/ImageBufferCG.cpp: * platform/graphics/cg/ImageBufferDataCG.cpp: (WebCore::ImageBufferData::getData): * platform/graphics/cg/ImageSourceCG.cpp: * platform/graphics/filters/FEDropShadow.cpp: * platform/graphics/filters/FEGaussianBlur.cpp: (WebCore::boxBlur): (WebCore::FEGaussianBlur::platformApplyGeneric): (WebCore::FEGaussianBlur::calculateUnscaledKernelSize): (WebCore::FEGaussianBlur::calculateStdDeviation): * platform/graphics/gpu/Texture.cpp: (WebCore::Texture::updateSubRect): * platform/graphics/gpu/TilingData.cpp: (WebCore::computeNumTiles): (WebCore::TilingData::tileXIndexFromSrcCoord): (WebCore::TilingData::tileYIndexFromSrcCoord): * platform/graphics/mac/ComplexTextController.cpp: (WebCore::ComplexTextController::ComplexTextController): (WebCore::ComplexTextController::offsetForPosition): (WebCore::ComplexTextController::advance): (WebCore::ComplexTextController::adjustGlyphsAndAdvances): * platform/graphics/mac/FontComplexTextMac.cpp: (WebCore::Font::floatWidthForComplexText): * platform/graphics/mac/FontMac.mm: * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivateQTKit::duration): * platform/graphics/mac/SimpleFontDataMac.mm: * platform/graphics/transforms/Matrix3DTransformOperation.cpp: * platform/graphics/transforms/MatrixTransformOperation.cpp: * platform/graphics/transforms/PerspectiveTransformOperation.cpp: * platform/graphics/transforms/RotateTransformOperation.cpp: * platform/graphics/transforms/TransformOperations.cpp: (WebCore::TransformOperations::blendByMatchingOperations): * platform/graphics/transforms/TransformationMatrix.cpp: (WebCore::clampEdgeValue): * platform/mac/ScrollAnimatorMac.mm: (WebCore::ScrollAnimatorMac::adjustScrollPositionIfNecessary): * platform/mac/ScrollViewMac.mm: (WebCore::ScrollView::platformSetContentsSize): (WebCore::ScrollView::platformSetScrollPosition): * platform/mac/ScrollbarThemeMac.mm: * platform/mac/ThemeMac.mm: * platform/mac/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController incrementVolume]): (timeToString): * platform/network/HTTPHeaderMap.cpp: (WebCore::HTTPHeaderMap::copyData): * platform/network/ResourceRequestBase.cpp: * platform/network/ResourceResponseBase.cpp: (WebCore::ResourceResponseBase::parseCacheControlDirectives): * platform/network/cf/ResourceResponseCFNet.cpp: * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::initNSURLResponse): * platform/text/TextBreakIteratorICU.cpp: (WebCore::textClone): (WebCore::textLatin1MoveInPrimaryContext): (WebCore::textLatin1MoveInPriorContext): (WebCore::textInChunkOrOutOfRange): (WebCore::textOpenLatin1): (WebCore::textUTF16MoveInPrimaryContext): (WebCore::textUTF16MoveInPriorContext): (WebCore::textOpenUTF16): * platform/text/TextCodecUTF16.cpp: (WebCore::TextCodecUTF16::encode): * platform/text/TextCodecUTF8.cpp: (WebCore::TextCodecUTF8::encode): * platform/text/TextStream.cpp: * platform/text/mac/LocaleMac.mm: * platform/text/mac/TextCodecMac.cpp: (WebCore::TextCodecMac::decode): * rendering/AutoTableLayout.cpp: (WebCore::AutoTableLayout::recalcColumn): (WebCore::AutoTableLayout::computeIntrinsicLogicalWidths): (WebCore::AutoTableLayout::applyPreferredLogicalWidthQuirks): (WebCore::AutoTableLayout::calcEffectiveLogicalWidth): (WebCore::AutoTableLayout::layout): * rendering/FixedTableLayout.cpp: (WebCore::FixedTableLayout::applyPreferredLogicalWidthQuirks): * rendering/FloatingObjects.cpp: (WebCore::FindNextFloatLogicalBottomAdapter::collectIfNeeded): (WebCore::FloatingObjects::logicalRightOffsetForPositioningFloat): (WebCore::FloatingObjects::logicalRightOffset): * rendering/InlineBox.cpp: * rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::placeBoxRangeInInlineDirection): (WebCore::InlineFlowBox::adjustMaxAscentAndDescent): (WebCore::InlineFlowBox::placeBoxesInBlockDirection): (WebCore::InlineFlowBox::computeMaxLogicalTop): (WebCore::InlineFlowBox::addBoxShadowVisualOverflow): (WebCore::InlineFlowBox::addBorderOutsetVisualOverflow): (WebCore::InlineFlowBox::addTextBoxVisualOverflow): (WebCore::InlineFlowBox::nodeAtPoint): (WebCore::InlineFlowBox::constrainToLineTopAndBottomIfNeeded): (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): (WebCore::InlineFlowBox::computeUnderAnnotationAdjustment): (WebCore::InlineFlowBox::collectLeafBoxesInLogicalOrder): * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::isSelected): (WebCore::InlineTextBox::localSelectionRect): (WebCore::InlineTextBox::placeEllipsisBox): (WebCore::InlineTextBox::applyShadowToGraphicsContext): (WebCore::InlineTextBox::paint): (WebCore::InlineTextBox::selectionStartEnd): (WebCore::InlineTextBox::paintSelection): (WebCore::InlineTextBox::paintCompositionBackground): (WebCore::computeUnderlineOffset): (WebCore::InlineTextBox::paintDecoration): (WebCore::InlineTextBox::paintDocumentMarker): (WebCore::InlineTextBox::paintTextMatchMarker): (WebCore::InlineTextBox::computeRectForReplacementMarker): (WebCore::InlineTextBox::paintCompositionUnderline): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::computeOverflow): (WebCore::RenderBlock::computeStartPositionDeltaForChildAvoidingFloats): (WebCore::RenderBlock::paintChild): (WebCore::RenderBlock::blockSelectionGap): (WebCore::RenderBlock::logicalLeftSelectionGap): (WebCore::RenderBlock::logicalRightSelectionGap): (WebCore::RenderBlock::calcColumnWidth): (WebCore::RenderBlock::adjustRectForColumns): (WebCore::RenderBlock::computeIntrinsicLogicalWidths): (WebCore::RenderBlock::computePreferredLogicalWidths): (WebCore::RenderBlock::adjustIntrinsicLogicalWidthsForColumns): (WebCore::updatePreferredWidth): (WebCore::RenderBlock::computeInlinePreferredLogicalWidths): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::clearFloats): (WebCore::RenderBlockFlow::layoutBlock): (WebCore::RenderBlockFlow::layoutBlockChild): (WebCore::RenderBlockFlow::collapseMargins): (WebCore::RenderBlockFlow::clearFloatsIfNeeded): (WebCore::RenderBlockFlow::marginBeforeEstimateForChild): (WebCore::RenderBlockFlow::estimateLogicalTopPosition): (WebCore::RenderBlockFlow::setCollapsedBottomMargin): (WebCore::RenderBlockFlow::handleAfterSideOfBlock): (WebCore::calculateMinimumPageHeight): (WebCore::RenderBlockFlow::adjustLinePositionForPagination): (WebCore::RenderBlockFlow::removeFloatingObject): (WebCore::RenderBlockFlow::computeLogicalLocationForFloat): (WebCore::RenderBlockFlow::positionNewFloats): (WebCore::RenderBlockFlow::lowestFloatLogicalBottom): (WebCore::RenderBlockFlow::addOverhangingFloats): (WebCore::RenderBlockFlow::getClearDelta): (WebCore::RenderBlockFlow::adjustForBorderFit): (WebCore::RenderBlockFlow::fitBorderToLinesIfNeeded): (WebCore::RenderBlockFlow::updateLogicalHeight): (WebCore::RenderBlockFlow::positionForPointWithInlineChildren): (WebCore::RenderBlockFlow::addFocusRingRectsForInlineChildren): (WebCore::RenderBlockFlow::relayoutForPagination): * rendering/RenderBlockLineLayout.cpp: (WebCore::updateLogicalWidthForLeftAlignedBlock): (WebCore::updateLogicalWidthForRightAlignedBlock): (WebCore::updateLogicalWidthForCenterAlignedBlock): (WebCore::setLogicalWidthForTextRun): (WebCore::RenderBlockFlow::computeInlineDirectionPositionsForLine): (WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange): (WebCore::RenderBlockFlow::layoutLineBoxes): (WebCore::RenderBlockFlow::checkFloatsInCleanLine): (WebCore::RenderBlockFlow::checkPaginationAndFloatsAtEndLine): (WebCore::tryHyphenating): * rendering/RenderBox.cpp: (WebCore::RenderBox::scrollWidth): (WebCore::RenderBox::scrollHeight): (WebCore::RenderBox::constrainLogicalWidthInRegionByMinMax): (WebCore::RenderBox::constrainLogicalHeightByMinMax): (WebCore::RenderBox::constrainContentBoxLogicalHeightByMinMax): (WebCore::RenderBox::adjustBorderBoxLogicalWidthForBoxSizing): (WebCore::RenderBox::adjustBorderBoxLogicalHeightForBoxSizing): (WebCore::RenderBox::adjustContentBoxLogicalWidthForBoxSizing): (WebCore::RenderBox::adjustContentBoxLogicalHeightForBoxSizing): (WebCore::RenderBox::repaintLayerRectsForImage): (WebCore::RenderBox::shrinkLogicalWidthToAvoidFloats): (WebCore::RenderBox::containingBlockLogicalWidthForContentInRegion): (WebCore::RenderBox::containingBlockAvailableLineWidthInRegion): (WebCore::RenderBox::perpendicularContainingBlockLogicalHeight): (WebCore::RenderBox::computeLogicalWidthInRegion): (WebCore::RenderBox::computeIntrinsicLogicalWidthUsing): (WebCore::RenderBox::computeLogicalWidthInRegionUsing): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::computeLogicalHeight): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalWidthRespectingMinMaxWidth): (WebCore::RenderBox::computeReplacedLogicalHeightRespectingMinMaxHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::containingBlockLogicalWidthForPositioned): (WebCore::RenderBox::computePositionedLogicalWidthUsing): (WebCore::RenderBox::computePositionedLogicalHeightUsing): (WebCore::RenderBox::applyVisualEffectOverflow): (WebCore::RenderBox::addLayoutOverflow): * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::calculateFillTileSize): (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setNoRepeatX): (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setNoRepeatY): (WebCore::RenderBoxModelObject::BackgroundImageGeometry::useFixedAttachment): (WebCore::RenderBoxModelObject::paintNinePieceImage): (WebCore::RenderBoxModelObject::paintOneBorderSide): (WebCore::calculateAdjustedInnerBorder): (WebCore::RenderBoxModelObject::paintBoxShadow): (WebCore::RenderBoxModelObject::localCaretRectForEmptyElement): * rendering/RenderDeprecatedFlexibleBox.cpp: (WebCore::FlexBoxIterator::next): (WebCore::RenderDeprecatedFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::RenderDeprecatedFlexibleBox::computePreferredLogicalWidths): (WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox): (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox): (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp): (WebCore::RenderDeprecatedFlexibleBox::allowedChildFlex): * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::maxFilenameWidth): (WebCore::RenderFileUploadControl::computeIntrinsicLogicalWidths): (WebCore::RenderFileUploadControl::computePreferredLogicalWidths): * rendering/RenderImage.cpp: (WebCore::RenderImage::setImageSizeForAltText): * rendering/RenderInline.cpp: (WebCore::computeMargin): (WebCore::RenderInline::linesVisualOverflowBoundingBox): (WebCore::RenderInline::paintOutline): (WebCore::RenderInline::paintOutlineForLine): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::clampScrollOffset): (WebCore::RenderLayer::scrollRectToVisible): (WebCore::RenderLayer::visibleContentRect): (WebCore::RenderLayer::updateScrollbarsAfterLayout): (WebCore::RenderLayer::hitTestOverflowControls): (WebCore::RenderLayer::hitTestLayer): (WebCore::RenderLayer::calculateLayerBounds): * rendering/RenderLayerBacking.cpp: * rendering/RenderLayerModelObject.cpp: * rendering/RenderLineBoxList.cpp: (WebCore::RenderLineBoxList::rangeIntersectsRect): (WebCore::RenderLineBoxList::anyLineIntersectsRect): (WebCore::RenderLineBoxList::lineIntersectsDirtyRect): (WebCore::RenderLineBoxList::paint): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement): (WebCore::RenderListBox::layout): (WebCore::RenderListBox::computePreferredLogicalWidths): (WebCore::RenderListBox::size): (WebCore::RenderListBox::numVisibleItems): (WebCore::RenderListBox::panScroll): (WebCore::RenderListBox::scrollHeight): * rendering/RenderListItem.cpp: * rendering/RenderListMarker.cpp: * rendering/RenderMarquee.cpp: (WebCore::RenderMarquee::marqueeSpeed): (WebCore::RenderMarquee::computePosition): (WebCore::RenderMarquee::timerFired): * rendering/RenderMediaControls.cpp: * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateOptionsWidth): (WebCore::RenderMenuList::computeIntrinsicLogicalWidths): (WebCore::RenderMenuList::computePreferredLogicalWidths): * rendering/RenderMeter.cpp: * rendering/RenderMultiColumnBlock.cpp: * rendering/RenderMultiColumnSet.cpp: (WebCore::RenderMultiColumnSet::heightAdjustedForSetOffset): (WebCore::RenderMultiColumnSet::calculateBalancedHeight): (WebCore::RenderMultiColumnSet::updateLogicalWidth): * rendering/RenderNamedFlowFragment.cpp: * rendering/RenderObject.cpp: (WebCore::RenderObject::drawLineForBoxSide): (WebCore::RenderObject::repaintAfterLayoutIfNeeded): (WebCore::RenderObject::caretMaxOffset): * rendering/RenderProgress.cpp: * rendering/RenderRegion.cpp: (WebCore::RenderRegion::overflowRectForFlowThreadPortion): * rendering/RenderReplaced.cpp: (WebCore::RenderReplaced::shouldPaint): (WebCore::RenderReplaced::computeReplacedLogicalWidth): (WebCore::RenderReplaced::computePreferredLogicalWidths): * rendering/RenderRubyBase.cpp: * rendering/RenderRubyRun.cpp: (WebCore::RenderRubyRun::getOverhang): * rendering/RenderRubyText.cpp: (WebCore::RenderRubyText::adjustInlineDirectionLineBounds): * rendering/RenderScrollbarPart.cpp: (WebCore::RenderScrollbarPart::computeScrollbarWidth): (WebCore::RenderScrollbarPart::computeScrollbarHeight): * rendering/RenderSearchField.cpp: (WebCore::RenderSearchField::computeControlLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::updateLogicalWidth): (WebCore::RenderTable::convertStyleLogicalHeightToComputedHeight): (WebCore::RenderTable::layout): (WebCore::RenderTable::computePreferredLogicalWidths): (WebCore::RenderTable::calcBorderStart): (WebCore::RenderTable::calcBorderEnd): (WebCore::RenderTable::outerBorderBefore): (WebCore::RenderTable::outerBorderAfter): (WebCore::RenderTable::outerBorderStart): (WebCore::RenderTable::outerBorderEnd): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::parseColSpanFromDOM): (WebCore::RenderTableCell::parseRowSpanFromDOM): (WebCore::RenderTableCell::logicalWidthFromColumns): (WebCore::RenderTableCell::computePreferredLogicalWidths): (WebCore::RenderTableCell::layout): (WebCore::RenderTableCell::setOverrideLogicalContentHeightFromRowHeight): (WebCore::RenderTableCell::clippedOverflowRectForRepaint): (WebCore::RenderTableCell::alignLeftRightBorderPaintRect): (WebCore::RenderTableCell::alignTopBottomBorderPaintRect): * rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::ensureRows): (WebCore::RenderTableSection::calcRowLogicalHeight): (WebCore::RenderTableSection::distributeExtraLogicalHeightToPercentRows): (WebCore::RenderTableSection::layoutRows): (WebCore::RenderTableSection::firstLineBaseline): (WebCore::RenderTableSection::removeCachedCollapsedBorders): (WebCore::RenderTableSection::setCachedCollapsedBorder): (WebCore::RenderTableSection::cachedCollapsedBorder): * rendering/RenderText.cpp: (WebCore::makeCapitalized): (WebCore::RenderText::absoluteRectsForRange): (WebCore::RenderText::absoluteQuadsForRange): (WebCore::maxWordFragmentWidth): (WebCore::RenderText::computePreferredLogicalWidths): * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computePreferredLogicalWidths): * rendering/RenderTextControlSingleLine.cpp: * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintProgressBar): (WebCore::RenderThemeMac::paintMenuListButton): * rendering/RenderWidget.cpp: * rendering/RootInlineBox.cpp: (WebCore::RootInlineBox::alignBoxesInBlockDirection): (WebCore::RootInlineBox::beforeAnnotationsAdjustment): (WebCore::RootInlineBox::selectionTopAdjustedForPrecedingBlock): (WebCore::RootInlineBox::blockDirectionPointInLine): (WebCore::RootInlineBox::paddedLayoutOverflowRect): (WebCore::setAscentAndDescent): (WebCore::RootInlineBox::ascentAndDescentForBox): * rendering/mathml/RenderMathMLRoot.cpp: (WebCore::RenderMathMLRoot::layout): * rendering/style/RenderStyle.cpp: (WebCore::calcConstraintScaleFor): (WebCore::RenderStyle::setFontSize): (WebCore::RenderStyle::getShadowExtent): (WebCore::RenderStyle::getShadowInsetExtent): (WebCore::RenderStyle::getShadowHorizontalExtent): (WebCore::RenderStyle::getShadowVerticalExtent): * rendering/style/SVGRenderStyle.cpp: * rendering/style/ShadowData.cpp: (WebCore::calculateShadowExtent): * rendering/svg/RenderSVGResourceFilter.cpp: * rendering/svg/RenderSVGRoot.cpp: * rendering/svg/SVGInlineFlowBox.cpp: (WebCore::SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer): * rendering/svg/SVGInlineTextBox.cpp: (WebCore::SVGInlineTextBox::localSelectionRect): * svg/SVGAnimatedNumber.cpp: * svg/SVGAnimatedNumberOptionalNumber.cpp: * svg/animation/SMILTimeContainer.cpp: (WebCore::SMILTimeContainer::startTimer): (WebCore::SMILTimeContainer::updateAnimations): * svg/animation/SVGSMILElement.cpp: (WebCore::SVGSMILElement::simpleDuration): (WebCore::SVGSMILElement::repeatingDuration): (WebCore::SVGSMILElement::resolveActiveEnd): (WebCore::SVGSMILElement::resolveInterval): (WebCore::SVGSMILElement::resolveFirstInterval): (WebCore::SVGSMILElement::resolveNextInterval): (WebCore::SVGSMILElement::calculateAnimationPercentAndRepeat): * xml/XMLTreeViewer.cpp: * xml/parser/XMLDocumentParser.cpp: * xml/parser/XMLDocumentParserLibxml2.cpp: (WebCore::OffsetBuffer::readOutBytes): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 03 Nov, 2013 1 commit
-
-
akling@apple.com authored
<https://webkit.org/b/123702> hasPseudoStyle() actually shows up on html5-full-render.html, and it's pretty crazy to eat the cost of a function call just to do some basic bit twiddling. Reviewed by Antti Koivisto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Nov, 2013 2 commits
-
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=121806 Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2013-11-01 Reviewed by Darin Adler. Source/WebCore: text-decoration-skip: ink is implemented by the following steps: 1. Before drawing any decorations, figure out the bounding box for the decorations that will be drawn 2. Create an ImageBuffer with these dimensions 3. Draw text into this ImageBuffer with a thicker stroke 4. Apply the ImageBuffer as a mask to the context 5. Draw decorations like normal 6. Clean up Test: fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-ink.html * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::computeLineBoundsAndAntialiasingModeForText): Don't call GraphicsContext::roundToDevicePixels when painting is disabled * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::paint): Pass the TextPainter to paintDecoration (WebCore::computeUnderlineOffset): Small cleanup (WebCore::getWavyStrokeControlPointDistance): Pulling out of strokeWavyTextDecoration() (WebCore::getWavyStrokeStep): Ditto (WebCore::strokeWavyTextDecoration): Use the previous 2 functions (WebCore::getSingleDecorationBoundingBox): Pulling out repeated code into a function (WebCore::getDecorationBoundingBox): Compute the bounding box for an underline which hasn't been drawn yet (WebCore::InlineTextBox::paintDecoration): Construct a mask and apply it to the GraphicsContext * rendering/InlineTextBox.h: paintDecoration needs the TextPainter * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresRepaintIfTextOrBorderOrOutline): Redraw the underline when text-decoration-skip changes LayoutTests: Adding a test which draws a very large "p" with text-decoration-skip:ink. The viewport is restricted to be just hugging the place where an underline would intersect the descender of the "p". This should look the same as if there was no underline at all (because of the skipping underline). * fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-ink-expected.html: Added. * fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-ink.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
<https://webkit.org/b/123634> There are no remaining users of the RenderArena allocator. Reviewed by Geoffrey Garen. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 31 Oct, 2013 1 commit
-
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=123541 Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2013-10-31 Reviewed by Tim Horton. Source/WebCore: Enabled CSS3 text decoration tests * css/CSSComputedStyleDeclaration.cpp: (WebCore::renderTextDecorationStyleFlagsToCSSValue): Mapping internal representation to a CSSValue (WebCore::ComputedStyleExtractor::propertyValue): Ditto * css/CSSParser.cpp: Moving parsing functions behind new flag (WebCore::isColorPropertyID): (WebCore::CSSParser::parseValue): (WebCore::CSSParser::addTextDecorationProperty): (WebCore::CSSParser::parseTextDecorationSkip): (WebCore::CSSParser::parseTextUnderlinePosition): * css/CSSParser.h: * css/CSSPrimitiveValueMappings.h: * css/CSSPropertyNames.in: Marking the new properties behind new flag * css/CSSValueKeywords.in: Marking new values behind new flag * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/StylePropertyShorthand.cpp: (WebCore::shorthandForProperty): Move text decoration shorthand (WebCore::matchingShorthandsForLonghand): * css/StylePropertyShorthand.h: * css/StyleResolver.cpp: (WebCore::isValidVisitedLinkProperty): (WebCore::StyleResolver::applyProperty): * platform/graphics/GraphicsContext.h: * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::setPlatformStrokeStyle): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawLine): * platform/graphics/wince/GraphicsContextWinCE.cpp: (WebCore::createPen): * rendering/InlineFlowBox.cpp: * rendering/InlineFlowBox.h: * rendering/InlineTextBox.cpp: (WebCore::textDecorationStyleToStrokeStyle): (WebCore::computeUnderlineOffset): (WebCore::InlineTextBox::paintDecoration): * rendering/RenderObject.cpp: (WebCore::decorationColor): * rendering/RootInlineBox.cpp: * rendering/RootInlineBox.h: * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresRepaintIfTextOrBorderOrOutline): (WebCore::RenderStyle::colorIncludingFallback): (WebCore::RenderStyle::visitedDependentColor): * rendering/style/RenderStyle.h: * rendering/style/RenderStyleConstants.h: * rendering/style/StyleRareInheritedData.cpp: (WebCore::StyleRareInheritedData::StyleRareInheritedData): (WebCore::StyleRareInheritedData::operator==): * rendering/style/StyleRareInheritedData.h: * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: LayoutTests: * platform/mac/TestExpectations: Enable CSS3 text decoration tests (since CSS3_TEXT_DECORATION is enabled by default) git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 23 Oct, 2013 1 commit
-
-
gyuyoung.kim@samsung.com authored
https://bugs.webkit.org/show_bug.cgi?id=91566 Reviewed by Beth Dakin. Source/WebCore: Original patch by David Barr(davidbarr@chromium.org). This patch passes an information of image orientation into existing EXIF support functions (draw() functions of image classes mainly). We need to let the functions to know the information in order to meet the image-orientation requirement. Spec: http://dev.w3.org/csswg/css-images-3/#the-image-orientation The css3-images module specification is at last call. Test: fast/css/image-orientation/image-orientation.html Image orientation test is to check if incorrect rotation value can be fixed with correct orientation. * loader/cache/CachedImage.cpp: (WebCore::CachedImage::imageSizeForRenderer): * page/DragController.cpp: (WebCore::DragController::doImageDrag): * page/Frame.cpp: (WebCore::Frame::nodeImage): * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::updateSize): (WebCore::BitmapImage::sizeRespectingOrientation): (WebCore::BitmapImage::drawPattern): * platform/graphics/BitmapImage.h: * platform/graphics/CrossfadeGeneratedImage.cpp: (WebCore::CrossfadeGeneratedImage::draw): * platform/graphics/CrossfadeGeneratedImage.h: * platform/graphics/GeneratedImage.h: * platform/graphics/GradientImage.cpp: (WebCore::GradientImage::draw): * platform/graphics/GradientImage.h: * platform/graphics/Image.cpp: (WebCore::Image::draw): (WebCore::Image::drawTiled): * platform/graphics/Image.h: * platform/graphics/blackberry/ImageBlackBerry.cpp: * platform/graphics/cairo/BitmapImageCairo.cpp: (WebCore::BitmapImage::draw): * platform/graphics/cg/BitmapImageCG.cpp: * platform/graphics/cg/PDFDocumentImage.cpp: (WebCore::PDFDocumentImage::draw): * platform/graphics/cg/PDFDocumentImage.h: * platform/graphics/win/ImageCGWin.cpp: (WebCore::BitmapImage::getHBITMAPOfSize): (WebCore::BitmapImage::drawFrameMatchingSourceSize): * platform/graphics/wince/ImageBufferWinCE.cpp: (WebCore::BufferedImage::draw): * platform/graphics/wince/ImageWinCE.cpp: (WebCore::BitmapImage::draw): * platform/mac/DragImageMac.mm: (WebCore::createDragImageFromImage): * rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::paintSnapshotImage): * rendering/RenderImage.cpp: (WebCore::RenderImage::styleDidChange): * rendering/RenderSnapshottedPlugIn.cpp: (WebCore::RenderSnapshottedPlugIn::paintSnapshot): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): * svg/graphics/SVGImage.cpp: (WebCore::SVGImage::drawForContainer): (WebCore::SVGImage::nativeImageForCurrentFrame): (WebCore::SVGImage::draw): * svg/graphics/SVGImage.h: * svg/graphics/SVGImageForContainer.cpp: (WebCore::SVGImageForContainer::draw): * svg/graphics/SVGImageForContainer.h: Source/WebKit: * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Update export symbols for draw functions. LayoutTests: * fast/css/image-orientation/image-orientation-expected.txt: Fixed wrong description. * fast/css/image-orientation/image-orientation.html: Remove a space. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Oct, 2013 1 commit
-
-
timothy_horton@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=123172 Reviewed by Simon Fraser. No new tests, just a rename. "get" in WebCore tends to mean that the function has out arguments; these have no arguments. Rename FilterOperation::getOperationType() to FilterOperation::type(). I noticed that ClipPathOperation had the same mistake, so I fixed it there too. Removed long and useless list of WebCore files. * Shared/WebCoreArgumentCoders.cpp: (CoreIPC::encodeFilterOperation): * Shared/mac/RemoteLayerTreeTransaction.mm: (WebKit::RemoteLayerTreeTextStream::operator<<): Adopt the new name. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Oct, 2013 1 commit
-
-
akling@apple.com authored
<https://webkit.org/b/123051> Source/WebCore: Made the RenderStyle::create methods return PassRef<RenderStyle> and RenderElement::setStyle take a PassRef<RenderStyle>. Reviewed by Darin Adler. Source/WTF: Added some new PassRef tricks to make this patch possible. Reviewed by Darin Adler. * wtf/PassRef.h: (WTF::PassRef::get): Added a get() helper to facilitate writing functions that construct a new object and call some functions on it before returning it. (WTF::PassRef::dropRef): This will deref() the referenced object and mark the PassRef as "passed." This is used in code paths where the PassRef is going to go out of scope with nobody to take it over. (WTF::PassRef::leakRef): Renamed takeReference() to leakRef() and made it public so we don't have to awkwardly sink the PassRef into a Ref for e.g static locals. * wtf/RefPtr.h: (WTF::RefPtr::releaseNonNull): Added RefPtr::releaseNonNull() for a convenient way of creating a PassRef<T> from a RefPtr<T>. This function may only be called if the RefPtr is known to be non-null. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 Oct, 2013 2 commits
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=123040 Reviewed by Andreas Kling. Source/JavaScriptCore: * API/JSCallbackObject.cpp: (JSC::::create): * API/JSObjectRef.cpp: * bytecode/CodeBlock.h: (JSC::CodeBlock::constants): (JSC::CodeBlock::setConstantRegisters): * bytecode/DFGExitProfile.h: * bytecode/EvalCodeCache.h: * bytecode/Operands.h: * bytecode/UnlinkedCodeBlock.h: (JSC::UnlinkedCodeBlock::constantRegisters): * bytecode/Watchpoint.h: * bytecompiler/BytecodeGenerator.h: * bytecompiler/StaticPropertyAnalysis.h: * bytecompiler/StaticPropertyAnalyzer.h: * dfg/DFGArgumentsSimplificationPhase.cpp: * dfg/DFGBlockInsertionSet.h: * dfg/DFGCSEPhase.cpp: (JSC::DFG::performCSE): (JSC::DFG::performStoreElimination): * dfg/DFGCommonData.h: * dfg/DFGDesiredStructureChains.h: * dfg/DFGDesiredWatchpoints.h: * dfg/DFGJITCompiler.h: * dfg/DFGOSRExitCompiler32_64.cpp: (JSC::DFG::OSRExitCompiler::compileExit): * dfg/DFGOSRExitCompiler64.cpp: (JSC::DFG::OSRExitCompiler::compileExit): * dfg/DFGWorklist.h: * heap/BlockAllocator.h: (JSC::CopiedBlock): (JSC::MarkedBlock): (JSC::WeakBlock): (JSC::MarkStackSegment): (JSC::CopyWorkListSegment): (JSC::HandleBlock): * heap/Heap.h: * heap/Local.h: * heap/MarkedBlock.h: * heap/Strong.h: * jit/AssemblyHelpers.cpp: (JSC::AssemblyHelpers::decodedCodeMapFor): * jit/AssemblyHelpers.h: * jit/SpecializedThunkJIT.h: * parser/Nodes.h: * parser/Parser.cpp: (JSC::::parseIfStatement): * parser/Parser.h: (JSC::Scope::copyCapturedVariablesToVector): (JSC::parse): * parser/ParserArena.h: * parser/SourceProviderCacheItem.h: * profiler/LegacyProfiler.cpp: (JSC::dispatchFunctionToProfiles): * profiler/LegacyProfiler.h: (JSC::LegacyProfiler::currentProfiles): * profiler/ProfileNode.h: (JSC::ProfileNode::children): * profiler/ProfilerDatabase.h: * runtime/Butterfly.h: (JSC::Butterfly::contiguousInt32): (JSC::Butterfly::contiguous): * runtime/GenericTypedArrayViewInlines.h: (JSC::::create): * runtime/Identifier.h: (JSC::Identifier::add): * runtime/JSPromise.h: * runtime/PropertyMapHashTable.h: * runtime/PropertyNameArray.h: * runtime/RegExpCache.h: * runtime/SparseArrayValueMap.h: * runtime/SymbolTable.h: * runtime/VM.h: * tools/CodeProfile.cpp: (JSC::truncateTrace): * tools/CodeProfile.h: * yarr/YarrInterpreter.cpp: * yarr/YarrInterpreter.h: (JSC::Yarr::BytecodePattern::BytecodePattern): * yarr/YarrJIT.cpp: (JSC::Yarr::YarrGenerator::opCompileParenthesesSubpattern): (JSC::Yarr::YarrGenerator::opCompileParentheticalAssertion): (JSC::Yarr::YarrGenerator::opCompileBody): * yarr/YarrPattern.cpp: (JSC::Yarr::YarrPatternConstructor::checkForTerminalParentheses): (JSC::Yarr::YarrPatternConstructor::optimizeDotStarWrappedExpressions): * yarr/YarrPattern.h: Source/WebCore: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeys.h: * Modules/geolocation/Geolocation.h: * Modules/geolocation/GeolocationController.cpp: (WebCore::GeolocationController::positionChanged): (WebCore::GeolocationController::errorOccurred): * Modules/geolocation/GeolocationController.h: * Modules/indexeddb/IDBCallbacks.h: * Modules/indexeddb/IDBDatabase.h: * Modules/indexeddb/IDBDatabaseBackendInterface.h: * Modules/indexeddb/IDBEventDispatcher.cpp: (WebCore::IDBEventDispatcher::dispatch): * Modules/indexeddb/IDBEventDispatcher.h: * Modules/indexeddb/IDBKey.h: * Modules/indexeddb/IDBObjectStore.h: * Modules/indexeddb/IDBPendingTransactionMonitor.cpp: * Modules/indexeddb/IDBRequest.cpp: (WebCore::IDBRequest::dispatchEvent): * Modules/indexeddb/IDBRequest.h: (WebCore::IDBRequest::onSuccessWithPrefetch): * Modules/indexeddb/IDBTransaction.cpp: (WebCore::IDBTransaction::dispatchEvent): * Modules/indexeddb/IDBTransaction.h: * Modules/mediacontrols/MediaControlsHost.cpp: (WebCore::MediaControlsHost::sortedTrackListForMenu): * Modules/mediacontrols/MediaControlsHost.h: * Modules/mediasource/MediaSource.cpp: (WebCore::MediaSource::activeRanges): * Modules/mediasource/MediaSource.h: * Modules/mediasource/MediaSourceBase.cpp: (WebCore::MediaSourceBase::buffered): * Modules/mediasource/MediaSourceBase.h: * Modules/mediasource/MediaSourceRegistry.cpp: (WebCore::MediaSourceRegistry::unregisterURL): * Modules/mediasource/MediaSourceRegistry.h: * Modules/mediasource/SourceBufferList.h: * Modules/mediasource/WebKitMediaSource.cpp: (WebCore::WebKitMediaSource::activeRanges): * Modules/mediasource/WebKitMediaSource.h: * Modules/mediasource/WebKitSourceBufferList.h: * Modules/mediastream/MediaStream.cpp: (WebCore::MediaStream::scheduledEventTimerFired): * Modules/mediastream/MediaStream.h: * Modules/mediastream/MediaStreamRegistry.h: * Modules/mediastream/MediaStreamTrack.h: * Modules/mediastream/RTCDTMFSender.cpp: (WebCore::RTCDTMFSender::scheduledEventTimerFired): * Modules/mediastream/RTCDTMFSender.h: * Modules/mediastream/RTCDataChannel.cpp: (WebCore::RTCDataChannel::scheduledEventTimerFired): * Modules/mediastream/RTCDataChannel.h: * Modules/mediastream/RTCPeerConnection.cpp: (WebCore::RTCPeerConnection::stop): (WebCore::RTCPeerConnection::scheduledEventTimerFired): * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/RTCStatsResponse.h: (WebCore::RTCStatsResponse::result): * Modules/notifications/Notification.h: * Modules/notifications/NotificationCenter.h: * Modules/speech/SpeechSynthesis.cpp: (WebCore::SpeechSynthesis::getVoices): * Modules/speech/SpeechSynthesis.h: * Modules/webaudio/AudioBuffer.h: * Modules/webaudio/AudioNode.h: * Modules/webaudio/AudioNodeOutput.h: * Modules/webaudio/MediaStreamAudioSource.cpp: (WebCore::MediaStreamAudioSource::setAudioFormat): (WebCore::MediaStreamAudioSource::consumeAudio): * Modules/webaudio/PeriodicWave.h: * Modules/webaudio/ScriptProcessorNode.h: * Modules/webdatabase/AbstractDatabaseServer.h: * Modules/webdatabase/DatabaseBackend.h: * Modules/webdatabase/DatabaseManager.cpp: (WebCore::DatabaseManager::origins): * Modules/webdatabase/DatabaseManager.h: * Modules/webdatabase/DatabaseServer.cpp: (WebCore::DatabaseServer::origins): * Modules/webdatabase/DatabaseServer.h: * Modules/webdatabase/DatabaseThread.h: * Modules/webdatabase/DatabaseTracker.cpp: (WebCore::DatabaseTracker::interruptAllDatabasesForContext): (WebCore::DatabaseTracker::origins): (WebCore::DatabaseTracker::getOpenDatabases): (WebCore::DatabaseTracker::deleteAllDatabases): (WebCore::DatabaseTracker::deleteDatabaseFile): * Modules/webdatabase/DatabaseTracker.h: * Modules/webdatabase/SQLStatementBackend.cpp: * Modules/webdatabase/SQLTransactionBackend.cpp: * Modules/webdatabase/SQLTransactionBackend.h: * Modules/webdatabase/SQLTransactionCoordinator.cpp: (WebCore::SQLTransactionCoordinator::shutdown): * Modules/webdatabase/SQLTransactionCoordinator.h: * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp: (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData): (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks): (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryDataCallback): * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h: * Modules/websockets/WebSocket.cpp: (WebCore::WebSocket::didReceiveBinaryData): * Modules/websockets/WebSocket.h: * Modules/websockets/WebSocketChannel.cpp: (WebCore::WebSocketChannel::processFrame): * Modules/websockets/WebSocketChannel.h: * Modules/websockets/WebSocketChannelClient.h: (WebCore::WebSocketChannelClient::didReceiveBinaryData): * Modules/websockets/WebSocketExtensionDispatcher.h: * Modules/websockets/WorkerThreadableWebSocketChannel.cpp: (WebCore::workerGlobalScopeDidReceiveBinaryData): (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData): (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendArrayBuffer): (WebCore::WorkerThreadableWebSocketChannel::Bridge::send): * Modules/websockets/WorkerThreadableWebSocketChannel.h: * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::~AXObjectCache): * accessibility/AXObjectCache.h: * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::ariaLabeledByText): * accessibility/AccessibilityObject.h: (WebCore::AccessibilityText::AccessibilityText): * bindings/js/DOMWrapperWorld.h: * bindings/js/JSDOMBinding.h: (WebCore::toRefPtrNativeArray): * bindings/js/JSDOMGlobalObject.h: * bindings/js/JSMutationCallback.cpp: (WebCore::JSMutationCallback::call): * bindings/js/JSMutationCallback.h: * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::JSWebGLRenderingContext::getAttachedShaders): * bindings/js/PageScriptDebugServer.h: * bindings/js/ScheduledAction.h: * bindings/js/ScriptController.cpp: (WebCore::ScriptController::collectIsolatedContexts): * bindings/js/ScriptController.h: * bindings/js/ScriptDebugServer.h: * bindings/js/ScriptProfile.cpp: (WebCore::buildInspectorObjectFor): * bindings/objc/ObjCNodeFilterCondition.h: * bridge/objc/objc_class.h: * bridge/runtime_root.cpp: (JSC::Bindings::RootObject::invalidate): * bridge/runtime_root.h: * css/BasicShapeFunctions.cpp: (WebCore::basicShapeForValue): * css/CSSBasicShapes.h: (WebCore::CSSBasicShapePolygon::values): * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::valueForFilter): * css/CSSFontFace.h: * css/CSSFontFaceSource.h: * css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::addFontFaceRule): (WebCore::CSSFontSelector::getFontFace): (WebCore::CSSFontSelector::beginLoadTimerFired): * css/CSSFontSelector.h: * css/CSSGroupingRule.h: * css/CSSImageGeneratorValue.h: * css/CSSParserValues.cpp: (WebCore::CSSParserSelector::adoptSelectorVector): * css/CSSParserValues.h: * css/CSSPropertySourceData.h: * css/CSSRuleList.h: (WebCore::StaticCSSRuleList::rules): * css/CSSSegmentedFontFace.cpp: (WebCore::CSSSegmentedFontFace::fontLoaded): * css/CSSSegmentedFontFace.h: * css/CSSSelectorList.cpp: (WebCore::CSSSelectorList::adoptSelectorVector): * css/CSSSelectorList.h: * css/CSSStyleSheet.h: * css/CSSValue.h: (WebCore::compareCSSValueVector): * css/CSSValuePool.h: * css/DocumentRuleSets.cpp: (WebCore::DocumentRuleSets::collectRulesFromUserStyleSheets): (WebCore::DocumentRuleSets::appendAuthorStyleSheets): * css/DocumentRuleSets.h: * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchedRuleList): * css/ElementRuleCollector.h: * css/FontLoader.h: * css/InspectorCSSOMWrappers.cpp: (WebCore::InspectorCSSOMWrappers::collectFromStyleSheetContents): (WebCore::InspectorCSSOMWrappers::collectFromStyleSheets): * css/InspectorCSSOMWrappers.h: * css/MediaList.cpp: (WebCore::MediaQuerySet::parse): (WebCore::MediaList::item): (WebCore::reportMediaQueryWarningIfNeeded): * css/MediaList.h: (WebCore::MediaQuerySet::queryVector): * css/MediaQueryEvaluator.cpp: (WebCore::MediaQueryEvaluator::eval): * css/MediaQueryMatcher.h: * css/PropertySetCSSStyleDeclaration.cpp: (WebCore::PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM): * css/PropertySetCSSStyleDeclaration.h: * css/RuleSet.cpp: (WebCore::RuleSet::addToRuleSet): (WebCore::RuleSet::addRegionRule): (WebCore::RuleSet::addChildRules): (WebCore::RuleSet::addRulesFromSheet): * css/RuleSet.h: * css/SelectorFilter.h: * css/StyleInvalidationAnalysis.cpp: (WebCore::StyleInvalidationAnalysis::analyzeStyleSheet): * css/StylePropertySet.cpp: (WebCore::StylePropertySet::getLayeredShorthandValue): * css/StyleResolver.cpp: (WebCore::StyleResolver::appendAuthorStyleSheets): (WebCore::StyleResolver::keyframeStylesForAnimation): (WebCore::StyleResolver::styleRulesForElement): (WebCore::StyleResolver::pseudoStyleRulesForElement): (WebCore::StyleResolver::resolveVariables): (WebCore::StyleResolver::applyProperty): (WebCore::StyleResolver::loadPendingSVGDocuments): (WebCore::StyleResolver::loadPendingShaders): * css/StyleResolver.h: * css/StyleRule.cpp: (WebCore::StyleRule::splitIntoMultipleRulesWithMaximumSelectorComponentCount): (WebCore::StyleRuleGroup::StyleRuleGroup): (WebCore::StyleRuleMedia::StyleRuleMedia): (WebCore::StyleRuleSupports::StyleRuleSupports): (WebCore::StyleRuleRegion::StyleRuleRegion): * css/StyleRule.h: (WebCore::StyleRule::parserAdoptSelectorVector): (WebCore::StyleRulePage::parserAdoptSelectorVector): (WebCore::StyleRuleGroup::childRules): (WebCore::StyleRuleMedia::create): (WebCore::StyleRuleSupports::create): (WebCore::StyleRuleRegion::create): (WebCore::StyleRuleHost::create): (WebCore::StyleRuleHost::StyleRuleHost): * css/StyleScopeResolver.h: * css/StyleSheetContents.cpp: (WebCore::StyleSheetContents::parserAppendRule): (WebCore::childRulesHaveFailedOrCanceledSubresources): * css/StyleSheetContents.h: (WebCore::StyleSheetContents::childRules): (WebCore::StyleSheetContents::importRules): * css/StyleSheetList.cpp: (WebCore::StyleSheetList::styleSheets): (WebCore::StyleSheetList::item): * css/StyleSheetList.h: * css/WebKitCSSKeyframesRule.h: (WebCore::StyleRuleKeyframes::keyframes): * dom/CheckedRadioButtons.h: * dom/ClientRectList.h: * dom/ContainerNode.h: (WebCore::ChildNodesLazySnapshot::nextNode): (WebCore::ChildNodesLazySnapshot::takeSnapshot): * dom/CrossThreadTask.h: * dom/Document.cpp: (WebCore::Document::webkitCancelFullScreen): (WebCore::Document::webkitExitFullscreen): (WebCore::Document::fullScreenChangeDelayTimerFired): (WebCore::Document::didAssociateFormControlsTimerFired): * dom/Document.h: * dom/DocumentMarkerController.cpp: (WebCore::DocumentMarkerController::removeMarkers): * dom/DocumentMarkerController.h: * dom/DocumentStyleSheetCollection.cpp: (WebCore::DocumentStyleSheetCollection::injectedUserStyleSheets): (WebCore::DocumentStyleSheetCollection::injectedAuthorStyleSheets): (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets): (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange): (WebCore::styleSheetsUseRemUnits): (WebCore::filterEnabledNonemptyCSSStyleSheets): (WebCore::collectActiveCSSStyleSheetsFromSeamlessParents): (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets): * dom/DocumentStyleSheetCollection.h: * dom/Element.cpp: (WebCore::Element::attrNodeList): (WebCore::Element::webkitGetRegionFlowRanges): * dom/Element.h: * dom/EventListenerMap.h: * dom/EventSender.h: (WebCore::EventSender::timerFired): * dom/IdTargetObserverRegistry.h: * dom/MutationCallback.h: * dom/MutationObserver.cpp: (WebCore::MutationObserver::takeRecords): (WebCore::MutationObserver::deliver): (WebCore::MutationObserver::deliverAllMutations): * dom/MutationObserver.h: * dom/MutationObserverRegistration.h: * dom/NamedFlowCollection.cpp: (WebCore::NamedFlowCollection::namedFlows): * dom/NamedFlowCollection.h: * dom/Node.cpp: (WebCore::Node::didMoveToNewDocument): (WebCore::Node::mutationObserverRegistry): (WebCore::Node::registerMutationObserver): (WebCore::Node::unregisterMutationObserver): (WebCore::Node::notifyMutationObserversNodeWillDetach): * dom/Node.h: * dom/NodeRareData.h: * dom/Range.cpp: (WebCore::Range::processContents): (WebCore::Range::processNodes): (WebCore::Range::processAncestorsAndTheirSiblings): * dom/Range.h: * dom/ScopedEventQueue.h: * dom/ScriptExecutionContext.cpp: (WebCore::ScriptExecutionContext::reportException): * dom/ScriptExecutionContext.h: * dom/ScriptedAnimationController.h: * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply): * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::removeChildrenInRange): (WebCore::CompositeEditCommand::deleteInsignificantText): (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement): * editing/CompositeEditCommand.h: * editing/EditingStyle.cpp: (WebCore::htmlElementEquivalents): (WebCore::EditingStyle::conflictsWithImplicitStyleOfElement): (WebCore::htmlAttributeEquivalents): (WebCore::EditingStyle::conflictsWithImplicitStyleOfAttributes): (WebCore::EditingStyle::extractConflictingImplicitStyleOfAttributes): (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent): (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement): (WebCore::styleFromMatchedRulesForElement): * editing/Editor.cpp: (WebCore::Editor::countMatchesForText): * editing/Editor.h: * editing/InsertParagraphSeparatorCommand.cpp: (WebCore::InsertParagraphSeparatorCommand::getAncestorsInsideBlock): (WebCore::InsertParagraphSeparatorCommand::cloneHierarchyUnderNewBlock): (WebCore::InsertParagraphSeparatorCommand::doApply): * editing/InsertParagraphSeparatorCommand.h: * editing/MergeIdenticalElementsCommand.cpp: (WebCore::MergeIdenticalElementsCommand::doApply): (WebCore::MergeIdenticalElementsCommand::doUnapply): * editing/RemoveNodePreservingChildrenCommand.cpp: (WebCore::RemoveNodePreservingChildrenCommand::doApply): * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplacementFragment::removeUnrenderedNodes): * editing/SimplifyMarkupCommand.cpp: (WebCore::SimplifyMarkupCommand::doApply): (WebCore::SimplifyMarkupCommand::pruneSubsequentAncestorsToRemove): * editing/SimplifyMarkupCommand.h: * editing/SpellChecker.h: * editing/SplitElementCommand.cpp: (WebCore::SplitElementCommand::executeApply): (WebCore::SplitElementCommand::doUnapply): * editing/WrapContentsInDummySpanCommand.cpp: (WebCore::WrapContentsInDummySpanCommand::executeApply): (WebCore::WrapContentsInDummySpanCommand::doUnapply): * editing/mac/AlternativeTextUIController.h: * fileapi/FileList.h: * history/BackForwardList.h: * history/HistoryItem.cpp: (WebCore::HistoryItem::setRedirectURLs): * history/HistoryItem.h: * history/mac/HistoryItemMac.mm: (WebCore::HistoryItem::setTransientProperty): * html/FormController.h: * html/HTMLAnchorElement.cpp: * html/HTMLCollection.cpp: (WebCore::HTMLCollection::append): * html/HTMLCollection.h: * html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::checkValidity): * html/HTMLFormControlElement.h: * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::validateInteractively): (WebCore::HTMLFormElement::checkValidity): (WebCore::HTMLFormElement::checkInvalidControlsAndCollectUnhandled): * html/HTMLFormElement.h: * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::updateActiveTextTrackCues): (WebCore::HTMLMediaElement::platformTextTracks): (WebCore::HTMLMediaElement::configureTextTrackGroup): * html/HTMLMediaElement.h: * html/HTMLPlugInImageElement.cpp: * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::setLength): * html/MediaController.cpp: (MediaController::asyncEventTimerFired): * html/MediaController.h: * html/MediaFragmentURIParser.h: * html/ValidationMessage.h: * html/canvas/WebGLFramebuffer.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::getAttachedShaders): * html/canvas/WebGLRenderingContext.h: * html/canvas/WebGLTexture.h: * html/parser/BackgroundHTMLParser.cpp: (WebCore::BackgroundHTMLParser::BackgroundHTMLParser): * html/parser/BackgroundHTMLParser.h: (WebCore::BackgroundHTMLParser::create): * html/parser/HTMLDocumentParser.cpp: (WebCore::HTMLDocumentParser::startBackgroundParser): * html/parser/HTMLDocumentParser.h: * html/parser/HTMLMetaCharsetParser.h: * html/parser/HTMLPreloadScanner.cpp: (WebCore::TokenPreloadScanner::scan): (WebCore::TokenPreloadScanner::scanCommon): * html/parser/HTMLResourcePreloader.h: * html/parser/XSSAuditor.h: * html/shadow/ContentDistributor.cpp: (WebCore::ContentDistributor::ensureInsertionPointList): (WebCore::ContentDistributor::distribute): (WebCore::ContentDistributor::invalidate): * html/shadow/ContentDistributor.h: * html/shadow/MediaControlElements.cpp: (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu): (WebCore::MediaControlTextTrackContainerElement::updateDisplay): * html/shadow/MediaControlElements.h: * html/track/InbandGenericTextTrack.h: * html/track/InbandWebVTTTextTrack.cpp: (WebCore::InbandWebVTTTextTrack::newCuesParsed): * html/track/LoadableTextTrack.cpp: (WebCore::LoadableTextTrack::newCuesAvailable): (WebCore::LoadableTextTrack::newRegionsAvailable): * html/track/TextTrackCueList.h: * html/track/TextTrackList.cpp: (TextTrackList::invalidateTrackIndexesAfterTrack): (TextTrackList::remove): (TextTrackList::contains): * html/track/TextTrackList.h: * html/track/TrackListBase.cpp: (TrackListBase::asyncEventTimerFired): * html/track/TrackListBase.h: * html/track/WebVTTParser.cpp: (WebCore::WebVTTParser::getNewCues): (WebCore::WebVTTParser::getNewRegions): * html/track/WebVTTParser.h: * inspector/ConsoleMessage.cpp: (WebCore::ConsoleMessage::addToFrontend): * inspector/ContentSearchUtils.cpp: (WebCore::ContentSearchUtils::getRegularExpressionMatchesByLines): (WebCore::ContentSearchUtils::lineEndings): (WebCore::ContentSearchUtils::searchInTextByLines): * inspector/ContentSearchUtils.h: * inspector/DOMPatchSupport.cpp: (WebCore::DOMPatchSupport::patchNode): (WebCore::DOMPatchSupport::diff): (WebCore::DOMPatchSupport::innerPatchChildren): * inspector/DOMPatchSupport.h: * inspector/InjectedScript.cpp: (WebCore::InjectedScript::getProperties): (WebCore::InjectedScript::getInternalProperties): (WebCore::InjectedScript::wrapCallFrames): * inspector/InjectedScript.h: * inspector/InjectedScriptHost.h: * inspector/InspectorAgent.cpp: (WebCore::InspectorAgent::enable): * inspector/InspectorApplicationCacheAgent.cpp: (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests): (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources): * inspector/InspectorApplicationCacheAgent.h: * inspector/InspectorBaseAgent.h: * inspector/InspectorCSSAgent.cpp: (WebCore::SelectorProfile::toInspectorObject): (WebCore::UpdateRegionLayoutTask::onTimer): (WebCore::InspectorCSSAgent::getMatchedStylesForNode): (WebCore::InspectorCSSAgent::getComputedStyleForNode): (WebCore::InspectorCSSAgent::getAllStyleSheets): (WebCore::InspectorCSSAgent::getSupportedCSSProperties): (WebCore::InspectorCSSAgent::getNamedFlowCollection): (WebCore::InspectorCSSAgent::buildArrayForRuleList): (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList): (WebCore::InspectorCSSAgent::buildArrayForRegions): (WebCore::InspectorCSSAgent::buildObjectForNamedFlow): * inspector/InspectorCSSAgent.h: * inspector/InspectorConsoleAgent.h: * inspector/InspectorDOMAgent.cpp: (WebCore::RevalidateStyleAttributeTask::onTimer): (WebCore::InspectorDOMAgent::pushChildNodesToFrontend): (WebCore::InspectorDOMAgent::pushNodePathToFrontend): (WebCore::InspectorDOMAgent::getEventListenersForNode): (WebCore::InspectorDOMAgent::performSearch): (WebCore::InspectorDOMAgent::getSearchResults): (WebCore::InspectorDOMAgent::getAttributes): (WebCore::InspectorDOMAgent::buildObjectForNode): (WebCore::InspectorDOMAgent::buildArrayForElementAttributes): (WebCore::InspectorDOMAgent::buildArrayForContainerChildren): (WebCore::InspectorDOMAgent::styleAttributeInvalidated): * inspector/InspectorDOMAgent.h: * inspector/InspectorDOMStorageAgent.cpp: (WebCore::InspectorDOMStorageAgent::getDOMStorageItems): * inspector/InspectorDOMStorageAgent.h: * inspector/InspectorDatabaseAgent.cpp: (WebCore::InspectorDatabaseAgent::getDatabaseTableNames): * inspector/InspectorDatabaseAgent.h: * inspector/InspectorDebuggerAgent.cpp: (WebCore::InspectorDebuggerAgent::setBreakpointByUrl): (WebCore::InspectorDebuggerAgent::searchInContent): (WebCore::InspectorDebuggerAgent::setScriptSource): (WebCore::InspectorDebuggerAgent::currentCallFrames): * inspector/InspectorDebuggerAgent.h: * inspector/InspectorHeapProfilerAgent.cpp: (WebCore::InspectorHeapProfilerAgent::getProfileHeaders): * inspector/InspectorHeapProfilerAgent.h: * inspector/InspectorHistory.h: * inspector/InspectorIndexedDBAgent.cpp: * inspector/InspectorLayerTreeAgent.cpp: (WebCore::InspectorLayerTreeAgent::layersForNode): (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderObjectHierarchy): (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderLayerHierarchy): * inspector/InspectorLayerTreeAgent.h: * inspector/InspectorMemoryAgent.h: * inspector/InspectorPageAgent.cpp: (WebCore::buildArrayForCookies): (WebCore::InspectorPageAgent::getCookies): (WebCore::InspectorPageAgent::searchInResource): (WebCore::InspectorPageAgent::searchInResources): (WebCore::InspectorPageAgent::buildObjectForFrameTree): * inspector/InspectorPageAgent.h: * inspector/InspectorProfilerAgent.cpp: (WebCore::InspectorProfilerAgent::getProfileHeaders): * inspector/InspectorProfilerAgent.h: * inspector/InspectorResourceAgent.h: * inspector/InspectorRuntimeAgent.cpp: (WebCore::InspectorRuntimeAgent::getProperties): * inspector/InspectorRuntimeAgent.h: * inspector/InspectorState.h: * inspector/InspectorStyleSheet.cpp: (WebCore::asCSSRuleList): (WebCore::InspectorStyle::buildArrayForComputedStyle): (WebCore::InspectorStyle::styleWithProperties): (WebCore::selectorsFromSource): (WebCore::InspectorStyleSheet::buildObjectForSelectorList): (WebCore::InspectorStyleSheet::buildObjectForRule): (WebCore::InspectorStyleSheet::lineEndings): (WebCore::InspectorStyleSheet::buildArrayForRuleList): (WebCore::InspectorStyleSheetForInlineStyle::lineEndings): * inspector/InspectorStyleSheet.h: * inspector/InspectorValues.cpp: (WebCore::InspectorArrayBase::writeJSON): * inspector/InspectorValues.h: * inspector/PageRuntimeAgent.cpp: (WebCore::PageRuntimeAgent::reportExecutionContextCreation): * inspector/ScriptCallStack.cpp: (WebCore::ScriptCallStack::buildInspectorArray): * inspector/ScriptCallStack.h: * loader/CrossOriginPreflightResultCache.h: * loader/DocumentLoader.cpp: (WebCore::cancelAll): (WebCore::setAllDefersLoading): (WebCore::DocumentLoader::getSubresources): * loader/DocumentLoader.h: * loader/FormState.h: * loader/FormSubmission.cpp: (WebCore::FormSubmission::create): * loader/ProgressTracker.h: * loader/ResourceLoadScheduler.h: * loader/TextTrackLoader.cpp: (WebCore::TextTrackLoader::getNewCues): (WebCore::TextTrackLoader::getNewRegions): * loader/TextTrackLoader.h: * loader/WorkerThreadableLoader.cpp: (WebCore::workerGlobalScopeDidReceiveData): (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData): * loader/appcache/ApplicationCache.cpp: (WebCore::ApplicationCache::removeResource): (WebCore::ApplicationCache::dump): * loader/appcache/ApplicationCache.h: * loader/appcache/ApplicationCacheStorage.cpp: (WebCore::ApplicationCacheStorage::getOriginsWithCache): * loader/archive/Archive.cpp: (WebCore::Archive::clearAllSubframeArchives): (WebCore::Archive::clearAllSubframeArchivesImpl): * loader/archive/Archive.h: (WebCore::Archive::subresources): (WebCore::Archive::subframeArchives): * loader/archive/ArchiveResourceCollection.cpp: (WebCore::ArchiveResourceCollection::addAllResources): * loader/archive/ArchiveResourceCollection.h: * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createPropertyListRepresentation): (WebCore::LegacyWebArchive::create): (WebCore::LegacyWebArchive::createFromSelection): * loader/archive/cf/LegacyWebArchive.h: * loader/archive/mhtml/MHTMLParser.h: * loader/cache/CachedResource.h: * loader/cache/CachedResourceLoader.h: * loader/cache/MemoryCache.h: * loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::notifyPendingLoadDecisions): * loader/icon/IconDatabase.h: * page/CaptionUserPreferencesMediaAF.cpp: (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu): * page/CaptionUserPreferencesMediaAF.h: * page/ChromeClient.h: (WebCore::ChromeClient::didAssociateFormControls): * page/Console.h: * page/ContentSecurityPolicy.h: * page/DOMWindow.cpp: (WebCore::DOMWindow::getMatchedCSSRules): * page/DeviceController.cpp: (WebCore::DeviceController::dispatchDeviceEvent): (WebCore::DeviceController::fireDeviceEvent): * page/DeviceController.h: * page/EditorClient.h: * page/EventHandler.cpp: (WebCore::EventHandler::handleTouchEvent): * page/EventHandler.h: * page/FrameView.cpp: (WebCore::FrameView::serviceScriptedAnimations): * page/Page.cpp: (WebCore::Page::findStringMatchingRanges): * page/Page.h: * page/PageGroup.h: * page/Performance.cpp: (WebCore::Performance::webkitGetEntriesByType): (WebCore::Performance::webkitGetEntriesByName): * page/Performance.h: * page/PerformanceEntryList.cpp: (WebCore::PerformanceEntryList::appendAll): * page/PerformanceEntryList.h: * page/SecurityOriginHash.h: * page/SecurityPolicy.cpp: * page/SpeechInputResult.h: * page/animation/AnimationController.cpp: (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle): * page/animation/AnimationControllerPrivate.h: * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * page/animation/CompositeAnimation.h: * page/scrolling/ScrollingStateNode.cpp: (WebCore::ScrollingStateNode::appendChild): * page/scrolling/ScrollingStateNode.h: (WebCore::ScrollingStateNode::children): * page/scrolling/ScrollingThread.cpp: (WebCore::ScrollingThread::dispatchFunctionsFromScrollingThread): * page/scrolling/ScrollingThread.h: * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::updateTreeFromStateNode): * page/scrolling/ScrollingTreeNode.cpp: (WebCore::ScrollingTreeNode::appendChild): * page/scrolling/ScrollingTreeNode.h: * page/scrolling/mac/ScrollingCoordinatorMac.mm: (WebCore::ScrollingCoordinatorMac::syncChildPositions): * platform/CrossThreadCopier.cpp: * platform/CrossThreadCopier.h: * platform/DragData.h: * platform/MainThreadTask.h: * platform/PODFreeListArena.h: (WebCore::PODFreeListArena::freeObject): (WebCore::PODFreeListArena::allocate): * platform/PODIntervalTree.h: * platform/PODRedBlackTree.h: (WebCore::PODRedBlackTree::PODRedBlackTree): * platform/PlatformSpeechSynthesizer.cpp: (WebCore::PlatformSpeechSynthesizer::voiceList): * platform/PlatformSpeechSynthesizer.h: * platform/RunLoop.h: * platform/ScrollView.cpp: (WebCore::ScrollView::frameRectsChanged): (WebCore::ScrollView::clipRectChanged): (WebCore::ScrollView::setParentVisible): (WebCore::ScrollView::show): (WebCore::ScrollView::hide): * platform/ScrollView.h: * platform/SharedBuffer.h: * platform/Supplementable.h: (WebCore::Supplement::provideTo): (WebCore::Supplementable::provideSupplement): * platform/URL.cpp: (WebCore::findHostnamesInMailToURL): (WebCore::encodeHostnames): * platform/audio/AudioBus.h: * platform/audio/AudioDSPKernelProcessor.h: * platform/audio/AudioResampler.h: * platform/audio/DynamicsCompressor.h: * platform/audio/DynamicsCompressorKernel.h: * platform/audio/HRTFDatabase.h: * platform/audio/HRTFKernel.h: * platform/audio/MultiChannelResampler.h: * platform/audio/Reverb.h: * platform/audio/ReverbConvolver.h: * platform/cf/SharedBufferCF.cpp: (WebCore::SharedBuffer::copyBufferAndClear): (WebCore::SharedBuffer::copySomeDataFromDataArray): * platform/graphics/FloatPolygon.cpp: (WebCore::FloatPolygon::FloatPolygon): * platform/graphics/FloatPolygon.h: * platform/graphics/FontCache.cpp: (WebCore::FontCache::getCachedFontData): (WebCore::FontCache::purgeInactiveFontData): * platform/graphics/GlyphMetricsMap.h: (WebCore::::locatePageSlowCase): * platform/graphics/GlyphPageTreeNode.h: * platform/graphics/GraphicsContext3D.h: * platform/graphics/GraphicsLayer.cpp: * platform/graphics/GraphicsLayer.h: * platform/graphics/PlatformTextTrackMenu.h: * platform/graphics/SimpleFontData.h: * platform/graphics/WidthCache.h: * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::processNewAndRemovedTextTracks): * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::processLegacyClosedCaptionsTracks): (WebCore::MediaPlayerPrivateAVFoundationObjC::processMediaSelectionOptions): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::setFilterAnimationKeyframes): (WebCore::GraphicsLayerCA::fetchCloneLayers): * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/ca/PlatformCAAnimation.h: * platform/graphics/ca/PlatformCALayer.h: * platform/graphics/ca/mac/LayerPool.h: * platform/graphics/ca/mac/PlatformCAAnimationMac.mm: (PlatformCAAnimation::setValues): * platform/graphics/ca/mac/TileController.h: * platform/graphics/cg/SubimageCacheWithTimer.h: * platform/graphics/filters/CustomFilterParameterList.h: * platform/graphics/filters/FilterEffect.h: * platform/graphics/filters/FilterOperations.h: (WebCore::FilterOperations::operations): * platform/graphics/gpu/Texture.cpp: (WebCore::Texture::Texture): (WebCore::Texture::create): * platform/graphics/gpu/Texture.h: * platform/graphics/mac/ComplexTextController.h: * platform/graphics/mac/SimpleFontDataCoreText.cpp: (WebCore::SimpleFontData::getCFStringAttributes): * platform/graphics/transforms/TransformOperations.h: (WebCore::TransformOperations::operations): * platform/ios/PasteboardIOS.mm: (WebCore::documentFragmentWithRTF): * platform/mac/PlatformSpeechSynthesizerMac.mm: (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]): * platform/mediastream/MediaStreamDescriptor.h: * platform/mediastream/MediaStreamSource.h: * platform/mediastream/RTCConfiguration.h: * platform/network/BlobRegistryImpl.h: * platform/network/HTTPHeaderMap.h: * platform/network/ResourceResponseBase.cpp: (WebCore::ResourceResponseBase::parseCacheControlDirectives): (WebCore::parseCacheHeader): * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::clientCerts): (WebCore::ResourceHandle::createCFURLConnection): * platform/text/cf/HyphenationCF.cpp: (WebCore::::createValueForNullKey): (WebCore::::createValueForKey): (WebCore::cfLocaleCache): * plugins/PluginMainThreadScheduler.h: * rendering/HitTestResult.h: * rendering/InlineFlowBox.h: * rendering/RenderBlock.cpp: (WebCore::RenderBlock::paintContinuationOutlines): (WebCore::RenderBlock::removeFromTrackedRendererMaps): * rendering/RenderBlock.h: * rendering/RenderButton.h: * rendering/RenderCounter.cpp: * rendering/RenderGrid.cpp: (WebCore::RenderGrid::GridIterator::GridIterator): * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateDescendantsAreContiguousInStackingOrder): (WebCore::RenderLayer::rebuildZOrderLists): (WebCore::RenderLayer::collectLayers): * rendering/RenderLayer.h: * rendering/RenderNamedFlowThread.cpp: (WebCore::RenderNamedFlowThread::getRanges): * rendering/RenderNamedFlowThread.h: * rendering/RenderRegion.cpp: (WebCore::RenderRegion::getRanges): * rendering/RenderRegion.h: * rendering/RenderView.cpp: (WebCore::RenderView::selectionBounds): (WebCore::RenderView::setSelection): * rendering/RootInlineBox.h: * rendering/shapes/PolygonShape.cpp: (WebCore::computeShapePaddingBounds): (WebCore::computeShapeMarginBounds): * rendering/shapes/PolygonShape.h: (WebCore::PolygonShape::PolygonShape): * rendering/shapes/Shape.cpp: (WebCore::createPolygonShape): (WebCore::Shape::createShape): * rendering/shapes/ShapeInfo.h: * rendering/shapes/ShapeInterval.h: * rendering/style/QuotesData.cpp: (WebCore::QuotesData::create): (WebCore::QuotesData::QuotesData): * rendering/style/QuotesData.h: * rendering/style/RenderStyle.cpp: (WebCore::requireTransformOrigin): (WebCore::RenderStyle::applyTransform): * rendering/style/StyleGridData.h: * rendering/svg/RenderSVGResourceGradient.h: * rendering/svg/RenderSVGResourcePattern.h: * rendering/svg/SVGResourcesCache.h: * storage/StorageEventDispatcher.cpp: (WebCore::StorageEventDispatcher::dispatchSessionStorageEvents): (WebCore::StorageEventDispatcher::dispatchLocalStorageEvents): (WebCore::StorageEventDispatcher::dispatchSessionStorageEventsToFrames): (WebCore::StorageEventDispatcher::dispatchLocalStorageEventsToFrames): * storage/StorageEventDispatcher.h: * storage/StorageNamespaceImpl.h: * storage/StorageThread.h: * storage/StorageTracker.cpp: (WebCore::StorageTracker::origins): * storage/StorageTracker.h: * svg/SVGAnimatedPath.cpp: (WebCore::SVGAnimatedPathAnimator::startAnimValAnimation): * svg/SVGAnimatedTypeAnimator.cpp: (WebCore::SVGElementAnimatedProperties::SVGElementAnimatedProperties): (WebCore::SVGAnimatedTypeAnimator::findAnimatedPropertiesForAttributeName): * svg/SVGAnimatedTypeAnimator.h: * svg/SVGDocumentExtensions.cpp: (WebCore::SVGDocumentExtensions::startAnimations): (WebCore::SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements): (WebCore::SVGDocumentExtensions::addPendingResource): (WebCore::SVGDocumentExtensions::isElementPendingResources): (WebCore::SVGDocumentExtensions::removeElementFromPendingResources): (WebCore::SVGDocumentExtensions::setOfElementsReferencingTarget): (WebCore::SVGDocumentExtensions::addElementReferencingTarget): (WebCore::SVGDocumentExtensions::rebuildAllElementReferencesForTarget): * svg/SVGDocumentExtensions.h: * svg/SVGFontElement.h: * svg/SVGGlyphMap.h: * svg/SVGMarkerElement.cpp: (WebCore::SVGMarkerElement::orientTypeAnimated): * svg/SVGMarkerElement.h: * svg/SVGPathSegList.h: * svg/animation/SMILTimeContainer.h: * svg/graphics/SVGImageCache.h: * svg/graphics/filters/SVGFilterBuilder.h: (WebCore::SVGFilterBuilder::addBuiltinEffects): * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h: (WebCore::SVGAnimatedEnumerationPropertyTearOff::create): * svg/properties/SVGAnimatedListPropertyTearOff.h: (WebCore::SVGAnimatedListPropertyTearOff::create): * svg/properties/SVGAnimatedPropertyTearOff.h: (WebCore::SVGAnimatedPropertyTearOff::create): * svg/properties/SVGAnimatedStaticPropertyTearOff.h: (WebCore::SVGAnimatedStaticPropertyTearOff::create): * svg/properties/SVGAttributeToPropertyMap.cpp: (WebCore::SVGAttributeToPropertyMap::animatedPropertiesForAttribute): * svg/properties/SVGAttributeToPropertyMap.h: * svg/properties/SVGStaticListPropertyTearOff.h: (WebCore::SVGStaticListPropertyTearOff::create): * svg/properties/SVGTransformListPropertyTearOff.h: (WebCore::SVGTransformListPropertyTearOff::create): (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix): (WebCore::SVGTransformListPropertyTearOff::consolidate): * workers/DefaultSharedWorkerRepository.h: * workers/WorkerMessagingProxy.h: * xml/XMLHttpRequestProgressEventThrottle.cpp: (WebCore::XMLHttpRequestProgressEventThrottle::dispatchDeferredEvents): * xml/XMLHttpRequestProgressEventThrottle.h: * xml/XPathNodeSet.cpp: (WebCore::XPath::NodeSet::sort): (WebCore::XPath::NodeSet::traversalSort): * xml/XSLStyleSheet.h: * xml/parser/XMLDocumentParserLibxml2.cpp: Source/WebKit/mac: * History/WebHistory.mm: (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]): * History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): * Plugins/Hosted/NetscapePluginHostProxy.h: * Plugins/Hosted/NetscapePluginInstanceProxy.h: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject): (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain): (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release): (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget): (WebKit::NetscapePluginInstanceProxy::stopAllStreams): * Plugins/WebNetscapePluginView.h: * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView destroyPlugin]): * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager origins]): * Storage/WebStorageManager.mm: (-[WebStorageManager origins]): * WebCoreSupport/WebApplicationCache.mm: (+[WebApplicationCache originsWithCache]): * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::getClientPasteboardDataForRange): (WebEditorClient::documentFragmentFromAttributedString): * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebNotificationClient.h: * WebCoreSupport/WebNotificationClient.mm: (WebNotificationClient::show): (WebNotificationClient::clearNotifications): * WebView/WebArchive.mm: (-[WebArchive initWithMainResource:subresources:subframeArchives:]): (-[WebArchive subresources]): (-[WebArchive subframeArchives]): * WebView/WebDataSource.mm: (-[WebDataSource subresources]): * WebView/WebViewData.h: Source/WebKit2: * UIProcess/mac/WebColorPickerMac.h: * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::setProcessSuppressionEnabled): Source/WTF: * wtf/AVLTree.h: * wtf/CheckedArithmetic.h: * wtf/Compression.h: * wtf/Functional.h: (WTF::R): * wtf/HashFunctions.h: * wtf/HashIterators.h: * wtf/HashSet.h: (WTF::::contains): * wtf/ListHashSet.h: (WTF::::contains): * wtf/RefCountedLeakCounter.cpp: * wtf/RetainPtr.h: * wtf/SentinelLinkedList.h: (WTF::::remove): * wtf/SizeLimits.cpp: * wtf/StreamBuffer.h: * wtf/Vector.h: * wtf/VectorTraits.h: * wtf/WeakPtr.h: (WTF::WeakReference::create): (WTF::WeakReference::createUnbound): (WTF::WeakPtr::WeakPtr): (WTF::WeakPtrFactory::WeakPtrFactory): * wtf/text/AtomicString.cpp: (WTF::AtomicString::add): (WTF::findString): * wtf/text/StringConcatenate.h: * wtf/text/StringImpl.h: * wtf/text/StringOperators.h: (WTF::operator+): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
changseok.oh@collabora.com authored
m_svgStyle of RenderStyle is guarded with the ENABLE_SVG flag. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::RenderStyle): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 Oct, 2013 1 commit
-
-
akling@apple.com authored
<https://webkit.org/b/122953> DataRef is used to hold RenderStyle substructures, and due to the way style inheritance is implemented, DataRef will always point to a live object. Codify this by making DataRef::m_data a Ref, and making all methods that create substructure objects return PassRef. Reviewed by Antti Koivisto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 06 Oct, 2013 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=122421 Reviewed by Andreas Kling. Replace uses of OwnPtr with std::unique_ptr and get rid of the ContentData::create overloads. * css/StyleResolver.cpp: (WebCore::StyleResolver::applyProperty): * rendering/style/ContentData.cpp: (WebCore::ContentData::clone): * rendering/style/ContentData.h: (WebCore::ContentData::setNext): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::appendContent): (WebCore::RenderStyle::setContent): * rendering/style/RenderStyle.h: * rendering/style/StyleRareNonInheritedData.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 29 Sep, 2013 1 commit
-
-
pdr@google.com authored
https://bugs.webkit.org/show_bug.cgi?id=122070 Reviewed by Andreas Kling. Source/WebCore: This patch fixes a regression from wkrev.com/150259 where pseudo content with borders or outlines would fail to repaint if the color property changed. The root bug is that border-color and outline-color properties use 'color' if no explicit border-color or outline-color are given, and changing color should repaint borders and outlines even if the text content is empty. Relevant spec sections: border: http://www.w3.org/TR/CSS1/#border-color outline: http://www.w3.org/TR/CSS2/ui.html#propdef-outline-color This patch also renames StyleDifferenceRepaintIfText to StyleDifferenceRepaintIfTextOrBorderOrOutline and updates the relevant functions. Test: fast/repaint/hover-pseudo-borders.html * rendering/RenderElement.cpp: (WebCore::RenderElement::hasImmediateNonWhitespaceTextChildOrBorderOrOutline): This function has been renamed to reflect that it returns true for borders or outlines as well. (WebCore::RenderElement::shouldRepaintForStyleDifference): * rendering/RenderElement.h: * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresRepaintIfTextOrBorderOrOutline): (WebCore::RenderStyle::diff): * rendering/style/RenderStyle.h: * rendering/style/RenderStyleConstants.h: * rendering/svg/SVGResourcesCache.cpp: (WebCore::SVGResourcesCache::clientStyleChanged): These have also been renamed to reflect the new borders and outlines check. LayoutTests: * fast/repaint/hover-pseudo-borders.html: Added. * platform/mac/fast/repaint/hover-pseudo-borders-expected.png: Added. * platform/mac/fast/repaint/hover-pseudo-borders-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Sep, 2013 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=121647 Reviewed by Andreas Kling. Add a move constructor and move assignment operator to Length and fixup some of the getters and setters. * css/CSSComputedStyleDeclaration.cpp: (WebCore::getBorderRadiusCornerValues): (WebCore::getBorderRadiusCornerValue): * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyLength::setValue): (WebCore::ApplyPropertyLength::createHandler): (WebCore::ApplyPropertyBorderRadius::setValue): (WebCore::ApplyPropertyBorderRadius::createHandler): (WebCore::ApplyPropertyLineHeight::createHandler): * page/animation/CSSPropertyAnimation.cpp: (WebCore::LengthPropertyWrapper::LengthPropertyWrapper): (WebCore::LengthPropertyWrapper::blend): (WebCore::FillLayerPropertyWrapper::FillLayerPropertyWrapper): (WebCore::FillLayerPropertyWrapper::blend): (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * platform/CalculationValue.h: (WebCore::CalcExpressionLength::CalcExpressionLength): (WebCore::CalcExpressionBlendLength::CalcExpressionBlendLength): * platform/Length.cpp: (WebCore::CalculationValueHandleMap::remove): (WebCore::CalculationValueHandleMap::find): (WebCore::Length::decrementCalculatedRef): * platform/Length.h: (WebCore::Length::Length): (WebCore::Length::operator=): (WebCore::Length::moveFromLength): * platform/LengthBox.cpp: (WebCore::LengthBox::logicalLeft): (WebCore::LengthBox::logicalRight): (WebCore::LengthBox::before): (WebCore::LengthBox::after): (WebCore::LengthBox::start): (WebCore::LengthBox::end): * platform/LengthBox.h: (WebCore::LengthBox::LengthBox): (WebCore::LengthBox::left): (WebCore::LengthBox::right): (WebCore::LengthBox::top): (WebCore::LengthBox::bottom): * platform/LengthSize.h: (WebCore::LengthSize::LengthSize): (WebCore::LengthSize::setWidth): (WebCore::LengthSize::width): (WebCore::LengthSize::setHeight): (WebCore::LengthSize::height): * platform/graphics/filters/FilterOperation.h: (WebCore::FilterOperation::BlurFilterOperation::create): (WebCore::FilterOperation::BlurFilterOperation::stdDeviation): (WebCore::FilterOperation::BlurFilterOperation::BlurFilterOperation): * rendering/style/BasicShapes.h: (WebCore::BasicShapeRectangle::x): (WebCore::BasicShapeRectangle::y): (WebCore::BasicShapeRectangle::width): (WebCore::BasicShapeRectangle::height): (WebCore::BasicShapeRectangle::cornerRadiusX): (WebCore::BasicShapeRectangle::cornerRadiusY): (WebCore::BasicShapeRectangle::setX): (WebCore::BasicShapeRectangle::setY): (WebCore::BasicShapeRectangle::setWidth): (WebCore::BasicShapeRectangle::setHeight): (WebCore::BasicShapeRectangle::setCornerRadiusX): (WebCore::BasicShapeRectangle::setCornerRadiusY): (WebCore::BasicShapeCircle::centerX): (WebCore::BasicShapeCircle::centerY): (WebCore::BasicShapeCircle::radius): (WebCore::BasicShapeCircle::setCenterX): (WebCore::BasicShapeCircle::setCenterY): (WebCore::BasicShapeCircle::setRadius): (WebCore::BasicShapeEllipse::centerX): (WebCore::BasicShapeEllipse::centerY): (WebCore::BasicShapeEllipse::radiusX): (WebCore::BasicShapeEllipse::radiusY): (WebCore::BasicShapeEllipse::setCenterX): (WebCore::BasicShapeEllipse::setCenterY): (WebCore::BasicShapeEllipse::setRadiusX): (WebCore::BasicShapeEllipse::setRadiusY): (WebCore::BasicShapePolygon::getXAt): (WebCore::BasicShapePolygon::getYAt): (WebCore::BasicShapePolygon::appendPoint): (WebCore::BasicShapeInsetRectangle::top): (WebCore::BasicShapeInsetRectangle::right): (WebCore::BasicShapeInsetRectangle::bottom): (WebCore::BasicShapeInsetRectangle::left): (WebCore::BasicShapeInsetRectangle::cornerRadiusX): (WebCore::BasicShapeInsetRectangle::cornerRadiusY): (WebCore::BasicShapeInsetRectangle::setTop): (WebCore::BasicShapeInsetRectangle::setRight): (WebCore::BasicShapeInsetRectangle::setBottom): (WebCore::BasicShapeInsetRectangle::setLeft): (WebCore::BasicShapeInsetRectangle::setCornerRadiusX): (WebCore::BasicShapeInsetRectangle::setCornerRadiusY): * rendering/style/FillLayer.h: (WebCore::FillSize::FillSize): (WebCore::FillLayer::xPosition): (WebCore::FillLayer::yPosition): (WebCore::FillLayer::sizeLength): (WebCore::FillLayer::setXPosition): (WebCore::FillLayer::setYPosition): * rendering/style/NinePieceImage.cpp: (WebCore::NinePieceImage::NinePieceImage): * rendering/style/NinePieceImage.h: (WebCore::NinePieceImage::setImageSlices): (WebCore::NinePieceImage::setBorderSlices): (WebCore::NinePieceImage::setOutset): (WebCore::NinePieceImage::computeOutset): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::specifiedLineHeight): * rendering/style/RenderStyle.h: * rendering/style/StyleBoxData.h: (WebCore::StyleBoxData::width): (WebCore::StyleBoxData::height): (WebCore::StyleBoxData::minWidth): (WebCore::StyleBoxData::minHeight): (WebCore::StyleBoxData::maxWidth): (WebCore::StyleBoxData::maxHeight): (WebCore::StyleBoxData::verticalAlign): * rendering/style/StyleReflection.h: (WebCore::StyleReflection::offset): (WebCore::StyleReflection::setOffset): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Sep, 2013 1 commit
-
-
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
-
- 05 Sep, 2013 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120720 Reviewed by Andreas Kling. Change AnimationList::operator[] to return an Animation& and fix up related code to also take references. * css/CSSComputedStyleDeclaration.cpp: * css/DeprecatedStyleBuilder.cpp: * page/animation/CompositeAnimation.cpp: * page/animation/KeyframeAnimation.cpp: * platform/animation/Animation.h: * platform/animation/AnimationList.cpp: * platform/animation/AnimationList.h: * rendering/RenderLayerBacking.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 03 Sep, 2013 1 commit
-
-
dbates@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=120535 Reviewed by Darin Adler. Source/WebCore: Test: fast/repaint/overflow-scroll-touch-repaint.html We want to require a layout when the value of -webkit-overflow-scrolling changes since -webkit-overflow-scrolling creates a stacking context. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): LayoutTests: Add a test to ensure we perform a layout and repaint when the value of -webkit-overflow-scrolling changes on an element. At the time of writing, the iOS port enables ACCELERATED_OVERFLOW_SCROLLING. * fast/repaint/overflow-scroll-touch-repaint-expected.txt: Added. * fast/repaint/overflow-scroll-touch-repaint.html: Added. * platform/efl/TestExpectations: Skip test fast/repaint/overflow-scroll-touch-repaint.html since this platform doesn't enable ACCELERATED_OVERFLOW_SCROLLING. * platform/gtk/TestExpectations: Ditto. * platform/mac/TestExpectations: Ditto. * platform/qt/TestExpectations: Ditto. * platform/win/TestExpectations: Ditto. * platform/wincairo/TestExpectations: Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 29 Aug, 2013 1 commit
-
-
simon.fraser@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=52040 Source/WebCore: Reviewed by Antti Koivisto, Sam Weinig. Merge object-fit patch from Blink r156535, which started as a patch by me. Since then, the spec has gone to CR. This patch is an implementation of object-fit as described in http://www.w3.org/TR/2012/CR-css3-images-20120417/#object-fit Object-fit is used to maintain the aspect ratio of replaced content within its content box. All object-fit values but the initial one ('fill') will always ensure that the aspect ratio is retained, in different ways (fit inside the content box, cover the content box, or use intrinsic size). Painting is always clipped against the content box, regardless of the 'overflow' property. Tests: fast/css/object-fit/object-fit-canvas.html fast/css/object-fit/object-fit-embed.html fast/css/object-fit/object-fit-grow-landscape.html fast/css/object-fit/object-fit-grow-portrait.html fast/css/object-fit/object-fit-img-svg.html fast/css/object-fit/object-fit-img-svg2.html fast/css/object-fit/object-fit-img.html fast/css/object-fit/object-fit-input-image.html fast/css/object-fit/object-fit-object.html fast/css/object-fit/object-fit-shrink.html fast/css/object-fit/object-fit-video-poster.html fast/css/parsing-object-fit.html http/tests/css/object-fit-delayed-img-svg.html media/video-object-fit-change.html media/video-object-fit.html * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): (WebCore::isKeywordPropertyID): (WebCore::CSSParser::parseValue): * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::operator EObjectFit): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSValueKeywords.in: * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/StyleResolver.cpp: (WebCore::StyleResolver::applyProperty): * css/html.css: (video): Set object-fit to 'contain'. This is how VIDEO elements work, apparently. * loader/cache/CachedImage.cpp: (WebCore::CachedImage::imageSizeForRenderer): * loader/cache/CachedImage.h: * platform/graphics/LayoutSize.h: (WebCore::fitLayoutSizeToAspectRatio): New function to grow or shrink in one dimension to fit to the aspect ratio. * rendering/RenderHTMLCanvas.cpp: (WebCore::RenderHTMLCanvas::paintReplaced): Apply object-fit and clip if necessary. * rendering/RenderImage.cpp: (WebCore::RenderImage::updateInnerContentRect): (WebCore::RenderImage::imageDimensionsChanged): Update intrinsic size properly, and recalculate the inner content rectangle (the exact area occupied by the replaced content) again if appropriate. (WebCore::RenderImage::paintReplaced): Apply object-fit and clip if necessary. (WebCore::RenderImage::foregroundIsKnownToBeOpaqueInRect): object-fit may leave parts of the content box empty, in which case it won't be fully obscured. (WebCore::RenderImage::layout): * rendering/RenderImage.h: * rendering/RenderImageResource.cpp: (WebCore::RenderImageResource::intrinsicSize): Need this to differentiate between intrinsic and extrinsic size for SVG images. * rendering/RenderImageResource.h: * rendering/RenderImageResourceStyleImage.h: * rendering/RenderReplaced.cpp: (WebCore::RenderReplaced::replacedContentRect): Return the rectangle occupied by the replaced content. This will be identical to the content box if object-fit is 'fill', but will typically be something else for other values. * rendering/RenderReplaced.h: * rendering/RenderVideo.cpp: (WebCore::RenderVideo::videoBox): Not much left to do here, with the new RenderReplaced::replacedContentRect() method in place. (WebCore::RenderVideo::paintReplaced): Apply object-fit and clip if necessary. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresRepaint): * rendering/style/RenderStyle.h: * rendering/style/RenderStyleConstants.h: * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: LayoutTests: Reviewed by Antti Koivisto, Sam Weinig. Tests for object-fit. * fast/css/object-fit/object-fit-canvas-expected.html: Added. * fast/css/object-fit/object-fit-canvas.html: Added. * fast/css/object-fit/object-fit-embed-expected.html: Added. * fast/css/object-fit/object-fit-embed.html: Added. * fast/css/object-fit/object-fit-grow-landscape-expected.html: Added. * fast/css/object-fit/object-fit-grow-landscape.html: Added. * fast/css/object-fit/object-fit-grow-portrait-expected.html: Added. * fast/css/object-fit/object-fit-grow-portrait.html: Added. * fast/css/object-fit/object-fit-img-expected.html: Added. * fast/css/object-fit/object-fit-img-svg-expected.html: Added. * fast/css/object-fit/object-fit-img-svg.html: Added. * fast/css/object-fit/object-fit-img-svg2-expected.html: Added. * fast/css/object-fit/object-fit-img-svg2.html: Added. * fast/css/object-fit/object-fit-img.html: Added. * fast/css/object-fit/object-fit-input-image-expected.html: Added. * fast/css/object-fit/object-fit-input-image.html: Added. * fast/css/object-fit/object-fit-object-expected.html: Added. * fast/css/object-fit/object-fit-object.html: Added. * fast/css/object-fit/object-fit-shrink-expected.html: Added. * fast/css/object-fit/object-fit-shrink.html: Added. * fast/css/object-fit/object-fit-video-poster-expected.html: Added. * fast/css/object-fit/object-fit-video-poster.html: Added. * fast/css/parsing-object-fit-expected.txt: Added. * fast/css/parsing-object-fit.html: Added. * fast/css/resources/circle.svg: Added. * fast/css/resources/circle2.svg: Added. * fast/css/resources/circles-landscape-small.png: Added. * fast/css/resources/circles-landscape.png: Added. * fast/css/resources/circles-portrait-small.png: Added. * fast/css/resources/circles-portrait.png: Added. * http/tests/css/object-fit-delayed-img-svg-expected.html: Added. * http/tests/css/object-fit-delayed-img-svg.html: Added. * media/video-object-fit-change-expected.html: Added. * media/video-object-fit-change.html: Added. * media/video-object-fit-expected.html: Added. * media/video-object-fit.html: Added. * platform/mac/TestExpectations: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Aug, 2013 1 commit
-
-
simon.fraser@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120135 Source/WebCore: Reviewed by Jer Noble. When removing a filter on an inline child of a compositing layer, the inline loses its RenderLayer and compositing layer, but we fail to repaint the compositing layer that the inline is now painting into. This worked correctly for opacity, because opacity toggles cause layouts (which then paint the correct layer), so do the same for filters. Test: css3/filters/remove-filter-repaint.html * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): Return true if we toggled between having filters and not. Drive-by cleanup, making use of new convenience function for hasOpacity(). * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::hasFilters): Returns true if we have any filters. * rendering/style/StyleRareNonInheritedData.h: (WebCore::StyleRareNonInheritedData::hasOpacity): Convenience function that returns true if opacity is < 1. LayoutTests: Reviewed by Jer Noble. Ref test for removing a filter on an inline. * css3/filters/remove-filter-repaint-expected.html: Added. * css3/filters/remove-filter-repaint.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Aug, 2013 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=119769 Reviewed by Andreas Kling. No need to waste heap memory allocating RefPtr, just store the raw pointers directly. * dom/ContextFeatures.cpp: (WebCore::ContextFeatures::defaultSwitch): * dom/DocumentMarker.cpp: (WebCore::DocumentMarkerTextMatch::instanceFor): * editing/EditingStyle.cpp: (WebCore::StyleChange::extractTextStyles): * html/FTPDirectoryDocument.cpp: (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate): * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): * html/track/TextTrack.cpp: (WebCore::TextTrack::captionMenuOffItem): (WebCore::TextTrack::captionMenuAutomaticItem): * loader/icon/IconDatabase.cpp: (WebCore::loadDefaultIconRecord): * platform/graphics/Image.cpp: (WebCore::Image::nullImage): * platform/graphics/PlatformTextTrack.h: (WebCore::PlatformTextTrack::captionMenuOffItem): (WebCore::PlatformTextTrack::captionMenuAutomaticItem): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::initialShapeInside): * testing/MockCDM.cpp: (WebCore::initDataPrefix): (WebCore::keyPrefix): (WebCore::keyRequest): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 09 Aug, 2013 1 commit
-
-
antti@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=119629 Reviewed by Sam Weinig and Andreas Kling. - Move static font size computation functions to StyleFontSizeFunctions.h/.cpp - Move StyleResolver::styleForDocument to Style::resolveForDocument * WebCore.xcodeproj/project.pbxproj: * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyFontFamily::applyInitialValue): (WebCore::ApplyPropertyFontFamily::applyValue): (WebCore::ApplyPropertyFontSize::applyInitialValue): (WebCore::ApplyPropertyFontSize::applyValue): * css/StyleResolver.cpp: (WebCore::StyleResolver::adjustRenderStyle): (WebCore::checkForOrientationChange): (WebCore::StyleResolver::applyProperty): (WebCore::StyleResolver::checkForGenericFamilyChange): (WebCore::StyleResolver::initializeFontStyle): (WebCore::StyleResolver::setFontSize): * css/StyleResolver.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): * editing/EditingStyle.cpp: (WebCore::legacyFontSizeFromCSSValue): * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::process): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::getFontAndGlyphOrientation): Moved from StyleResolver.cpp so it can be used by Style::resolveForDocument(). This depends on RenderStyle only so it is a natural member function. * rendering/style/RenderStyle.h: * rendering/svg/RenderSVGInlineText.cpp: (WebCore::RenderSVGInlineText::computeNewScaledFontForStyle): * style/StyleFontSizeFunctions.cpp: Copied from Source/WebCore/css/StyleResolver.cpp. (WebCore::Style::computedFontSizeFromSpecifiedSize): (WebCore::Style::computedFontSizeFromSpecifiedSizeForSVGInlineText): (WebCore::Style::fontSizeForKeyword): (WebCore::Style::legacyFontSizeForPixelSize): * style/StyleFontSizeFunctions.h: Added. * style/StyleResolveForDocument.cpp: Added. (WebCore::Style::resolveForDocument): * style/StyleResolveForDocument.h: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 25 Jul, 2013 1 commit
-
-
betravis@adobe.com authored
https://bugs.webkit.org/show_bug.cgi?id=117277 Reviewed by Alexandru Chiculita. This patch adds some compile guards that were missing from the RenderStyle and StyleRareNonInheritedData files. When the compile guard caused parameters to not be used, the parameters were marked using UNUSED_PARAM. * css/CSSPropertyNames.in: Inserting a line to trigger build. * rendering/RenderBlock.cpp: (WebCore::shapeInfoRequiresRelayout): (WebCore::RenderBlock::updateRegionsAndShapesBeforeChildLayout): (WebCore::RenderBlock::logicalRightFloatOffsetForLine): * rendering/RenderBox.cpp: (WebCore::isCandidateForOpaquenessTest): * rendering/RenderBox.h: * rendering/RenderObject.h: * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): (WebCore::RenderStyle::changeRequiresRepaint): * rendering/style/RenderStyle.h: * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Jul, 2013 1 commit
-
-
hyatt@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=118864 <rdar://problem/14109351> Reviewed by Dan Bernstein and Sam Weinig. Source/WebCore: This patch fixes all of the various writing-mode and pagination combinations so that the columns are painted in the correct location. The code that sets up the initial painting translation offset in the block direction and that advances that offset has been pulled into two helper functions, initialBlockOffsetForPainting and blockDeltaForPaintingNextColumn, and that code is now shared by the four call sites that need it (painting and hit testing in RenderBlock and painting and hit testing in RenderLayer). This patch also backs out the maximumScrollPosition change, since it only occurred because of incorrect sizing of the RenderView, and this sizing issue has now been corrected by ensuring that computeLogicalHeight() always makes sure you are the size of the viewport and does not shrink you to the column height. There was also a race condition that caused pagination to be incorrect if layout occurred before the html/body renderer that set the writing-mode were available. When this happened, the writing mode got propagated up to the view, but the column styles didn't get adjusted to compensate for the writing mode change. Added tests for every pagination and writing-mode combination in fast/multicol/pagination. * css/StyleResolver.cpp: (WebCore::StyleResolver::styleForDocument): (WebCore::StyleResolver::adjustRenderStyle): Move setStylesForPaginationMode into RenderStyle and make it a member function. This is necessary so that the style can be adjusted dynamically to fix the race condition mentioned above. * page/FrameView.cpp: (WebCore::FrameView::maximumScrollPosition): Back out this change since the symptom it was fixing only occurred because the logical height of the view was being set incorrectly. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::checkForPaginationLogicalHeightChange): Patch the column code that sets up the initial page height to use the pagination API's page height rather than the viewport logical height. This allows the view to still match the viewport in dimensions rather than being incorrectly sized to the column height. (WebCore::RenderBlock::initialBlockOffsetForPainting): (WebCore::RenderBlock::blockDeltaForPaintingNextColumn): Two new helper functions used to set up the block direction paint/hit testing translation. The major bug fix that occurred in this code is that the old block axis code didn't handle reversal correctly and it also used physical coordinates to try to determine the translation offset, when you really need to use logical coordinates in the original writing mode coordinate system to determine the offset. (WebCore::RenderBlock::paintColumnContents): Patched to call the new helper functions. (WebCore::ColumnRectIterator::ColumnRectIterator): (WebCore::ColumnRectIterator::adjust): (WebCore::ColumnRectIterator::update): Patched to call the new helper functions. * rendering/RenderBlock.h: Add the two new helper functions to the RenderBlock header. * rendering/RenderBox.cpp: (WebCore::RenderBox::styleDidChange): If the writing mode of the html/body propagates to the viewport and changes its writing mode, also change our column styles to match if we're in paginated mode. (WebCore::RenderBox::computeLogicalHeight): (WebCore::RenderBox::computePercentageLogicalHeight): Call the new pageOrViewLogicalHeight function on RenderView instead of RenderBox::viewLogicalHeightForPercentages (which is now removed). * rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintChildLayerIntoColumns): (WebCore::RenderLayer::hitTestChildLayerColumns): Patched to use the two new helper functions for block direction paint offset setup and advancement. * rendering/RenderView.cpp: (WebCore::RenderView::pageOrViewLogicalHeight): New helper function that does what viewLogicalHeightForPercentages used to do but also handles returning the page length for block axis column progression. Again, this is to allow the view to retain its correct size (matching the viewport). (WebCore::RenderView::viewLogicalHeight): Back out the code that made the view grow or shrink to the size of the Pagination API page length when the progression was block axis. This was the source of most of the scroll origin and scrolling issues. * rendering/RenderView.h: Add the new pageOrViewLogicalHeight() function. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::setColumnStylesFromPaginationMode): This is the old StyleResolver function for setting up the column styles. It's in RenderStyle now so that it can be called at any time to change a style rather than only at style resolution time. * rendering/style/RenderStyle.h: Declaration of the setColumnStylesFromPaginationMode function. LayoutTests: * fast/multicol/pagination: Added. * fast/multicol/pagination/BottomToTop-bt.html: Added. * fast/multicol/pagination/BottomToTop-lr.html: Added. * fast/multicol/pagination/BottomToTop-rl.html: Added. * fast/multicol/pagination/BottomToTop-tb.html: Added. * fast/multicol/pagination/LeftToRight-bt.html: Added. * fast/multicol/pagination/LeftToRight-lr.html: Added. * fast/multicol/pagination/LeftToRight-rl.html: Added. * fast/multicol/pagination/LeftToRight-tb.html: Added. * fast/multicol/pagination/RightToLeft-bt.html: Added. * fast/multicol/pagination/RightToLeft-lr.html: Added. * fast/multicol/pagination/RightToLeft-rl.html: Added. * fast/multicol/pagination/RightToLeft-tb.html: Added. * fast/multicol/pagination/TopToBottom-bt.html: Added. * fast/multicol/pagination/TopToBottom-lr.html: Added. * fast/multicol/pagination/TopToBottom-rl.html: Added. * fast/multicol/pagination/TopToBottom-tb.html: Added. * platform/mac/fast/multicol/pagination: Added. * platform/mac/fast/multicol/pagination/BottomToTop-bt-expected.png: Added. * platform/mac/fast/multicol/pagination/BottomToTop-bt-expected.txt: Added. * platform/mac/fast/multicol/pagination/BottomToTop-lr-expected.png: Added. * platform/mac/fast/multicol/pagination/BottomToTop-lr-expected.txt: Added. * platform/mac/fast/multicol/pagination/BottomToTop-rl-expected.png: Added. * platform/mac/fast/multicol/pagination/BottomToTop-rl-expected.txt: Added. * platform/mac/fast/multicol/pagination/BottomToTop-tb-expected.png: Added. * platform/mac/fast/multicol/pagination/BottomToTop-tb-expected.txt: Added. * platform/mac/fast/multicol/pagination/LeftToRight-bt-expected.png: Added. * platform/mac/fast/multicol/pagination/LeftToRight-bt-expected.txt: Added. * platform/mac/fast/multicol/pagination/LeftToRight-lr-expected.png: Added. * platform/mac/fast/multicol/pagination/LeftToRight-lr-expected.txt: Added. * platform/mac/fast/multicol/pagination/LeftToRight-rl-expected.png: Added. * platform/mac/fast/multicol/pagination/LeftToRight-rl-expected.txt: Added. * platform/mac/fast/multicol/pagination/LeftToRight-tb-expected.png: Added. * platform/mac/fast/multicol/pagination/LeftToRight-tb-expected.txt: Added. * platform/mac/fast/multicol/pagination/RightToLeft-bt-expected.png: Added. * platform/mac/fast/multicol/pagination/RightToLeft-bt-expected.txt: Added. * platform/mac/fast/multicol/pagination/RightToLeft-lr-expected.png: Added. * platform/mac/fast/multicol/pagination/RightToLeft-lr-expected.txt: Added. * platform/mac/fast/multicol/pagination/RightToLeft-rl-expected.png: Added. * platform/mac/fast/multicol/pagination/RightToLeft-rl-expected.txt: Added. * platform/mac/fast/multicol/pagination/RightToLeft-tb-expected.png: Added. * platform/mac/fast/multicol/pagination/RightToLeft-tb-expected.txt: Added. * platform/mac/fast/multicol/pagination/TopToBottom-bt-expected.png: Added. * platform/mac/fast/multicol/pagination/TopToBottom-bt-expected.txt: Added. * platform/mac/fast/multicol/pagination/TopToBottom-lr-expected.png: Added. * platform/mac/fast/multicol/pagination/TopToBottom-lr-expected.txt: Added. * platform/mac/fast/multicol/pagination/TopToBottom-rl-expected.png: Added. * platform/mac/fast/multicol/pagination/TopToBottom-rl-expected.txt: Added. * platform/mac/fast/multicol/pagination/TopToBottom-tb-expected.png: Added. * platform/mac/fast/multicol/pagination/TopToBottom-tb-expected.txt: Added. * platform/mac/fast/multicol/shrink-to-column-height-for-pagination-expected.png: * platform/mac/fast/multicol/shrink-to-column-height-for-pagination-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 16 Jun, 2013 1 commit
-
-
simon.fraser@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=116319 Source/WebCore: Reviewed by Darin Adler. The optimization added in r102952 was incorrect in the case where a style change resulted in a positioned-movement-only layout but also required a repaint; it assumed that a composited layer did not need to be repainted for a a positioned-movement-only layout. Fix by making RenderObject::setNeedsLayoutForPositionedMovement() check whether the style change requires a repaint, and calling setLayerNeedsFullRepaint() in that situation. Test: compositing/repaint/positioned-movement.html * rendering/RenderLayer.h: RepaintStatus values do not need to be bit flags. * rendering/RenderObject.cpp: (WebCore::RenderObject::setStyle): Pass the old style to setNeedsPositionedMovementLayout(). (WebCore::RenderObject::styleDidChange): Ditto. * rendering/RenderObject.h: (WebCore::RenderObject::setNeedsPositionedMovementLayout): Now takes a const RenderStyle*. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::diff): Remove a comment now that this bug is fixed. (WebCore::RenderStyle::diffRequiresRepaint): Public wrapper for changeRequiresRepaint(). That function never uses contextSensitiveProperties so we can safely ignore them. * rendering/style/RenderStyle.h: Expose a way to call changeRequiresRepaint(). LayoutTests: Reviewed by Darin Adler. Test that does a positioned-movement-only layout and dumps a layer tree with repaint rects. * compositing/repaint/positioned-movement-expected.txt: Added. * compositing/repaint/positioned-movement.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Jun, 2013 2 commits
-
-
betravis@adobe.com authored
https://bugs.webkit.org/show_bug.cgi?id=117162 Reviewed by Alexandru Chiculita. Source/WebCore: With the split between the CSS Exclusions and CSS Shapes specifications, some renaming is necessary. In general, this patch removes 'Exclusion' from any Shapes code, while organizing the rendering shapes code into a 'shapes' folder. Renames: ExclusionShape -> Shape Exclusion[Rectangle|Polygon] -> [Rectangle|Polygon]Shape Exclusion -> Shape Refactoring, no new tests. * CMakeLists.txt: * GNUmakefile.am: * GNUmakefile.list.am: * Target.pri: * WebCore.pri: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSPrimitiveValue.h: * css/DeprecatedStyleBuilder.cpp: (WebCore::ApplyPropertyShape::setValue): (WebCore::ApplyPropertyShape::applyValue): (WebCore::ApplyPropertyShape::createHandler): (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * page/animation/CSSPropertyAnimation.cpp: (WebCore::blendFunc): (WebCore::PropertyWrapperShape::PropertyWrapperShape): (WebCore::CSSPropertyAnimation::ensurePropertyMap): * rendering/LayoutState.cpp: (WebCore::LayoutState::LayoutState): * rendering/LayoutState.h: (WebCore::LayoutState::LayoutState): (WebCore::LayoutState::shapeInsideInfo): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::styleDidChange): (WebCore::RenderBlock::updateShapeInsideInfoAfterStyleChange): (WebCore::shapeInfoRequiresRelayout): (WebCore::RenderBlock::updateRegionsAndExclusionsBeforeChildLayout): (WebCore::RenderBlock::computeShapeSize): (WebCore::RenderBlock::updateRegionsAndExclusionsAfterChildLayout): (WebCore::RenderBlock::insertFloatingObject): (WebCore::RenderBlock::computeLogicalLocationForFloat): (WebCore::RenderBlock::positionNewFloats): (WebCore::RenderBlock::logicalLeftOffsetForLine): (WebCore::RenderBlock::logicalRightOffsetForLine): * rendering/RenderBlock.h: (WebCore::RenderBlock::ensureShapeInsideInfo): (WebCore::RenderBlock::shapeInsideInfo): (WebCore::RenderBlock::setShapeInsideInfo): (WebCore::RenderBlock::allowsShapeInsideInfoSharing): (WebCore::RenderBlock::xPositionForFloatIncludingMargin): (WebCore::RenderBlock::yPositionForFloatIncludingMargin): * rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlock::layoutShapeInsideInfo): (WebCore::LineWidth::LineWidth): (WebCore::LineWidth::shrinkAvailableWidthForNewFloatIfNeeded): (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): (WebCore::constructBidiRunsForLine): (WebCore::adjustLogicalLineTop): (WebCore::RenderBlock::updateLineBoundariesForShapes): (WebCore::RenderBlock::adjustLogicalLineTopAndLogicalHeightIfNeeded): (WebCore::RenderBlock::layoutRunsAndFloatsInRange): (WebCore::RenderBlock::LineBreaker::nextLineBreak): (WebCore::RenderBlock::LineBreaker::nextSegmentBreak): * rendering/RenderBox.cpp: (WebCore::RenderBox::willBeDestroyed): (WebCore::RenderBox::styleDidChange): (WebCore::RenderBox::updateShapeOutsideInfoAfterStyleChange): * rendering/RenderBox.h: (WebCore::RenderBox::shapeOutsideInfo): * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::paintOffset): * rendering/RenderView.h: (WebCore::RenderView::pushLayoutState): * rendering/shapes/PolygonShape.cpp: Renamed from Source/WebCore/rendering/ExclusionPolygon.cpp. (WebCore::leftSide): (WebCore::isReflexVertex): (WebCore::computeXIntersection): (WebCore::inwardEdgeNormal): (WebCore::outwardEdgeNormal): (WebCore::appendArc): (WebCore::snapVerticesToLayoutUnitGrid): (WebCore::computeShapePaddingBounds): (WebCore::computeShapeMarginBounds): (WebCore::PolygonShape::shapePaddingBounds): (WebCore::PolygonShape::shapeMarginBounds): (WebCore::getVertexIntersectionVertices): (WebCore::appendIntervalX): (WebCore::compareEdgeIntersectionX): (WebCore::computeXIntersections): (WebCore::computeOverlappingEdgeXProjections): (WebCore::PolygonShape::getExcludedIntervals): (WebCore::PolygonShape::getIncludedIntervals): (WebCore::firstFitRectInPolygon): (WebCore::aboveOrToTheLeft): (WebCore::PolygonShape::firstIncludedIntervalLogicalTop): * rendering/shapes/PolygonShape.h: Renamed from Source/WebCore/rendering/ExclusionPolygon.h. (WebCore::OffsetPolygonEdge::OffsetPolygonEdge): (WebCore::OffsetPolygonEdge::edgeIndex): (WebCore::OffsetPolygonEdge::basis): (WebCore::PolygonShape::PolygonShape): * rendering/shapes/RectangleShape.cpp: Renamed from Source/WebCore/rendering/ExclusionRectangle.cpp. (WebCore::ellipseXIntercept): (WebCore::ellipseYIntercept): (WebCore::FloatRoundedRect::paddingBounds): (WebCore::FloatRoundedRect::marginBounds): (WebCore::FloatRoundedRect::cornerInterceptForWidth): (WebCore::RectangleShape::shapePaddingBounds): (WebCore::RectangleShape::shapeMarginBounds): (WebCore::RectangleShape::getExcludedIntervals): (WebCore::RectangleShape::getIncludedIntervals): (WebCore::RectangleShape::firstIncludedIntervalLogicalTop): * rendering/shapes/RectangleShape.h: Renamed from Source/WebCore/rendering/ExclusionRectangle.h. (WebCore::FloatRoundedRect::FloatRoundedRect): (WebCore::FloatRoundedRect::rx): (WebCore::FloatRoundedRect::ry): (WebCore::RectangleShape::RectangleShape): * rendering/shapes/Shape.cpp: Renamed from Source/WebCore/rendering/ExclusionShape.cpp. (WebCore::createRectangleShape): (WebCore::createShapeCircle): (WebCore::createShapeEllipse): (WebCore::createPolygonShape): (WebCore::physicalRectToLogical): (WebCore::physicalPointToLogical): (WebCore::physicalSizeToLogical): (WebCore::Shape::createShape): * rendering/shapes/Shape.h: Renamed from Source/WebCore/rendering/ExclusionShape.h. (WebCore::LineSegment::LineSegment): (WebCore::Shape::~Shape): (WebCore::Shape::shapeMargin): (WebCore::Shape::shapePadding): * rendering/shapes/ShapeInfo.cpp: Renamed from Source/WebCore/rendering/ExclusionShapeInfo.cpp. (WebCore::::computedShape): (WebCore::::computeSegmentsForLine): * rendering/shapes/ShapeInfo.h: Renamed from Source/WebCore/rendering/ExclusionShapeInfo.h. (WebCore::MappedInfo::ensureInfo): (WebCore::MappedInfo::removeInfo): (WebCore::MappedInfo::info): (WebCore::MappedInfo::infoMap): (WebCore::ShapeInfo::~ShapeInfo): (WebCore::ShapeInfo::setShapeSize): (WebCore::ShapeInfo::clearSegments): (WebCore::ShapeInfo::shapeLogicalTop): (WebCore::ShapeInfo::shapeLogicalBottom): (WebCore::ShapeInfo::shapeLogicalLeft): (WebCore::ShapeInfo::shapeLogicalRight): (WebCore::ShapeInfo::shapeLogicalWidth): (WebCore::ShapeInfo::shapeLogicalHeight): (WebCore::ShapeInfo::logicalLineTop): (WebCore::ShapeInfo::logicalLineBottom): (WebCore::ShapeInfo::shapeContainingBlockHeight): (WebCore::ShapeInfo::lineOverlapsShapeBounds): (WebCore::ShapeInfo::lineWithinShapeBounds): (WebCore::ShapeInfo::dirtyShapeSize): (WebCore::ShapeInfo::shapeSizeDirty): (WebCore::ShapeInfo::owner): (WebCore::ShapeInfo::ShapeInfo): (WebCore::ShapeInfo::logicalTopOffset): (WebCore::ShapeInfo::logicalLeftOffset): * rendering/shapes/ShapeInsideInfo.cpp: Renamed from Source/WebCore/rendering/ExclusionShapeInsideInfo.cpp. (WebCore::LineSegmentRange::LineSegmentRange): (WebCore::ShapeInsideInfo::isEnabledFor): (WebCore::ShapeInsideInfo::adjustLogicalLineTop): * rendering/shapes/ShapeInsideInfo.h: Renamed from Source/WebCore/rendering/ExclusionShapeInsideInfo.h. (WebCore::LineSegmentIterator::LineSegmentIterator): (WebCore::ShapeInsideInfo::createInfo): (WebCore::ShapeInsideInfo::hasSegments): (WebCore::ShapeInsideInfo::segments): (WebCore::ShapeInsideInfo::segmentRanges): (WebCore::ShapeInsideInfo::currentSegment): (WebCore::ShapeInsideInfo::setNeedsLayout): (WebCore::ShapeInsideInfo::needsLayout): (WebCore::ShapeInsideInfo::ShapeInsideInfo): * rendering/shapes/ShapeInterval.cpp: Renamed from Source/WebCore/rendering/ExclusionInterval.cpp. (WebCore::IntervalX1Comparator::operator()): (WebCore::ShapeInterval::intersect): (WebCore::sortShapeIntervals): (WebCore::mergeShapeIntervals): (WebCore::intersectShapeIntervals): (WebCore::subtractShapeIntervals): * rendering/shapes/ShapeInterval.h: Renamed from Source/WebCore/rendering/ExclusionInterval.h. (WebCore::ShapeInterval::ShapeInterval): * rendering/shapes/ShapeOutsideInfo.cpp: Renamed from Source/WebCore/rendering/ExclusionShapeOutsideInfo.cpp. (WebCore::ShapeOutsideInfo::isEnabledFor): (WebCore::ShapeOutsideInfo::computeSegmentsForLine): * rendering/shapes/ShapeOutsideInfo.h: Renamed from Source/WebCore/rendering/ExclusionShapeOutsideInfo.h. (WebCore::ShapeOutsideInfo::shapeLogicalOffset): (WebCore::ShapeOutsideInfo::leftSegmentShapeBoundingBoxDelta): (WebCore::ShapeOutsideInfo::rightSegmentShapeBoundingBoxDelta): (WebCore::ShapeOutsideInfo::createInfo): (WebCore::ShapeOutsideInfo::ShapeOutsideInfo): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::initialShapeInside): * rendering/style/RenderStyle.h: * rendering/style/ShapeValue.h: Renamed from Source/WebCore/rendering/style/ExclusionShapeValue.h. (WebCore::ShapeValue::createShapeValue): (WebCore::ShapeValue::createOutsideValue): (WebCore::ShapeValue::createImageValue): (WebCore::ShapeValue::type): (WebCore::ShapeValue::shape): (WebCore::ShapeValue::image): (WebCore::ShapeValue::setImage): (WebCore::ShapeValue::operator==): (WebCore::ShapeValue::ShapeValue): * rendering/style/StyleRareNonInheritedData.h: Source/WebKit: Adding the WebCore/rendering/shapes directory to the include list. * CMakeLists.txt: Source/WebKit2: Adding the WebCore/rendering/shapes directory to the include list. * CMakeLists.txt: Tools: Adding the WebCore/rendering/shapes directory to the include list. * DumpRenderTree/efl/CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=117397 PerformanceTests: Renamed -webkit-region-overflow to -webkit-region-fragment according to the new working draft at http://www.w3.org/TR/2013/WD-css3-regions-20130528/#the-region-fragment-property Patch by Radu Stavila <stavila@adobe.com> on 2013-06-10 Reviewed by Alexander Pavlov. * Layout/resources/regions.css: Source/WebCore: Renamed -webkit-region-overflow to -webkit-region-fragment and webkitRegionOverflow to webkitRegionFragment according to the new working draft at http://www.w3.org/TR/2013/WD-css3-regions-20130528/#the-region-fragment-property Patch by Radu Stavila <stavila@adobe.com> on 2013-06-10 Reviewed by Alexander Pavlov. * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): (WebCore::isKeywordPropertyID): (WebCore::CSSParser::parseValue): * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::operator RegionFragment): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSValueKeywords.in: * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/StyleResolver.cpp: (WebCore::StyleResolver::applyProperty): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::hasNextPage): * rendering/RenderRegion.cpp: (WebCore::RenderRegion::overflowRectForFlowThreadPortion): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): * rendering/style/RenderStyle.h: * rendering/style/RenderStyleConstants.h: * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: LayoutTests: Renamed -webkit-region-overflow to -webkit-region-fragment and webkitRegionOverflow to webkitRegionFragment according to the new working draft at http://www.w3.org/TR/2013/WD-css3-regions-20130528/#the-region-fragment-property Patch by Radu Stavila <stavila@adobe.com> on 2013-06-10 Reviewed by Alexander Pavlov. * fast/regions/autoheight-breakafteralways-maxheight.html: * fast/regions/autoheight-breakbeforealways.html: * fast/regions/autoheight-singleregion-breakafteralways-maxheight.html: * fast/regions/autoheight-singleregion-breakafteralways.html: * fast/regions/autoheight-singleregion-breakaftermargin.html: * fast/regions/autoheight-singleregion-breakbeforealways-minheight.html: * fast/regions/autoheight-singleregion-breakbeforealways.html: * fast/regions/autoheight-singleregion-multiplebreaks.html: * fast/regions/css-regions-disabled-expected.txt: * fast/regions/region-overflow-auto-overflow-hidden.html: * fast/regions/region-overflow-auto-overflow-visible.html: * fast/regions/region-overflow-break.html: * fast/regions/regions-widows-and-orphans.html: * fast/regions/script-tests/css-regions-disabled.js: * fast/regions/script-tests/webkit-region-overflow-parsing.js: * fast/regions/webkit-region-overflow-parsing-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151394 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 05 Jun, 2013 1 commit
-
-
betravis@adobe.com authored
https://bugs.webkit.org/show_bug.cgi?id=117172 Reviewed by Alexandru Chiculita. .: Adding the CSS_SHAPES compile flag. * Source/autotools/SetupWebKitFeatures.m4: * Source/autotools/symbols.filter: * Source/cmake/WebKitFeatures.cmake: * Source/cmakeconfig.h.cmake: Source/JavaScriptCore: Adding the CSS_SHAPES compile flag. * Configurations/FeatureDefines.xcconfig: Source/WebCore: This patch adds a new compile and runtime flag for the CSS Shapes feature, which has split off from the previous CSS Exclusions and Shapes specification. The specifications are available here: http://dev.w3.org/csswg/css-exclusions/ http://dev.w3.org/csswg/css-shapes/ The changes introduce a new CSS_SHAPES compile flag, and a new cssShapesEnabled runtime flag. In general, the code changes are simple renames. Refactoring, no new tests. * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setCSSShapesEnabled): (WebCore::RuntimeEnabledFeatures::cssShapesEnabled): * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isSimpleLengthPropertyID): (WebCore::CSSParser::parseValue): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/StyleResolver.cpp: (WebCore::StyleResolver::applyProperty): (WebCore::StyleResolver::loadPendingImages): * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimation::ensurePropertyMap): * rendering/BidiRun.h: (WebCore::BidiRun::BidiRun): * rendering/ExclusionShapeInfo.cpp: * rendering/ExclusionShapeInfo.h: * rendering/ExclusionShapeInsideInfo.cpp: * rendering/ExclusionShapeInsideInfo.h: * rendering/ExclusionShapeOutsideInfo.cpp: * rendering/ExclusionShapeOutsideInfo.h: * rendering/LayoutState.cpp: (WebCore::LayoutState::LayoutState): * rendering/LayoutState.h: (WebCore::LayoutState::LayoutState): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::styleDidChange): (WebCore::exclusionInfoRequiresRelayout): (WebCore::RenderBlock::updateRegionsAndExclusionsBeforeChildLayout): (WebCore::RenderBlock::updateRegionsAndExclusionsAfterChildLayout): (WebCore::RenderBlock::insertFloatingObject): (WebCore::RenderBlock::computeLogicalLocationForFloat): (WebCore::RenderBlock::positionNewFloats): (WebCore::::collectIfNeeded): (WebCore::RenderBlock::logicalLeftOffsetForLine): (WebCore::RenderBlock::logicalRightOffsetForLine): * rendering/RenderBlock.h: (WebCore::RenderBlock::xPositionForFloatIncludingMargin): (WebCore::RenderBlock::yPositionForFloatIncludingMargin): (WebCore::RenderBlock::FloatIntervalSearchAdapter::FloatIntervalSearchAdapter): * rendering/RenderBlockLineLayout.cpp: (WebCore::LineWidth::LineWidth): (WebCore::LineWidth::updateAvailableWidth): (WebCore::LineWidth::shrinkAvailableWidthForNewFloatIfNeeded): (WebCore::RenderBlock::constructLine): (WebCore::computeExpansionForJustifiedText): (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): (WebCore::RenderBlock::computeInlineDirectionPositionsForSegment): (WebCore::constructBidiRunsForLine): (WebCore::RenderBlock::layoutRunsAndFloatsInRange): (WebCore::RenderBlock::LineBreaker::nextLineBreak): (WebCore::RenderBlock::LineBreaker::nextSegmentBreak): * rendering/RenderBox.cpp: (WebCore::RenderBox::willBeDestroyed): (WebCore::RenderBox::styleDidChange): * rendering/RenderBox.h: * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::paintOffset): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::shouldBeNormalFlowOnly): * rendering/RenderObject.h: (WebCore::RenderObject::hasPaintOffset): * rendering/RenderView.h: (WebCore::RenderView::pushLayoutState): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): * rendering/style/RenderStyle.h: * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): (WebCore::InternalSettings::Backup::restoreTo): (WebCore::InternalSettings::setCSSShapesEnabled): Source/WebKit/blackberry: Adding the CSS_SHAPES compile flag. * WebCoreSupport/AboutDataEnableFeatures.in: Source/WebKit/mac: Adding the CSS_SHAPES compile flag. * Configurations/FeatureDefines.xcconfig: Source/WebKit2: Adding the CSS_SHAPES compile flag. * Configurations/FeatureDefines.xcconfig: Tools: Adding the CSS_SHAPES compile flag. * Scripts/webkitperl/FeatureList.pm: * qmake/mkspecs/features/features.pri: WebKitLibraries: Adding the CSS_SHAPES compile flag. * win/tools32/vsprops/FeatureDefines.vsprops: * win/tools32/vsprops/FeatureDefinesCairo.vsprops: LayoutTests: Adjusting the shape inside tests to use the new setCSSShapesEnabled method, rather than the older setCSSExclusionsEnabled method. * fast/exclusions/css-exclusions-disabled.html: * fast/exclusions/parsing/script-tests/parsing-shape-inside.js: * fast/exclusions/parsing/script-tests/parsing-shape-lengths.js: * fast/exclusions/parsing/script-tests/parsing-shape-margin.js: * fast/exclusions/parsing/script-tests/parsing-shape-outside.js: * fast/exclusions/parsing/script-tests/parsing-shape-padding.js: * fast/exclusions/resources/multi-segment-polygon.js: (generatePolygon): * fast/exclusions/resources/simple-polygon.js: * fast/exclusions/resources/simple-rectangle.js: * fast/exclusions/shape-inside/shape-inside-animation.html: * fast/exclusions/shape-inside/shape-inside-bottom-edge.html: * fast/exclusions/shape-inside/shape-inside-box-sizing.html: * fast/exclusions/shape-inside/shape-inside-circle-padding.html: * fast/exclusions/shape-inside/shape-inside-circle.html: * fast/exclusions/shape-inside/shape-inside-coincident-vertices-expected.html: * fast/exclusions/shape-inside/shape-inside-coincident-vertices.html: * fast/exclusions/shape-inside/shape-inside-collinear-vertices-expected.html: * fast/exclusions/shape-inside/shape-inside-collinear-vertices.html: * fast/exclusions/shape-inside/shape-inside-counterclockwise-polygon-expected.html: * fast/exclusions/shape-inside/shape-inside-counterclockwise-polygon.html: * fast/exclusions/shape-inside/shape-inside-dynamic-nested-expected.html: * fast/exclusions/shape-inside/shape-inside-dynamic-nested.html: * fast/exclusions/shape-inside/shape-inside-dynamic-shape.html: * fast/exclusions/shape-inside/shape-inside-dynamic-text.html: * fast/exclusions/shape-inside/shape-inside-ellipse-padding.html: * fast/exclusions/shape-inside/shape-inside-ellipse.html: * fast/exclusions/shape-inside/shape-inside-empty-expected.html: * fast/exclusions/shape-inside/shape-inside-empty.html: * fast/exclusions/shape-inside/shape-inside-first-fit-001.html: * fast/exclusions/shape-inside/shape-inside-first-fit-002.html: * fast/exclusions/shape-inside/shape-inside-first-fit-003.html: * fast/exclusions/shape-inside/shape-inside-first-fit-004-expected.html: * fast/exclusions/shape-inside/shape-inside-first-fit-004.html: * fast/exclusions/shape-inside/shape-inside-first-fit-reflex.html: * fast/exclusions/shape-inside/shape-inside-inline-elements.html: * fast/exclusions/shape-inside/shape-inside-multiple-blocks-vertical.html: * fast/exclusions/shape-inside/shape-inside-multiple-blocks.html: * fast/exclusions/shape-inside/shape-inside-on-nested-container-with-unresolved-height.html: * fast/exclusions/shape-inside/shape-inside-overflow-fixed-dimensions.html: * fast/exclusions/shape-inside/shape-inside-overflow.html: * fast/exclusions/shape-inside/shape-inside-partial-fill-001.html: * fast/exclusions/shape-inside/shape-inside-partial-fill-002.html: * fast/exclusions/shape-inside/shape-inside-percentage-auto.html: * fast/exclusions/shape-inside/shape-inside-percentage.html: * fast/exclusions/shape-inside/shape-inside-polygon-layout.html: * fast/exclusions/shape-inside/shape-inside-polygon-padding-001.html: * fast/exclusions/shape-inside/shape-inside-polygon-padding-002.html: * fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html: * fast/exclusions/shape-inside/shape-inside-polygon-rectangle.html: * fast/exclusions/shape-inside/shape-inside-polygon-zoom.html: * fast/exclusions/shape-inside/shape-inside-rectangle-padding.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-001-expected.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-001.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-002-expected.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-002.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-003-expected.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-003.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-004-expected.html: * fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-004.html: * fast/exclusions/shape-inside/shape-inside-regular-polygon16-expected.html: * fast/exclusions/shape-inside/shape-inside-regular-polygon16.html: * fast/exclusions/shape-inside/shape-inside-regular-polygon8-expected.html: * fast/exclusions/shape-inside/shape-inside-regular-polygon8.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-001.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-fit-001-expected.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-fit-001.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-fit-002-expected.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-fit-002.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-fit-003-expected.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-fit-003.html: * fast/exclusions/shape-inside/shape-inside-rounded-rectangle-padding.html: * fast/exclusions/shape-inside/shape-inside-shape-logical-top.html: * fast/exclusions/shape-inside/shape-inside-sibling-block-dimension-change-needs-relayout-expected.html: * fast/exclusions/shape-inside/shape-inside-sibling-block-dimension-change-needs-relayout.html: * fast/exclusions/shape-inside/shape-inside-text.html: * fast/exclusions/shape-inside/shape-inside-vertical-text.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-ellipse-margin-bottom.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-left-margin-polygon.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-margin-is-ignored.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-non-zero-y.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-overflow-hidden.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-overhang.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-positioning.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-right-margin-polygon.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-circle.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-ellipse.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-inset-rectangle-percentage.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-inset-rectangle.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-polygon.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-rectangle-horizontal-multiple.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-rectangle-percentage.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-rectangle.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-rounded-inset-rectangle.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-rounded-rectangle-001.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-rounded-rectangle-002.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-simple-rounded-rectangle-003.html: * fast/exclusions/shape-outside-floats/shape-outside-floats-stacked.html: * fast/regions/shape-inside/shape-inside-on-additional-regions.html: * fast/regions/shape-inside/shape-inside-on-first-region-block-content.html: * fast/regions/shape-inside/shape-inside-on-first-region-inline-content-expected.html: * fast/regions/shape-inside/shape-inside-on-first-region-inline-content.html: * fast/regions/shape-inside/shape-inside-on-regions-block-content-basic-overflow-shape-top-offset.html: * fast/regions/shape-inside/shape-inside-on-regions-block-content-overflow-multiple-shapes.html: * fast/regions/shape-inside/shape-inside-on-regions-expected.html: * fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html: * fast/regions/shape-inside/shape-inside-on-regions-inline-content-overflow-multiple-shapes.html: * fast/regions/shape-inside/shape-inside-on-regions-inline-content.html: * fast/regions/shape-inside/shape-inside-on-regions.html: * fast/regions/shape-inside/shape-inside-on-second-region-block-content.html: * fast/regions/shape-inside/shape-inside-on-second-region-inline-content.html: * fast/regions/shape-inside/shape-inside-recursive-layout.html: * fast/regions/shape-inside/shape-inside-with-region-borders.html: * fast/regions/shape-inside/shape-inside-with-region-padding.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 May, 2013 1 commit
-
-
simon.fraser@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=116397 Reviewed by Andreas Kling. RenderStyle::diff() was prone to being changed incorrectly, since there was a poorly documented ordering requirement: style changes that cause layout have to be detected before those that cause only repainting. In addition, the existing code made it impossible to separately ask whether a given style change requires a repaint, if we've already detected that it requires a positioned-movement-only layout. Fix by factoring the code into member functions that check for each type of style change. No behavior change. * rendering/style/RenderStyle.cpp: (WebCore::positionChangeIsMovementOnly): (WebCore::RenderStyle::changeRequiresLayout): (WebCore::RenderStyle::changeRequiresPositionedLayoutOnly): (WebCore::RenderStyle::changeRequiresLayerRepaint): (WebCore::RenderStyle::changeRequiresRepaint): (WebCore::RenderStyle::changeRequiresRepaintIfText): (WebCore::RenderStyle::changeRequiresRecompositeLayer): (WebCore::RenderStyle::diff): * rendering/style/RenderStyle.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 May, 2013 2 commits
-
-
akling@apple.com authored
<http://webkit.org/b/116344> Reviewed by Darin Adler. Teach RenderStyle::diff() to ignore differences in the outline value if both styles have non-visible outlines. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::diff): * rendering/style/StyleBackgroundData.cpp: (WebCore::StyleBackgroundData::isEquivalentForPainting): * rendering/style/StyleBackgroundData.h: (StyleBackgroundData): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
akling@apple.com authored
<http://webkit.org/b/116250> Reviewed by Antti Koivisto. Add a new StyleDifferenceRepaintIfText value to the repertoire of RenderStyle::diff(). This result means that the renderer only needs to repaint if one of its immediate children contains text. This lets us avoid repainting the same pixels when hovering over constructs like: <style> a { text-decoration: none; } a:hover { text-decoration: underline; } </style> <a href="http://is.gd/andersca"> <img src="cool-hat.jpg"> </a> Since the change in text-decoration has no effect on the rendering of the <img> element, we'll now be smart enough to avoid repainting it. * rendering/style/RenderStyleConstants.h: * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::diff): Move checking of text-only properties until the very end, and return StyleDifferenceRepaintIfText in case a difference is found, giving precedence to StyleDifferenceRepaint. * rendering/RenderObject.h: * rendering/RenderObject.cpp: (WebCore::RenderObject::hasImmediateNonWhitespaceTextChild): Helper to check if a RenderObject has at least one RenderText child containing more than just collapsible whitespace. (WebCore::RenderObject::shouldRepaintForStyleDifference): Helper to check if a StyleDifference is either ...Repaint or ...RepaintIfText and the renderer has an immediate text child. (WebCore::RenderObject::styleWillChange): (WebCore::RenderObject::setStyle): Don't repaint for StyleDifferenceRepaintIfText unless hasImmediateNonWhitespaceTextChild(). * rendering/RenderBox.cpp: (WebCore::RenderBox::styleDidChange): * rendering/svg/SVGResourcesCache.cpp: (WebCore::SVGResourcesCache::clientStyleChanged): Tweak for new StyleDifference enum value. * rendering/RenderText.h: * rendering/RenderText.cpp: (WebCore::RenderText::isAllCollapsibleWhitespace): Made this const. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 07 May, 2013 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=115765 Reviewed by Andreas Kling. Change QuotesData to be an immutable object and fix other things that are broken. * css/StyleResolver.cpp: (WebCore::StyleResolver::applyProperty): QuotesData::addPair is gone. Instead, create the Vector up front and pass it to QuotesData. * rendering/RenderQuote.cpp: (WebCore::RenderQuote::originalText): Update for renames. * rendering/style/QuotesData.cpp: (WebCore::QuotesData::create): Remove the create overload that wasn't used. Add a new create overload that takes a Vector. (WebCore::QuotesData::openQuote): Rename this from getOpenQuote and clean it up. (WebCore::QuotesData::closeQuote): Rename this from getCloseQuote and clean it up. (WebCore::operator==): Replace the equals member function with a proper equality operator. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::diff): Stop calling QuotesData::equals. Use the same idiom as used for other properties. (WebCore::RenderStyle::setQuotes): * rendering/style/StyleRareInheritedData.cpp: Use operator==. (WebCore::quotesDataEquivalent): Add helper function. (WebCore::StyleRareInheritedData::operator==): Call quotesDataEquivalent. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Apr, 2013 1 commit
-
-
benjamin@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=114931 Reviewed by Andreas Kling. .: * Source/autotools/symbols.filter: Source/JavaScriptCore: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreExports.def: * JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExports.def.in: Source/WebCore: The Memory Instrumentation code is unfinished and has already become out of sync the objects it is supposed to represent. The current approach does not seem maintainable, it is better to remove it before someone gets hurt. By removing the code, the binary become 1240976 bytes smaller. Yep, almost 1 Mb, bringing WebCore to the size it has 5 months ago :) * MostWebCoreFiles: remove the support for memory instrumentation. Source/WebKit: * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Source/WebKit/mac: * WebView/WebRenderLayer.mm: Source/WebKit/win: * WebKit.vcproj/WebKitExports.def.in: Source/WTF: On Mac x86_64, the code removal cause the binary to be 9224 bytes smaller. * GNUmakefile.list.am: * WTF.pro: * WTF.vcproj/WTF.vcproj: * WTF.vcxproj/WTF.vcxproj: * WTF.vcxproj/WTF.vcxproj.filters: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Forward.h: * wtf/ListHashSet.h: (ListHashSet): (ListHashSetNodeAllocator): (WTF::ListHashSetNodeAllocator::pool): (WTF::ListHashSetNodeAllocator::pastPool): * wtf/MemoryInstrumentation.cpp: Removed. * wtf/MemoryInstrumentation.h: Removed. * wtf/MemoryInstrumentationArrayBufferView.h: Removed. * wtf/MemoryInstrumentationHashCountedSet.h: Removed. * wtf/MemoryInstrumentationHashMap.h: Removed. * wtf/MemoryInstrumentationHashSet.h: Removed. * wtf/MemoryInstrumentationListHashSet.h: Removed. * wtf/MemoryInstrumentationSequence.h: Removed. * wtf/MemoryInstrumentationString.h: Removed. * wtf/MemoryInstrumentationVector.h: Removed. * wtf/MemoryObjectInfo.h: Removed. * wtf/text/AtomicString.h: * wtf/text/StringImpl.h: (WTF::StringImpl::isASCIILiteral): * wtf/text/WTFString.h: Tools: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp: Removed. LayoutTests: * inspector/profiler/memory-instrumentation-cached-images-expected.txt: Removed. * inspector/profiler/memory-instrumentation-cached-images.html: Removed. * inspector/profiler/memory-instrumentation-canvas-expected.txt: Removed. * inspector/profiler/memory-instrumentation-canvas.html: Removed. * inspector/profiler/memory-instrumentation-external-array-expected.txt: Removed. * inspector/profiler/memory-instrumentation-external-array.html: Removed. * inspector/profiler/memory-instrumentation-external-string-expected.txt: Removed. * inspector/profiler/memory-instrumentation-external-string.html: Removed. * inspector/profiler/memory-instrumentation-test.js: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-