2010-09-20 Vangelis Kokkevis Reviewed by James Robinson. [chromium] Making destructors of LayerChromium and ContentLayerChromium virtual so that the derived class' destructor code gets called. https://bugs.webkit.org/show_bug.cgi?id=46139 * platform/graphics/chromium/ContentLayerChromium.h: * platform/graphics/chromium/LayerChromium.h: 2010-09-20 Darin Adler Reviewed by James Robinson. Deprecate the inputType function on HTMLInputElement https://bugs.webkit.org/show_bug.cgi?id=46023 * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::HTMLInputElement): Use m_deprecatedTypeNumber. (WebCore::HTMLInputElement::isValidValue): Use deprecatedInputType. (WebCore::HTMLInputElement::typeMismatch): Ditto. (WebCore::HTMLInputElement::valueMissing): Ditto. (WebCore::HTMLInputElement::rangeUnderflow): Ditto. (WebCore::HTMLInputElement::rangeOverflow): Ditto. (WebCore::HTMLInputElement::minimum): Ditto. (WebCore::HTMLInputElement::maximum): Ditto. (WebCore::HTMLInputElement::stepBase): Ditto. (WebCore::HTMLInputElement::stepMismatch): Ditto. (WebCore::HTMLInputElement::getStepParameters): Ditto. (WebCore::HTMLInputElement::getAllowedValueStep): Ditto. (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto. (WebCore::HTMLInputElement::shouldUseInputMethod): Ditto. (WebCore::HTMLInputElement::handleBlurEvent): Ditto. (WebCore::HTMLInputElement::setType): Added a comment. (WebCore::HTMLInputElement::updateType): Replaced the setInputType function with this. The type is always the type attribute value, so there is no value in passing the type string in, and this is an internal implementation detail, not a public function. (WebCore::createFormControlTypes): Use deprecatedNumberOfTypes. (WebCore::HTMLInputElement::formControlType): Use deprecatedInputType. (WebCore::HTMLInputElement::saveFormControlState): Ditto. (WebCore::HTMLInputElement::restoreFormControlState): Ditto. (WebCore::HTMLInputElement::accessKeyAction): Ditto. (WebCore::HTMLInputElement::mapToEntry): Ditto. (WebCore::HTMLInputElement::parseMappedAttribute): Ditto. (WebCore::HTMLInputElement::rendererIsNeeded): Ditto. (WebCore::HTMLInputElement::createRenderer): Ditto. (WebCore::HTMLInputElement::attach): Ditto. (WebCore::HTMLInputElement::isSuccessfulSubmitButton): Ditto. (WebCore::HTMLInputElement::appendFormData): Ditto. (WebCore::HTMLInputElement::isTextField): Ditto. (WebCore::HTMLInputElement::isTextType): Ditto. (WebCore::HTMLInputElement::setChecked): Ditto. (WebCore::HTMLInputElement::value): Ditto. (WebCore::HTMLInputElement::valueWithDefault): Ditto. (WebCore::HTMLInputElement::setSuggestedValue): Ditto. (WebCore::HTMLInputElement::setValue): Ditto. (WebCore::HTMLInputElement::parseToDouble): Ditto. (WebCore::HTMLInputElement::valueAsDate): Ditto. (WebCore::HTMLInputElement::setValueAsDate): Ditto. (WebCore::HTMLInputElement::valueAsNumber): Ditto. (WebCore::HTMLInputElement::setValueAsNumber): Ditto. (WebCore::HTMLInputElement::serializeForDateTimeTypes): Ditto. (WebCore::HTMLInputElement::serialize): Ditto. (WebCore::HTMLInputElement::setValueFromRenderer): Ditto. (WebCore::HTMLInputElement::storesValueSeparateFromAttribute): Ditto. (WebCore::HTMLInputElement::preDispatchEventHandler): Ditto. (WebCore::HTMLInputElement::postDispatchEventHandler): Ditto. (WebCore::HTMLInputElement::defaultEventHandler): Ditto. (WebCore::HTMLInputElement::handleBeforeTextInsertedEvent): Ditto. (WebCore::HTMLInputElement::files): Ditto. (WebCore::HTMLInputElement::isAcceptableValue): Ditto. (WebCore::HTMLInputElement::sanitizeValue): Ditto. (WebCore::HTMLInputElement::hasUnacceptableValue): Ditto. (WebCore::HTMLInputElement::needsActivationCallback): Ditto. (WebCore::HTMLInputElement::isRequiredFormControl): Ditto. (WebCore::HTMLInputElement::recalcWillValidate): Ditto. (WebCore::HTMLInputElement::parseToDateComponents): Ditto. (WebCore::HTMLInputElement::dataList): Ditto. (WebCore::HTMLInputElement::isSpeechEnabled): Ditto. * html/HTMLInputElement.h: Renamed InputType to DeprecatedInputType since it should not be used outside this class. Renamed numberOfTypes to dprecatedNumberOfTypes for the same reason. Changed all code to use deprecatedInputType function instead of m_type. Renamed inputType function to deprecatedInputType. Replaced public setInputType function with private updateType function. Renamed m_type data member to m_deprecatedTypeNumber. * rendering/MediaControlElements.cpp: (WebCore::MediaControlInputElement::MediaControlInputElement): * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::updateFromElement): Use setType instead of setInputType. 2010-09-20 Mihai Parparita Unreviewed; an attempt to fix Windows build. * WebCore.vcproj/WebCore.vcproj: 2010-09-20 Simon Fraser Reviewed by Dan Bernstein. When PDF image is directly composited, it does not display https://bugs.webkit.org/show_bug.cgi?id=46144 In the "direct image compositing" code path, we set the image directly as the contents of the GraphicsLayer. However, this only works with bitmap images, so we have to check that the image is a bitmap image. Test: compositing/images/direct-pdf-image.html * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::isDirectlyCompositedImage): 2010-09-20 Simon Fraser Reviewed by Darin Adler. Crash when div with content set to image gets composited (Vimeo). https://bugs.webkit.org/show_bug.cgi?id=46140 When CSS specifies that the content of an element is an image, we make a RenderImage, and setStyle() before setting the image resource. In this case the compositing code can attempt to access the cached image, which would crash with a null deref. Fix by null-checking m_imageResource. Test: compositing/images/content-image.html * rendering/RenderImage.h: (WebCore::RenderImage::cachedImage): 2010-09-20 Mihai Parparita Reviewed by Dimitri Glazkov. Hashchange event is no longer a simple event, needs to be its own interface https://bugs.webkit.org/show_bug.cgi?id=36335 Add HashChangeEvent.idl and supporting files/changes. Test: fast/loader/hashchange-event-properties.html The original version of this patch was written by Steven Lai . * CMakeLists.txt: * DerivedSources.cpp: * DerivedSources.make: * GNUmakefile.am: * WebCore.gypi: * WebCore.pri: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSEventCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8EventCustom.cpp: (WebCore::toV8): * dom/Document.cpp: (WebCore::Document::enqueueHashchangeEvent): * dom/Event.cpp: (WebCore::Event::isHashChangeEvent): * dom/Event.h: * dom/HashChangeEvent.h: Added. (WebCore::HashChangeEvent::isHashChangeEvent): (WebCore::HashChangeEvent::create): (WebCore::HashChangeEvent::initHashChangeEvent): (WebCore::HashChangeEvent::oldURL): (WebCore::HashChangeEvent::newURL): (WebCore::HashChangeEvent::HashChangeEvent): * dom/HashChangeEvent.idl: Added. * page/DOMWindow.idl: 2010-09-20 Andy Estes Reviewed by Adam Barth. REGRESSION (HTML5 Parser): Pages broken due to parsing changes https://bugs.webkit.org/show_bug.cgi?id=40961 Add an optional quirk to the HTML5 tokenizer that reverts it to WebKit's legacy behavior when the start of a new token is encountered before the current token is finished parsing. The legacy behavior is to emit the current token as if it were properly closed and being parsing the new token. Test: fast/parser/pre-html5-parser-quirks.html * html/parser/HTMLDocumentParser.cpp: (WebCore::HTMLDocumentParser::HTMLDocumentParser): Instantiate m_tokenizer with the value of Settings::usePreHTML5ParserQuirks(). (WebCore::usePreHTMLParserQuirks): Add a helper function to return the value of Settings::usePreHTML5ParserQuirks() if Settings is non-NULL. * html/parser/HTMLPreloadScanner.cpp: (WebCore::HTMLPreloadScanner::HTMLPreloadScanner): Instantiate m_tokenizer with the value of Settings::usePreHTML5ParserQuirks(). * html/parser/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::HTMLTokenizer): (WebCore::HTMLTokenizer::nextToken): If the quirk is enabled and an unexpected '<' is encountered in certain states, emit the current token and reprocess the '<' as the start of a new token. * html/parser/HTMLTokenizer.h: (WebCore::HTMLTokenizer::create): * html/parser/HTMLViewSourceParser.cpp: (WebCore::HTMLViewSourceParser::HTMLViewSourceParser): Instantiate m_tokenizer with the value of Settings::usePreHTML5ParserQuirks(). * page/Settings.cpp: (WebCore::Settings::Settings): * page/Settings.h: (WebCore::Settings::setUsePreHTML5ParserQuirks): (WebCore::Settings::usePreHTML5ParserQuirks): 2010-09-20 David Hyatt Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=46132, add an isVerticalBlockFlow() method to RenderStyle and patch callers so that they don't have to check both top-to-bottom and bottom-to-top block flow. * rendering/RenderBox.cpp: (WebCore::RenderBox::availableLogicalWidth): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::logicalWidth): (WebCore::RenderStyle::logicalHeight): (WebCore::RenderStyle::logicalMinWidth): (WebCore::RenderStyle::logicalMaxWidth): (WebCore::RenderStyle::logicalMinHeight): (WebCore::RenderStyle::logicalMaxHeight): (WebCore::RenderStyle::borderStartWidth): (WebCore::RenderStyle::borderEndWidth): (WebCore::RenderStyle::marginStart): (WebCore::RenderStyle::marginEnd): (WebCore::RenderStyle::paddingStart): (WebCore::RenderStyle::paddingEnd): * rendering/style/RenderStyle.h: (WebCore::InheritedFlags::isVerticalBlockFlow): 2010-09-20 David Hyatt Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=46124, add support for logical padding accessors to RenderBoxModelObject. Added fast/blockflow/percentage-padding.html even though it fails, so that when more of layout is patched we can see it start passing. * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::paddingTop): (WebCore::RenderBoxModelObject::paddingBottom): (WebCore::RenderBoxModelObject::paddingLeft): (WebCore::RenderBoxModelObject::paddingRight): (WebCore::RenderBoxModelObject::paddingBefore): (WebCore::RenderBoxModelObject::paddingAfter): (WebCore::RenderBoxModelObject::paddingStart): (WebCore::RenderBoxModelObject::paddingEnd): * rendering/RenderBoxModelObject.h: 2010-09-20 David Hyatt Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=46126, add availableLogicalWidth() to RenderBox. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::availableWidth): (WebCore::RenderBlock::availableLogicalWidth): * rendering/RenderBlock.h: * rendering/RenderBox.cpp: (WebCore::RenderBox::availableLogicalWidth): * rendering/RenderBox.h: (WebCore::RenderBox::availableWidth): 2010-09-20 Kenneth Russell Reviewed by James Robinson. [chromium] Change compositor to use GraphicsContext3D rather than GLES2Context https://bugs.webkit.org/show_bug.cgi?id=45912 Switched Chromium's compositor to use GraphicsContext3D to issue its OpenGL rendering calls rather than the Chromium-specific GLES2Context and command buffer OpenGL implementation. The in-process software rendering path for GraphicsContext3D does not yet work with the compositor, at least not on Mac OS X. This will be worked on in subsequent bugs. Tested manually with 3D CSS, WebGL and video content on Mac OS X and Linux. No new tests. * platform/graphics/chromium/Canvas2DLayerChromium.cpp: (WebCore::Canvas2DLayerChromium::~Canvas2DLayerChromium): (WebCore::Canvas2DLayerChromium::updateContents): * platform/graphics/chromium/CanvasLayerChromium.cpp: (WebCore::CanvasLayerChromium::SharedValues::SharedValues): (WebCore::CanvasLayerChromium::SharedValues::~SharedValues): (WebCore::CanvasLayerChromium::draw): * platform/graphics/chromium/CanvasLayerChromium.h: * platform/graphics/chromium/ContentLayerChromium.cpp: (WebCore::ContentLayerChromium::SharedValues::SharedValues): (WebCore::ContentLayerChromium::SharedValues::~SharedValues): (WebCore::ContentLayerChromium::~ContentLayerChromium): (WebCore::ContentLayerChromium::updateTextureRect): (WebCore::ContentLayerChromium::draw): * platform/graphics/chromium/ContentLayerChromium.h: * platform/graphics/chromium/DrawingBufferChromium.cpp: (WebCore::DrawingBuffer::publishToPlatformLayer): * platform/graphics/chromium/LayerChromium.cpp: (WebCore::loadShader): (WebCore::LayerChromium::SharedValues::SharedValues): (WebCore::LayerChromium::SharedValues::~SharedValues): (WebCore::LayerChromium::createShaderProgram): (WebCore::LayerChromium::layerRendererContext): (WebCore::LayerChromium::drawTexturedQuad): (WebCore::LayerChromium::drawDebugBorder): (WebCore::LayerChromium::drawAsMask): (WebCore::LayerChromium::prepareForDraw): * platform/graphics/chromium/LayerChromium.h: (WebCore::LayerChromium::SharedValues::context): * platform/graphics/chromium/LayerRendererChromium.cpp: (WebCore::LayerRendererChromium::create): (WebCore::LayerRendererChromium::LayerRendererChromium): (WebCore::LayerRendererChromium::context): (WebCore::LayerRendererChromium::debugGLCall): (WebCore::LayerRendererChromium::useShader): (WebCore::LayerRendererChromium::prepareToDrawLayers): (WebCore::LayerRendererChromium::updateRootLayerTextureRect): (WebCore::LayerRendererChromium::drawLayers): (WebCore::LayerRendererChromium::finish): (WebCore::LayerRendererChromium::present): (WebCore::LayerRendererChromium::getFramebufferPixels): (WebCore::LayerRendererChromium::createLayerTexture): (WebCore::LayerRendererChromium::drawLayerIntoStencilBuffer): (WebCore::LayerRendererChromium::drawLayersRecursive): (WebCore::LayerRendererChromium::drawLayer): (WebCore::LayerRendererChromium::scissorToRect): (WebCore::LayerRendererChromium::makeContextCurrent): (WebCore::LayerRendererChromium::resizeOnscreenContent): (WebCore::LayerRendererChromium::initializeSharedObjects): (WebCore::LayerRendererChromium::cleanupSharedObjects): * platform/graphics/chromium/LayerRendererChromium.h: * platform/graphics/chromium/VideoLayerChromium.cpp: (WebCore::VideoLayerChromium::createTextureRect): (WebCore::VideoLayerChromium::updateTextureRect): * platform/graphics/chromium/WebGLLayerChromium.cpp: (WebCore::WebGLLayerChromium::updateContents): * platform/graphics/gpu/SharedGraphicsContext3D.cpp: (WebCore::SharedGraphicsContext3D::flush): (WebCore::SharedGraphicsContext3D::supportsCopyTextureToParentTextureCHROMIUM): (WebCore::SharedGraphicsContext3D::copyTextureToParentTextureCHROMIUM): * platform/graphics/gpu/SharedGraphicsContext3D.h: 2010-09-20 David Hyatt Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=46119, add logical accessors to RenderStyle. Not used by any RenderObjects yet, so no tests until then. * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::logicalWidth): (WebCore::RenderStyle::logicalHeight): (WebCore::RenderStyle::logicalMinWidth): (WebCore::RenderStyle::logicalMaxWidth): (WebCore::RenderStyle::logicalMinHeight): (WebCore::RenderStyle::logicalMaxHeight): (WebCore::RenderStyle::borderBeforeWidth): (WebCore::RenderStyle::borderAfterWidth): (WebCore::RenderStyle::borderStartWidth): (WebCore::RenderStyle::borderEndWidth): (WebCore::RenderStyle::marginBefore): (WebCore::RenderStyle::marginAfter): (WebCore::RenderStyle::marginStart): (WebCore::RenderStyle::marginEnd): (WebCore::RenderStyle::paddingBefore): (WebCore::RenderStyle::paddingAfter): (WebCore::RenderStyle::paddingStart): (WebCore::RenderStyle::paddingEnd): * rendering/style/RenderStyle.h: 2010-09-20 David Hyatt Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=46116, implement block-flow-aware logical properties. This patch adds all the logical properties from the CSS3 Writing Mode draft for margins, padding, border, width and height. Added fast/css/logical-property-resolution.html * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): * css/CSSProperty.cpp: (WebCore::resolveToPhysicalProperty): (WebCore::CSSProperty::resolveDirectionAwareProperty): * css/CSSProperty.h: * css/CSSPropertyNames.in: * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyDeclarations): (WebCore::CSSStyleSelector::applyProperty): 2010-09-20 David Hyatt Reviewed by Beth Dakin. https://bugs.webkit.org/show_bug.cgi?id=46114, two tables repaint tests failing on bots. Patch layoutRows to apply the layout delta when setting a new cell location prior to laying out the cell. The layout delta is then removed after layout has happened when the repaint check is done. This change makes cell layout match block child layout, and now the cells have the correct new location up front when laying out (a necessity for pagination). * rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::layoutRows): 2010-09-20 Jacob Dinu Reviewed by Adam Barth. When loading a cached page, dispatchDidCommitLoad is called after FrameLoader::open so that all initialzations are done before calling client dispatchDidCommitLoad to avoid client from accessing incorrect data. https://bugs.webkit.org/show_bug.cgi?id=41155 * loader/FrameLoader.cpp: (WebCore::FrameLoader::commitProvisionalLoad): (WebCore::FrameLoader::transitionToCommitted): 2010-09-20 Simon Fraser Reviewed by Adam Roben. REGRESSION: alternating animation direction doesn't work on Windows https://bugs.webkit.org/show_bug.cgi?id=46017 Animation-direction on Windows was broken because bitfields on Windows are signed. Fixed by making m_direction an unsigned in the bitfield, and casting in the accessor. Test: animations/animation-direction.html * platform/animation/Animation.h: (WebCore::Animation::direction): 2010-09-20 Enrica Casucci Reviewed by Sam Weinig. Pasteboard doesn't work in WebKit2. https://bugs.webkit.org/show_bug.cgi?id=42317 * loader/EmptyClients.h: (WebCore::EmptyEditorClient::documentFragmentFromAttributedString): Changed parameter to be a Vector of RefPtr. * page/EditorClient.h: * platform/mac/PasteboardMac.mm: (WebCore::Pasteboard::documentFragmentWithRtf): Stylistic changes. 2010-09-20 Yong Li Reviewed by Alexey Proskuryakov. https://bugs.webkit.org/show_bug.cgi?id=39966 Make compareBorders() a consistent compare function which can beused by qsort(). New test case added: LayoutTests/tables/sort-collapsed-border-styles.html * rendering/RenderTableCell.cpp: (WebCore::compareBorders): (WebCore::chooseBorder): (WebCore::RenderTableCell::collapsedLeftBorder): (WebCore::RenderTableCell::collapsedRightBorder): (WebCore::RenderTableCell::collapsedTopBorder): (WebCore::RenderTableCell::collapsedBottomBorder): (WebCore::compareBorderStylesForQSort): 2010-09-20 Patrick Gansterer Reviewed by Adam Roben. [WINCE] Buildfix for PluginViewWin.cpp https://bugs.webkit.org/show_bug.cgi?id=46033 * plugins/win/PluginViewWin.cpp: (WebCore::PluginView::paintIntoTransformedContext): (WebCore::PluginView::snapshot): 2010-09-18 David Hyatt Reviewed by Sam Weinig. https://bugs.webkit.org/show_bug.cgi?id=46030, aintitcool.com doesn't paginate correctly when printed. This happens because the site always has a document width that will exceed the page width. We incorrectly apply a double scale instead of clipping after the first scale still doesn't fit. The fix for the issue is to cap the right layout overflow to the page width and to just clip out any additional excess. This is the code in FrameView.cpp. This patch also cleans up table cell invalidation to reduce the # of relayouts. This change is not a correctness fix. It's just performance. I'm not sure how to write a test for this, since the double scale is an artifact of how WebKit mac calls back in when really printing. * page/FrameView.cpp: (WebCore::FrameView::forceLayoutForPagination): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlockChild): (WebCore::RenderBlock::layoutPositionedObjects): (WebCore::RenderBlock::positionNewFloats): * rendering/RenderBlock.h: (WebCore::RenderBlock::markForPaginationRelayout): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::layoutHorizontalBox): (WebCore::RenderFlexibleBox::layoutVerticalBox): * rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::layoutRows): 2010-09-20 Ilya Tikhonovsky Reviewed by Pavel Feldman. Web Inspector: merge Inspector client runtime events into the serialized inspector state object. Drive-by rename getBackendSettings -> getInspectorState to better reflect the nature of the data. https://bugs.webkit.org/show_bug.cgi?id=45974 * inspector/Inspector.idl: * inspector/InspectorClient.h: (WebCore::InspectorClient::updateInspectorStateCookie): * inspector/InspectorController.cpp: (WebCore::InspectorController::saveApplicationSettings): (WebCore::InspectorController::getInspectorState): (WebCore::InspectorController::updateInspectorStateCookie): (WebCore::InspectorController::restoreInspectorStateFromCookie): (WebCore::InspectorController::getSettings): (WebCore::InspectorController::setMonitoringXHREnabled): (WebCore::InspectorController::restoreDebugger): (WebCore::InspectorController::restoreProfiler): (WebCore::InspectorController::setResourceTrackingEnabled): (WebCore::InspectorController::ensureSettingsLoaded): (WebCore::InspectorController::startTimelineProfiler): (WebCore::InspectorController::stopTimelineProfiler): (WebCore::InspectorController::enableProfiler): (WebCore::InspectorController::disableProfiler): (WebCore::InspectorController::enableDebuggerFromFrontend): (WebCore::InspectorController::disableDebugger): * inspector/InspectorController.h: * inspector/front-end/ConsoleView.js: (WebInspector.ConsoleView.prototype._handleContextMenuEvent): * inspector/front-end/ResourcesPanel.js: (WebInspector.ResourcesPanel.prototype._toggleResourceTracking): * inspector/front-end/Settings.js: (WebInspector.Settings.initialize): * inspector/front-end/inspector.js: (WebInspector.doLoadedDone.populateInspectorState): (WebInspector.doLoadedDone): 2010-09-20 Dirk Schulze Reviewed by Nikolas Zimmermann. SVG Filter cleanup https://bugs.webkit.org/show_bug.cgi?id=45612 All effect inputs are stored in a Vector in FilterEffect instead of passing them via constructors to every effect type. This simplifies the primitive subregion logic and centralizes it in determineFilterPrimitiveSubregion. Just SourceGraphic, SourceAlpha and FETile still calculate filter primitive subregions on their own. Working on it in a followup patch. The subregions code is SVG specific and moving this calculation to FilterEffect is an intermediate step before moving it to RenderSVGResourceFilterPrimitive in a following patch. The new FilterEffectVector will also make it possible to add code to determine the smallest used region of an effect and will help save memory and resources in the future. subRegion got renamed to filterPrimitiveSubregion to match the name scheme. scaledSubRegion got renamed to repaintRectInLocalCoordinates since this is its proper meaning. Removed unnecessary member variables and functions from FilterEffect. No new tests added since the functionality didn't change. * platform/graphics/cairo/GraphicsContextCairo.cpp: scaledSubRegion was renamed to repaintRectInLocalCoordinates. (WebCore::GraphicsContext::createShadowMask): * platform/graphics/filters/FEBlend.cpp: Removed Filter effect inputs from constructor. (WebCore::FEBlend::FEBlend): (WebCore::FEBlend::create): (WebCore::FEBlend::apply): Call inputFilterEffects to get input filter primitives. (WebCore::FEBlend::externalRepresentation): Call inputFilterEffects to get input filter primitives. * platform/graphics/filters/FEBlend.h: * platform/graphics/filters/FEColorMatrix.cpp: Ditto. (WebCore::FEColorMatrix::FEColorMatrix): (WebCore::FEColorMatrix::create): (WebCore::FEColorMatrix::apply): (WebCore::FEColorMatrix::externalRepresentation): * platform/graphics/filters/FEColorMatrix.h: * platform/graphics/filters/FEComponentTransfer.cpp: Ditto. (WebCore::FEComponentTransfer::FEComponentTransfer): (WebCore::FEComponentTransfer::create): (WebCore::FEComponentTransfer::apply): (WebCore::FEComponentTransfer::externalRepresentation): * platform/graphics/filters/FEComponentTransfer.h: * platform/graphics/filters/FEComposite.cpp: Ditto. (WebCore::FEComposite::FEComposite): (WebCore::FEComposite::create): (WebCore::FEComposite::apply): (WebCore::FEComposite::externalRepresentation): * platform/graphics/filters/FEComposite.h: * platform/graphics/filters/FEGaussianBlur.cpp: Ditto. (WebCore::FEGaussianBlur::FEGaussianBlur): (WebCore::FEGaussianBlur::create): (WebCore::FEGaussianBlur::apply): (WebCore::FEGaussianBlur::externalRepresentation): * platform/graphics/filters/FEGaussianBlur.h: * platform/graphics/filters/Filter.h: (WebCore::Filter::determineFilterPrimitiveSubregion): Renamed from calculateEffectSubRegion to match name scheme. * platform/graphics/filters/FilterEffect.cpp: (WebCore::FilterEffect::FilterEffect): (WebCore::FilterEffect::determineFilterPrimitiveSubregion): The main place for subregion calculation. (WebCore::FilterEffect::calculateDrawingIntRect): Takes repaintRectInLocalCoordinates now. (WebCore::FilterEffect::calculateDrawingRect): ditto. (WebCore::FilterEffect::getEffectContext): Check if ImageBuffer was created. * platform/graphics/filters/FilterEffect.h: Changed names to match name scheme. Removed unnecessary member variables and functions. Seperate SVG specific member variables and functions. Will get removed in followup patches. (WebCore::FilterEffect::resultImage): (WebCore::FilterEffect::setEffectBuffer): (WebCore::FilterEffect::inputEffect): (WebCore::FilterEffect::inputEffects): (WebCore::FilterEffect::numberOfinputEffects): (WebCore::FilterEffect::isAlphaImage): (WebCore::FilterEffect::setIsAlphaImage): (WebCore::FilterEffect::repaintRectInLocalCoordinates): (WebCore::FilterEffect::setRepaintRectInLocalCoordinates): (WebCore::FilterEffect::isSourceInput): (WebCore::FilterEffect::hasX): (WebCore::FilterEffect::setHasX): (WebCore::FilterEffect::hasY): (WebCore::FilterEffect::setHasY): (WebCore::FilterEffect::hasWidth): (WebCore::FilterEffect::setHasWidth): (WebCore::FilterEffect::hasHeight): (WebCore::FilterEffect::setHasHeight): (WebCore::FilterEffect::filterPrimitiveSubregion): (WebCore::FilterEffect::setFilterPrimitiveSubregion): (WebCore::FilterEffect::effectBoundaries): (WebCore::FilterEffect::setEffectBoundaries): * platform/graphics/filters/SourceAlpha.cpp: (WebCore::SourceAlpha::determineFilterPrimitiveSubregion): Renamed to match name scheme. * platform/graphics/filters/SourceAlpha.h: (WebCore::SourceAlpha::isSourceInput): * platform/graphics/filters/SourceGraphic.cpp: (WebCore::SourceGraphic::determineFilterPrimitiveSubregion): Ditto. * platform/graphics/filters/SourceGraphic.h: (WebCore::SourceGraphic::isSourceInput): * rendering/RenderSVGResourceFilter.cpp: Adapt to renames in FilterEffect. (WebCore::RenderSVGResourceFilter::applyResource): (WebCore::RenderSVGResourceFilter::postApplyResource): * svg/SVGFEBlendElement.cpp: Constructor of FEBlend doesn't take input effects. Adding them afterwards. (WebCore::SVGFEBlendElement::build): * svg/SVGFEColorMatrixElement.cpp: Ditto. (WebCore::SVGFEColorMatrixElement::build): * svg/SVGFEComponentTransferElement.cpp: Ditto. (WebCore::SVGFEComponentTransferElement::build): * svg/SVGFECompositeElement.cpp: Ditto. (WebCore::SVGFECompositeElement::build): * svg/SVGFEConvolveMatrixElement.cpp: Ditto. (WebCore::SVGFEConvolveMatrixElement::build): * svg/SVGFEDiffuseLightingElement.cpp: Ditto. (WebCore::SVGFEDiffuseLightingElement::build): * svg/SVGFEDisplacementMapElement.cpp: Ditto. (WebCore::SVGFEDisplacementMapElement::build): * svg/SVGFEGaussianBlurElement.cpp: Ditto. (WebCore::SVGFEGaussianBlurElement::build): * svg/SVGFEMergeElement.cpp: Ditto. (WebCore::SVGFEMergeElement::build): * svg/SVGFEMorphologyElement.cpp: Ditto. (WebCore::SVGFEMorphologyElement::build): * svg/SVGFEOffsetElement.cpp: Ditto. (WebCore::SVGFEOffsetElement::build): * svg/SVGFESpecularLightingElement.cpp: Ditto. (WebCore::SVGFESpecularLightingElement::build): * svg/SVGFETileElement.cpp: Ditto. (WebCore::SVGFETileElement::build): * svg/graphics/filters/SVGFEConvolveMatrix.cpp: Ditto. (WebCore::FEConvolveMatrix::FEConvolveMatrix): (WebCore::FEConvolveMatrix::create): (WebCore::FEConvolveMatrix::apply): (WebCore::FEConvolveMatrix::externalRepresentation): * svg/graphics/filters/SVGFEConvolveMatrix.h: * svg/graphics/filters/SVGFEDiffuseLighting.cpp: Ditto. (WebCore::FEDiffuseLighting::FEDiffuseLighting): (WebCore::FEDiffuseLighting::create): (WebCore::FEDiffuseLighting::externalRepresentation): * svg/graphics/filters/SVGFEDiffuseLighting.h: * svg/graphics/filters/SVGFEDisplacementMap.cpp: Ditto. (WebCore::FEDisplacementMap::FEDisplacementMap): (WebCore::FEDisplacementMap::create): (WebCore::FEDisplacementMap::apply): (WebCore::FEDisplacementMap::externalRepresentation): * svg/graphics/filters/SVGFEDisplacementMap.h: * svg/graphics/filters/SVGFEFlood.cpp: Ditto. (WebCore::FEFlood::apply): * svg/graphics/filters/SVGFEImage.cpp: Ditto. (WebCore::FEImage::apply): * svg/graphics/filters/SVGFELighting.cpp: Ditto. (WebCore::FELighting::FELighting): (WebCore::FELighting::apply): * svg/graphics/filters/SVGFELighting.h: * svg/graphics/filters/SVGFEMerge.cpp: Ditto. (WebCore::FEMerge::FEMerge): (WebCore::FEMerge::create): (WebCore::FEMerge::apply): (WebCore::FEMerge::externalRepresentation): * svg/graphics/filters/SVGFEMerge.h: * svg/graphics/filters/SVGFEMorphology.cpp: Ditto. (WebCore::FEMorphology::FEMorphology): (WebCore::FEMorphology::create): (WebCore::FEMorphology::apply): (WebCore::FEMorphology::externalRepresentation): * svg/graphics/filters/SVGFEMorphology.h: * svg/graphics/filters/SVGFEOffset.cpp: Ditto. (WebCore::FEOffset::FEOffset): (WebCore::FEOffset::create): (WebCore::FEOffset::apply): (WebCore::FEOffset::externalRepresentation): * svg/graphics/filters/SVGFEOffset.h: * svg/graphics/filters/SVGFESpecularLighting.cpp: Ditto. (WebCore::FESpecularLighting::FESpecularLighting): (WebCore::FESpecularLighting::create): (WebCore::FESpecularLighting::externalRepresentation): * svg/graphics/filters/SVGFESpecularLighting.h: * svg/graphics/filters/SVGFETile.cpp: Ditto. (WebCore::FETile::FETile): (WebCore::FETile::create): (WebCore::FETile::determineFilterPrimitiveSubregion): Renamed to match name scheme. (WebCore::FETile::apply): (WebCore::FETile::externalRepresentation): * svg/graphics/filters/SVGFETile.h: * svg/graphics/filters/SVGFilter.cpp: Renamed itemBox to targetBoundingBox to match name scheme. (WebCore::SVGFilter::SVGFilter): (WebCore::SVGFilter::determineFilterPrimitiveSubregion): Renamed to match name scheme. (WebCore::SVGFilter::create): * svg/graphics/filters/SVGFilter.h: (WebCore::SVGFilter::sourceImageRect): 2010-09-20 Pavel Podivilov Reviewed by Pavel Feldman. Web Inspector: highlight DOM node when hover on link element or DOM breakpoint https://bugs.webkit.org/show_bug.cgi?id=45897 * inspector/front-end/BreakpointsSidebarPane.js: (WebInspector.BreakpointItem): (WebInspector.JSBreakpointItem): (WebInspector.DOMBreakpointItem): (WebInspector.DOMBreakpointItem.prototype.compareTo): (WebInspector.DOMBreakpointItem.prototype._breakpointClicked): * inspector/front-end/ElementsPanel.js: (WebInspector.ElementsPanel.prototype.hide): (WebInspector.ElementsPanel.prototype.reset): (WebInspector.ElementsPanel.prototype.setDocument.selectNode): (WebInspector.ElementsPanel.prototype._mouseMovedInCrumbs): (WebInspector.ElementsPanel.prototype._mouseMovedOutOfCrumbs): (WebInspector.ElementsPanel.prototype.linkifyNodeReference): * inspector/front-end/ElementsTreeOutline.js: (WebInspector.ElementsTreeOutline.prototype.set focusedDOMNode): (WebInspector.ElementsTreeOutline.prototype._onmousemove): (WebInspector.ElementsTreeOutline.prototype._onmouseout): * inspector/front-end/inspector.js: (WebInspector.highlightDOMNode): (WebInspector.highlightDOMNodeForTwoSeconds): (WebInspector.wireElementWithDOMNode): (WebInspector._updateFocusedNode): (WebInspector.reset): (WebInspector.updateFocusedNode): 2010-09-19 Sheriff Bot Unreviewed, rolling out r67749. http://trac.webkit.org/changeset/67749 https://bugs.webkit.org/show_bug.cgi?id=46068 breaking ToT chromium canary build (Requested by shans on #webkit). * bindings/v8/V8DOMWindowShell.cpp: (WebCore::V8DOMWindowShell::createNewContext): * bindings/v8/V8Proxy.cpp: (WebCore::V8Proxy::registeredExtensionWithV8): (WebCore::V8Proxy::registerExtension): * bindings/v8/V8Proxy.h: * loader/EmptyClients.h: * loader/FrameLoaderClient.h: 2010-09-19 Gavin Barraclough Reviewed by Oliver Hunt. Bug 46065 - Unify implementation of ToInt32 and ToUInt32, don't use fmod. These methods implement the same conversion (see discussion in the notes of sections of 9.5 and 9.6 of the spec), only differing in how the result is interpretted. Removing JSValue::toInt32 (since this has weird, non-spec function). A couple of places in the binding are using this method, so adding finiteInt32Value to the bindings to maintain current behaviour. Test: fast/js/toInt32UInt32.html * bindings/js/JSDOMBinding.h: (WebCore::finiteInt32Value): * bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::add): * bindings/js/JSSQLResultSetRowListCustom.cpp: (WebCore::JSSQLResultSetRowList::item): * bindings/js/JSSVGPODListCustom.h: (WebCore::JSSVGPODListCustom::getItem): (WebCore::JSSVGPODListCustom::insertItemBefore): (WebCore::JSSVGPODListCustom::replaceItem): (WebCore::JSSVGPODListCustom::removeItem): * bindings/js/JSSVGPathSegListCustom.cpp: (WebCore::JSSVGPathSegList::getItem): (WebCore::JSSVGPathSegList::insertItemBefore): (WebCore::JSSVGPathSegList::replaceItem): (WebCore::JSSVGPathSegList::removeItem): 2010-09-19 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] clipBoundingRect() should return rect relevant to current layer https://bugs.webkit.org/show_bug.cgi?id=46059 r65791 inadvertently changed clipBoundingRect() to always use the GC painter without checking the TransparencyLayer stack first. * platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContextPlatformPrivate::p): (WebCore::GraphicsContextPlatformPrivate::clipBoundingRect): 2010-09-19 Sam Weinig Reviewed by Anders Carlsson. Replace WKBundleRangeRef with WKBundleRangeHandleRef. https://bugs.webkit.org/show_bug.cgi?id=46054 * WebCore.exp.in: * WebCore.xcodeproj/project.pbxproj: 2010-09-19 Patrick Gansterer Unreviewed. [WINCE] Buildfix for Gradient after r67801. * platform/graphics/Gradient.h: * platform/graphics/wince/GradientWinCE.cpp: (WebCore::Gradient::getStops): 2010-09-19 Kent Tamura Reviewed by Dimitri Glazkov. [Chromium] Add is() functions to WebInputElement https://bugs.webkit.org/show_bug.cgi?id=46035 * html/HTMLInputElement.h: (WebCore::HTMLInputElement::isText): Added. It is used by WebKit/chromium. 2010-09-18 Andreas Kling Reviewed by Antonio Gomes. [Qt] Path: Remove unused member variable https://bugs.webkit.org/show_bug.cgi?id=46048 Path::m_lastMoveToIndex is not used for anything, so remove it. * platform/graphics/Path.h: * platform/graphics/qt/PathQt.cpp: (WebCore::Path::Path): (WebCore::Path::operator=): (WebCore::Path::moveTo): 2010-09-18 Patrick Gansterer Reviewed by Darin Adler. Use AtomicString insted of String in XMLDocumentParser https://bugs.webkit.org/show_bug.cgi?id=45990 Create AtomicString as early as possible. This can avoid unnecessary memcpy of String content. * dom/XMLDocumentParser.h: * dom/XMLDocumentParserLibxml2.cpp: (WebCore::toAtomicString): (WebCore::handleElementNamespaces): (WebCore::handleElementAttributes): (WebCore::XMLDocumentParser::startElementNs): 2010-09-18 Erik Arvidsson Reviewed by Nate Chapin. [Chromium] fast/dom/dataset-gc.html is failing https://bugs.webkit.org/show_bug.cgi?id=45426 * bindings/scripts/CodeGeneratorV8.pm: * bindings/v8/custom/V8DOMStringMapCustom.cpp: (WebCore::toV8): * dom/DOMStringMap.h: * dom/DatasetDOMStringMap.h: (WebCore::DatasetDOMStringMap::element): 2010-09-18 Andreas Kling Reviewed by Oliver Hunt. Gradient: Fast-path for the ideal case in sortStopsIfNecessary() https://bugs.webkit.org/show_bug.cgi?id=46045 Avoid calling std::stable_sort for 2-stop gradients that are already in order. * platform/graphics/Gradient.cpp: (WebCore::Gradient::sortStopsIfNecessary): 2010-09-18 Kwang Yul Seo Reviewed by Andreas Kling. [BREWMP] Fix a typo in key code name https://bugs.webkit.org/show_bug.cgi?id=46003 AVK_CLR is the right Brew MP key code name for VK_BACK. * platform/brew/PlatformKeyboardEventBrew.cpp: (WebCore::windowsKeyCodeForKeyEvent): 2010-09-18 Andreas Kling Reviewed by Oliver Hunt. Gradient: Pre-reserve space for 2 color stops https://bugs.webkit.org/show_bug.cgi?id=46044 Most gradients have only 2 color stops, pre-reserve space for these in m_stops to avoid growing the vector dynamically in the common case. * platform/graphics/Gradient.h: 2010-09-18 Dimitri Glazkov Unreviewed, rolling out r67792. http://trac.webkit.org/changeset/67792 https://bugs.webkit.org/show_bug.cgi?id=45976 Broke over a hundred SVG tests. * platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::drawImage): (WebCore::GraphicsContext::drawImageBuffer): * platform/graphics/GraphicsContext.h: 2010-09-18 Mihai Parparita Reviewed by Simon Fraser. webkitAnimationEnd event doesn't fire when skipping over final iteration https://bugs.webkit.org/show_bug.cgi?id=46010 It's possible for AnimationBase::fireAnimationEventsIfNeeded to decide that the animation is ended while we're in the looping state, if the animation timer never fires during an iteration. That then fails the assert in AnimationBase::updateStateMachine (we don't expect AnimationStateInputEndTimerFired while in the looping state). Jump the state to AnimationStateEnding, which is more accurate. Test: animations/animation-end-event-short-iterations.html * page/animation/AnimationBase.cpp: (WebCore::AnimationBase::fireAnimationEventsIfNeeded): 2010-09-18 Kwang Yul Seo Reviewed by Andreas Kling. [BREWMP] Wrong key code type in keyIdentifierForBrewKeyCode https://bugs.webkit.org/show_bug.cgi?id=46005 The type of key code in Brew MP is uint16. Take uint16 instead of int16 in keyIdentifierForBrewKeyCode. * platform/brew/PlatformKeyboardEventBrew.cpp: (WebCore::keyIdentifierForBrewKeyCode): 2010-09-18 Matthew Delaney Reviewed by Oliver Hunt. Canvas drawImage with source or destination widths/heights of -1 renders incorrectly. https://bugs.webkit.org/show_bug.cgi?id=45976 Specifying a -1 width or height for either the source or destination rectangle in drawImage get improperly drawn with -1 replaced as the corresponding image width or height. This was because the value -1 was being passed around to signal non-specified widths and heights and thus was interpreted lower down in the drawImage implementation which disallowed any calls that actually wanted to use -1 as the widths or heights. Fixed this by moving the default logic up and not using -1 in-band signaling to denote default behavior. Tests: canvas/philip/tests/2d.drawImage.negativeOneDest.html canvas/philip/tests/2d.drawImage.negativeOneSource.html * platform/graphics/GraphicsContext.cpp: Removed -1 in-band signals and replaced cascased calls to have the desired replaces for unspecified widths and heights earlier on. * platform/graphics/GraphicsContext.h: Removed faulty default value. 2010-09-18 Ademar de Souza Reis Jr Reviewed by Kenneth Rohde Christiansen. Enable Platform Strategies on Qt [Qt] Turn on PLATFORM_STRATEGIES https://bugs.webkit.org/show_bug.cgi?id=45831 * WebCore.pro: Adding/removing implementation files * platform/qt/Language.cpp: Added, WebCore::defaultLanguage() was moved from platform/qt/Localizations.cpp (WebCore::defaultLanguage): Moved from Localizations.cpp * platform/qt/Localizations.cpp: Removed (code is now inside WebCoreSupport/WebPlatformStrategies.cpp) * plugins/qt/PluginDataQt.cpp: Removed (idem) 2010-09-18 Patrick Gansterer Reviewed by Darin Adler. Rename Wince files to WinCE https://bugs.webkit.org/show_bug.cgi?id=37287 * loader/icon/wince/IconDatabaseWinCE.cpp: Copied from WebCore/loader/icon/wince/IconDatabaseWince.cpp. * loader/icon/wince/IconDatabaseWince.cpp: Removed. * page/wince/FrameWinCE.cpp: Copied from WebCore/page/wince/FrameWince.cpp. * page/wince/FrameWince.cpp: Removed. * platform/graphics/MediaPlayer.cpp: * platform/graphics/wince/ColorWinCE.cpp: Copied from WebCore/platform/graphics/wince/ColorWince.cpp. * platform/graphics/wince/ColorWince.cpp: Removed. * platform/graphics/wince/FontCacheWinCE.cpp: Copied from WebCore/platform/graphics/wince/FontCacheWince.cpp. * platform/graphics/wince/FontCacheWince.cpp: Removed. * platform/graphics/wince/FontWinCE.cpp: Copied from WebCore/platform/graphics/wince/FontWince.cpp. * platform/graphics/wince/FontWince.cpp: Removed. * platform/graphics/wince/GlyphPageTreeNodeWinCE.cpp: Copied from WebCore/platform/graphics/wince/GlyphPageTreeNodeWince.cpp. * platform/graphics/wince/GlyphPageTreeNodeWince.cpp: Removed. * platform/graphics/wince/GradientWinCE.cpp: Copied from WebCore/platform/graphics/wince/GradientWince.cpp. * platform/graphics/wince/GradientWince.cpp: Removed. * platform/graphics/wince/GraphicsContextWinCE.cpp: Copied from WebCore/platform/graphics/wince/GraphicsContextWince.cpp. * platform/graphics/wince/GraphicsContextWince.cpp: Removed. * platform/graphics/wince/ImageBufferWinCE.cpp: Copied from WebCore/platform/graphics/wince/ImageBufferWince.cpp. * platform/graphics/wince/ImageBufferWince.cpp: Removed. * platform/graphics/wince/MediaPlayerPrivateWinCE.h: Copied from WebCore/platform/graphics/wince/MediaPlayerPrivateWince.h. * platform/graphics/wince/MediaPlayerPrivateWince.h: Removed. * platform/graphics/wince/PathWinCE.cpp: Copied from WebCore/platform/graphics/wince/PathWince.cpp. * platform/graphics/wince/PathWince.cpp: Removed. * platform/graphics/wince/PlatformPathWinCE.cpp: Copied from WebCore/platform/graphics/wince/PlatformPathWince.cpp. * platform/graphics/wince/PlatformPathWinCE.h: Copied from WebCore/platform/graphics/wince/PlatformPathWince.h. * platform/graphics/wince/PlatformPathWince.cpp: Removed. * platform/graphics/wince/PlatformPathWince.h: Removed. * platform/graphics/wince/SimpleFontDataWinCE.cpp: Copied from WebCore/platform/graphics/wince/SimpleFontDataWince.cpp. * platform/graphics/wince/SimpleFontDataWince.cpp: Removed. * platform/graphics/wince/WinCEGraphicsExtras.h: Copied from WebCore/platform/graphics/wince/WinceGraphicsExtras.h. * platform/graphics/wince/WinceGraphicsExtras.h: Removed. * platform/text/wince/TextBoundariesWinCE.cpp: Copied from WebCore/platform/text/wince/TextBoundariesWince.cpp. * platform/text/wince/TextBoundariesWince.cpp: Removed. * platform/text/wince/TextBreakIteratorWinCE.cpp: Copied from WebCore/platform/text/wince/TextBreakIteratorWince.cpp. * platform/text/wince/TextBreakIteratorWince.cpp: Removed. * platform/wince/CursorWinCE.cpp: Copied from WebCore/platform/wince/CursorWince.cpp. * platform/wince/CursorWince.cpp: Removed. * platform/wince/DragDataWinCE.cpp: Copied from WebCore/platform/wince/DragDataWince.cpp. * platform/wince/DragDataWince.cpp: Removed. * platform/wince/DragImageWinCE.cpp: Copied from WebCore/platform/wince/DragImageWince.cpp. * platform/wince/DragImageWince.cpp: Removed. * platform/wince/EditorWinCE.cpp: Copied from WebCore/platform/wince/EditorWince.cpp. (WebCore::Editor::newGeneralClipboard): * platform/wince/EditorWince.cpp: Removed. * platform/wince/FileChooserWinCE.cpp: Copied from WebCore/platform/wince/FileChooserWince.cpp. * platform/wince/FileChooserWince.cpp: Removed. * platform/wince/FileSystemWinCE.cpp: Copied from WebCore/platform/wince/FileSystemWince.cpp. * platform/wince/FileSystemWince.cpp: Removed. * platform/wince/KURLWinCE.cpp: Copied from WebCore/platform/wince/KURLWince.cpp. * platform/wince/KURLWince.cpp: Removed. * platform/wince/KeygenWinCE.cpp: Copied from WebCore/platform/wince/KeygenWince.cpp. * platform/wince/KeygenWince.cpp: Removed. * platform/wince/MIMETypeRegistryWinCE.cpp: Copied from WebCore/platform/wince/MIMETypeRegistryWince.cpp. * platform/wince/MIMETypeRegistryWince.cpp: Removed. * platform/wince/PasteboardWinCE.cpp: Copied from WebCore/platform/wince/PasteboardWince.cpp. * platform/wince/PasteboardWince.cpp: Removed. * platform/wince/SearchPopupMenuWinCE.cpp: Copied from WebCore/platform/wince/SearchPopupMenuWince.cpp. * platform/wince/SearchPopupMenuWince.cpp: Removed. * platform/wince/SharedTimerWinCE.cpp: Copied from WebCore/platform/wince/SharedTimerWince.cpp. * platform/wince/SharedTimerWince.cpp: Removed. * rendering/RenderThemeWinCE.cpp: Copied from WebCore/rendering/RenderThemeWince.cpp. (WebCore::RenderThemeWinCE::create): (WebCore::RenderTheme::themeForPage): (WebCore::RenderThemeWinCE::RenderThemeWinCE): (WebCore::RenderThemeWinCE::~RenderThemeWinCE): (WebCore::RenderThemeWinCE::platformActiveSelectionBackgroundColor): (WebCore::RenderThemeWinCE::platformInactiveSelectionBackgroundColor): (WebCore::RenderThemeWinCE::platformActiveSelectionForegroundColor): (WebCore::RenderThemeWinCE::platformInactiveSelectionForegroundColor): (WebCore::RenderThemeWinCE::supportsFocus): (WebCore::RenderThemeWinCE::supportsFocusRing): (WebCore::RenderThemeWinCE::determineClassicState): (WebCore::RenderThemeWinCE::getThemeData): (WebCore::RenderThemeWinCE::paintButton): (WebCore::RenderThemeWinCE::setCheckboxSize): (WebCore::RenderThemeWinCE::paintTextField): (WebCore::RenderThemeWinCE::adjustMenuListStyle): (WebCore::RenderThemeWinCE::paintMenuList): (WebCore::RenderThemeWinCE::paintMenuListButton): (WebCore::RenderThemeWinCE::systemFont): (WebCore::RenderThemeWinCE::themeChanged): (WebCore::RenderThemeWinCE::extraDefaultStyleSheet): (WebCore::RenderThemeWinCE::extraQuirksStyleSheet): (WebCore::RenderThemeWinCE::supportsHover): (WebCore::RenderThemeWinCE::systemColor): (WebCore::RenderThemeWinCE::adjustSliderThumbSize): (WebCore::RenderThemeWinCE::adjustButtonInnerStyle): (WebCore::RenderThemeWinCE::adjustSearchFieldStyle): (WebCore::RenderThemeWinCE::paintSearchField): (WebCore::RenderThemeWinCE::paintSearchFieldCancelButton): (WebCore::RenderThemeWinCE::adjustSearchFieldCancelButtonStyle): (WebCore::RenderThemeWinCE::adjustSearchFieldDecorationStyle): (WebCore::RenderThemeWinCE::adjustSearchFieldResultsDecorationStyle): (WebCore::RenderThemeWinCE::paintSearchFieldResultsDecoration): (WebCore::RenderThemeWinCE::adjustSearchFieldResultsButtonStyle): (WebCore::RenderThemeWinCE::paintSearchFieldResultsButton): (WebCore::RenderThemeWinCE::adjustMenuListButtonStyle): (WebCore::RenderThemeWinCE::paintSliderTrack): (WebCore::RenderThemeWinCE::paintSliderThumb): (WebCore::RenderThemeWinCE::paintMediaFullscreenButton): (WebCore::RenderThemeWinCE::paintMediaMuteButton): (WebCore::RenderThemeWinCE::paintMediaPlayButton): (WebCore::RenderThemeWinCE::paintMediaSeekBackButton): (WebCore::RenderThemeWinCE::paintMediaSeekForwardButton): (WebCore::RenderThemeWinCE::paintMediaSliderTrack): (WebCore::RenderThemeWinCE::paintMediaSliderThumb): * rendering/RenderThemeWinCE.h: Copied from WebCore/rendering/RenderThemeWince.h. * rendering/RenderThemeWince.cpp: Removed. * rendering/RenderThemeWince.h: Removed. * storage/wince/DatabaseThreadWinCE.cpp: Copied from WebCore/storage/wince/DatabaseThreadWince.cpp. * storage/wince/DatabaseThreadWinCE.h: Copied from WebCore/storage/wince/DatabaseThreadWince.h. * storage/wince/DatabaseThreadWince.cpp: Removed. * storage/wince/DatabaseThreadWince.h: Removed. * storage/wince/LocalStorageThreadWinCE.cpp: Copied from WebCore/storage/wince/LocalStorageThreadWince.cpp. * storage/wince/LocalStorageThreadWinCE.h: Copied from WebCore/storage/wince/LocalStorageThreadWince.h. * storage/wince/LocalStorageThreadWince.cpp: Removed. * storage/wince/LocalStorageThreadWince.h: Removed. 2010-09-18 Patrick Gansterer Reviewed by Eric Seidel. Move Plugin*None.cpp from CMakeLists.txt into CMakeListsEfl.txt https://bugs.webkit.org/show_bug.cgi?id=45900 PluginDataNone.cpp and PluginViewNone.cpp are not used by all port. Move them into plaform sepcific build system. * CMakeLists.txt: * CMakeListsEfl.txt: 2010-09-18 Andreas Kling Reviewed by Simon Hausmann. [Qt] Don't copy clip path to TransparencyLayer https://bugs.webkit.org/show_bug.cgi?id=45965 We don't need to copy the GC's clip path to the TransparencyLayer since it will clip anyway when ending the layer. * platform/graphics/qt/TransparencyLayer.h: (WebCore::TransparencyLayer::TransparencyLayer): 2010-09-18 Patrick Gansterer Unreviewed. [WINCE] Buildfix for FrameWince.cpp after r51353, r67762 and r67771. * page/wince/FrameWince.cpp: (WebCore::computePageRectsForFrame): (WebCore::imageFromSelection): 2010-09-18 Kent Tamura Unreviewed, a trivial change. Run sort-Xcode-project-file. * WebCore.xcodeproj/project.pbxproj: 2010-09-18 Dan Bernstein Reviewed by Eric Seidel. REGRESSION (r67762): Over 160 layout tests failing due to incorrect zoom factors in subframes https://bugs.webkit.org/show_bug.cgi?id=46031 * page/Frame.cpp: (WebCore::parentPageZoomFactor): Return the zoom factor of the parent frame. (WebCore::parentTextZoomFactor): Ditto. 2010-09-17 Sam Weinig Reviewed by Jon Honeycutt. Need a way to load data (as plain text) in a WKPage * WebCore.exp.in: 2010-09-17 David Hyatt Reviewed by Sam Weinig. https://bugs.webkit.org/show_bug.cgi?id=46027, image on gamespot.com paginates without bringing its enclosing border along. Make sure that unsplittable objects like replaced elements propagate their pagination strut outward to the parent block when appropriate. An image on a line did this, but a block-level image did not. Added fast/multicol/image-inside-nested-blocks-with-border.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlockChild): 2010-09-17 Dimitri Glazkov Unreviewed, build fix. Move calls from frameView->pageZoomFactor() to frame->pageZoomFactor(). * page/EventHandler.cpp: (WebCore::EventHandler::handleTouchEvent): Removed a helper function, added direct calls to frame->pageZoomFactor(). 2010-09-17 David Hyatt Reviewed by Simon Fraser. https://bugs.webkit.org/show_bug.cgi?id=45993, convert printing to the new pagination model. Make printing store the page height in the RenderView and push that into the layout state to use the new pagination model. The old pagination model is retained because it is still used for embedded WebViews. * page/FrameView.cpp: (WebCore::FrameView::reset): (WebCore::FrameView::layout): (WebCore::FrameView::forceLayout): (WebCore::FrameView::forceLayoutForPagination): (WebCore::FrameView::adjustPageHeight): * page/FrameView.h: * page/PrintContext.cpp: (WebCore::PrintContext::computePageRectsWithPageSizeInternal): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::paintChildren): * rendering/RenderBox.cpp: (WebCore::RenderBox::calcHeight): * rendering/RenderImage.cpp: (WebCore::RenderImage::paintReplaced): * rendering/RenderLineBoxList.cpp: (WebCore::RenderLineBoxList::paint): * rendering/RenderVideo.cpp: (WebCore::RenderVideo::paintReplaced): * rendering/RenderView.cpp: (WebCore::RenderView::RenderView): (WebCore::RenderView::layout): (WebCore::RenderView::paint): (WebCore::RenderView::setBestTruncatedAt): * rendering/RenderView.h: (WebCore::RenderView::popLayoutState): (WebCore::RenderView::pageHeight): (WebCore::RenderView::setPageHeight): (WebCore::RenderView::bestTruncatedAt): (WebCore::RenderView::truncatedAt): (WebCore::RenderView::setTruncatedAt): (WebCore::RenderView::printRect): (WebCore::RenderView::setPrintRect): (WebCore::RenderView::pushLayoutState): (WebCore::LayoutStateMaintainer::LayoutStateMaintainer): (WebCore::LayoutStateMaintainer::push): (WebCore::LayoutStateMaintainer::pop): 2010-09-17 Dan Bernstein Reviewed by Simon Fraser. Canvas sizing ignores intrinsic size https://bugs.webkit.org/show_bug.cgi?id=46024 Updated fast/replaced/table-percent-height.html * rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::RenderEmbeddedObject): If this is used as a proxy for