1. 27 Aug, 2013 1 commit
  2. 20 Aug, 2013 1 commit
    • antti@apple.com's avatar
      <https://webkit.org/b/120078> Replace NodeRenderingContext with RenderStyle&... · b74dfb66
      antti@apple.com authored
      <https://webkit.org/b/120078> Replace NodeRenderingContext with RenderStyle& as shouldCreateRenderer() argument
      
      Reviewed by Darin Adler.
      
      This simplifies the code. NodeRenderingContext was only used for getting the RenderStyle.
      
      * dom/Element.cpp:
      (WebCore::Element::rendererIsNeeded):
      * dom/Element.h:
      * dom/NodeRenderingContext.cpp:
      (WebCore::NodeRenderingContext::elementInsideRegionNeedsRenderer):
      (WebCore::NodeRenderingContext::createRendererForElementIfNeeded):
      * dom/PseudoElement.cpp:
      (WebCore::PseudoElement::rendererIsNeeded):
      * dom/PseudoElement.h:
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::rendererIsNeeded):
      * html/HTMLAppletElement.h:
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::rendererIsNeeded):
      * html/HTMLElement.h:
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::rendererIsNeeded):
      * html/HTMLEmbedElement.h:
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::rendererIsNeeded):
      * html/HTMLFormElement.h:
      * html/HTMLFrameElement.cpp:
      (WebCore::HTMLFrameElement::rendererIsNeeded):
      * html/HTMLFrameElement.h:
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::rendererIsNeeded):
      * html/HTMLFrameSetElement.h:
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::rendererIsNeeded):
      * html/HTMLIFrameElement.h:
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::rendererIsNeeded):
      * html/HTMLInputElement.h:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::rendererIsNeeded):
      * html/HTMLMediaElement.h:
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::rendererIsNeeded):
      * html/HTMLObjectElement.h:
      * html/HTMLOptGroupElement.h:
      * html/HTMLOptionElement.h:
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::rendererIsNeeded):
      * html/HTMLVideoElement.h:
      * html/shadow/DetailsMarkerControl.cpp:
      (WebCore::DetailsMarkerControl::rendererIsNeeded):
      * html/shadow/DetailsMarkerControl.h:
      * html/shadow/InsertionPoint.cpp:
      (WebCore::InsertionPoint::rendererIsNeeded):
      * html/shadow/InsertionPoint.h:
      * html/shadow/MeterShadowElement.cpp:
      (WebCore::MeterShadowElement::rendererIsNeeded):
      (WebCore::MeterInnerElement::rendererIsNeeded):
      * html/shadow/MeterShadowElement.h:
      * html/shadow/ProgressShadowElement.cpp:
      (WebCore::ProgressShadowElement::rendererIsNeeded):
      (WebCore::ProgressInnerElement::rendererIsNeeded):
      * html/shadow/ProgressShadowElement.h:
      * svg/SVGDescElement.h:
      * svg/SVGElement.h:
      (WebCore::SVGElement::rendererIsNeeded):
      * svg/SVGFilterPrimitiveStandardAttributes.cpp:
      (WebCore::SVGFilterPrimitiveStandardAttributes::rendererIsNeeded):
      * svg/SVGFilterPrimitiveStandardAttributes.h:
      * svg/SVGFontElement.h:
      * svg/SVGForeignObjectElement.cpp:
      (WebCore::SVGForeignObjectElement::rendererIsNeeded):
      * svg/SVGForeignObjectElement.h:
      * svg/SVGGElement.cpp:
      (WebCore::SVGGElement::rendererIsNeeded):
      * svg/SVGGElement.h:
      * svg/SVGGlyphElement.h:
      * svg/SVGGlyphRefElement.h:
      * svg/SVGHKernElement.h:
      * svg/SVGMarkerElement.h:
      * svg/SVGMissingGlyphElement.h:
      * svg/SVGSVGElement.cpp:
      (WebCore::SVGSVGElement::rendererIsNeeded):
      * svg/SVGSVGElement.h:
      * svg/SVGStopElement.cpp:
      (WebCore::SVGStopElement::rendererIsNeeded):
      * svg/SVGStopElement.h:
      * svg/SVGStyledElement.cpp:
      (WebCore::SVGStyledElement::rendererIsNeeded):
      * svg/SVGStyledElement.h:
      * svg/SVGTRefElement.cpp:
      (WebCore::SVGTRefElement::rendererIsNeeded):
      * svg/SVGTRefElement.h:
      * svg/SVGTSpanElement.cpp:
      (WebCore::SVGTSpanElement::rendererIsNeeded):
      * svg/SVGTSpanElement.h:
      * svg/SVGTextPathElement.cpp:
      (WebCore::SVGTextPathElement::rendererIsNeeded):
      * svg/SVGTextPathElement.h:
      * svg/SVGTitleElement.h:
      * svg/SVGVKernElement.h:
      * svg/SVGViewElement.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b74dfb66
  3. 15 Aug, 2013 1 commit
    • andersca@apple.com's avatar
      <https://webkit.org/b/119859> Frame::loader() should return a reference · df550b96
      andersca@apple.com authored
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::willOpenSocketStream):
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AccessibilityObject.cpp:
      (WebCore::AccessibilityObject::press):
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      (-[WebAccessibilityObjectWrapper remoteAccessibilityParentObject]):
      * bindings/ScriptControllerBase.cpp:
      (WebCore::ScriptController::canExecuteScripts):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::initScript):
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::beginLoadTimerFired):
      * dom/DOMImplementation.cpp:
      (WebCore::DOMImplementation::createDocument):
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::setVisualUpdatesAllowed):
      (WebCore::Document::updateTitle):
      (WebCore::Document::open):
      (WebCore::Document::explicitClose):
      (WebCore::Document::implicitClose):
      (WebCore::Document::userAgent):
      (WebCore::Document::canNavigate):
      (WebCore::Document::processHttpEquiv):
      (WebCore::Document::referrer):
      (WebCore::Document::documentDidResumeFromPageCache):
      (WebCore::Document::openSearchDescriptionURL):
      (WebCore::Document::finishedParsing):
      (WebCore::Document::addIconURL):
      (WebCore::Document::initSecurityContext):
      (WebCore::Document::updateURLForPushOrReplaceState):
      (WebCore::Document::loadEventDelayTimerFired):
      (WebCore::Document::loader):
      (WebCore::Document::decrementActiveParserCount):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrameBase::CachedFrameBase):
      (WebCore::CachedFrameBase::restore):
      (WebCore::CachedFrame::CachedFrame):
      (WebCore::CachedFrame::open):
      (WebCore::CachedFrame::destroy):
      * history/PageCache.cpp:
      (WebCore::logCanCacheFrameDecision):
      (WebCore::logCanCachePageDecision):
      (WebCore::PageCache::canCachePageContainingThisFrame):
      (WebCore::PageCache::canCache):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::handleClick):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::updateWidget):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::rendererIsNeeded):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::updateWidget):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::prepareForSubmission):
      (WebCore::HTMLFormElement::submit):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::openURL):
      * html/HTMLFrameOwnerElement.cpp:
      (WebCore::HTMLFrameOwnerElement::disconnectContentFrame):
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::insertedInto):
      (WebCore::HTMLFrameSetElement::removedFrom):
      * html/HTMLHtmlElement.cpp:
      (WebCore::HTMLHtmlElement::insertedByParser):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::createRenderer):
      (WebCore::HTMLMediaElement::attach):
      (WebCore::HTMLMediaElement::loadResource):
      (WebCore::HTMLMediaElement::getPluginProxyParams):
      (WebCore::HTMLMediaElement::createMediaPlayerProxy):
      (WebCore::HTMLMediaElement::updateWidget):
      (WebCore::HTMLMediaElement::mediaPlayerReferrer):
      (WebCore::HTMLMediaElement::mediaPlayerUserAgent):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parametersForPlugin):
      (WebCore::HTMLObjectElement::updateWidget):
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::isImageType):
      (WebCore::HTMLPlugInImageElement::wouldLoadAsNetscapePlugin):
      (WebCore::HTMLPlugInImageElement::restartSimilarPlugIns):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::setDisplayMode):
      * html/ImageDocument.cpp:
      (WebCore::ImageDocumentParser::appendBytes):
      (WebCore::ImageDocumentParser::finish):
      (WebCore::ImageDocument::createDocumentStructure):
      * html/MediaDocument.cpp:
      (WebCore::MediaDocumentParser::createDocumentStructure):
      * html/PluginDocument.cpp:
      (WebCore::PluginDocumentParser::createDocumentStructure):
      (WebCore::PluginDocumentParser::appendBytes):
      (WebCore::PluginDocument::detach):
      (WebCore::PluginDocument::cancelManualPluginLoad):
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::create):
      (WebCore::WebGLRenderingContext::loseContextImpl):
      (WebCore::WebGLRenderingContext::maybeRestoreContext):
      * html/parser/HTMLConstructionSite.cpp:
      (WebCore::HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded):
      (WebCore::HTMLConstructionSite::insertHTMLBodyElement):
      * html/parser/HTMLParserOptions.cpp:
      (WebCore::HTMLParserOptions::HTMLParserOptions):
      * html/parser/XSSAuditor.cpp:
      (WebCore::XSSAuditor::init):
      * html/parser/XSSAuditorDelegate.cpp:
      (WebCore::XSSAuditorDelegate::generateViolationReport):
      (WebCore::XSSAuditorDelegate::didBlockScript):
      * inspector/InspectorApplicationCacheAgent.cpp:
      (WebCore::InspectorApplicationCacheAgent::updateApplicationCacheStatus):
      (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::openInNewTab):
      * inspector/InspectorFrontendHost.cpp:
      (WebCore::InspectorFrontendHost::loadResourceSynchronously):
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::overlayPage):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::mainResourceContent):
      (WebCore::InspectorPageAgent::reload):
      (WebCore::InspectorPageAgent::navigate):
      (WebCore::allResourcesURLsForFrame):
      (WebCore::InspectorPageAgent::searchInResource):
      (WebCore::InspectorPageAgent::assertDocumentLoader):
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::didFailLoading):
      * loader/CookieJar.cpp:
      (WebCore::networkingContext):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::frameLoader):
      (WebCore::DocumentLoader::document):
      (WebCore::DocumentLoader::stopLoading):
      (WebCore::DocumentLoader::removeSubresourceLoader):
      (WebCore::DocumentLoader::subresourceLoaderFinishedLoadingOnePart):
      (WebCore::DocumentLoader::iconLoadDecisionAvailable):
      (WebCore::DocumentLoader::continueIconLoadWithDecision):
      * loader/DocumentThreadableLoader.cpp:
      (WebCore::DocumentThreadableLoader::didReceiveResponse):
      (WebCore::DocumentThreadableLoader::didFinishLoading):
      (WebCore::DocumentThreadableLoader::didFail):
      (WebCore::DocumentThreadableLoader::preflightFailure):
      (WebCore::DocumentThreadableLoader::loadRequest):
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::replaceDocument):
      (WebCore::DocumentWriter::createDocument):
      (WebCore::DocumentWriter::begin):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::~FrameLoader):
      (WebCore::FrameLoader::allChildrenAreComplete):
      (WebCore::FrameLoader::allAncestorsAreComplete):
      (WebCore::FrameLoader::loadURLIntoChildFrame):
      (WebCore::FrameLoader::outgoingReferrer):
      (WebCore::FrameLoader::setOpener):
      (WebCore::FrameLoader::completed):
      (WebCore::FrameLoader::started):
      (WebCore::FrameLoader::loadFrameRequest):
      (WebCore::FrameLoader::loadURL):
      (WebCore::FrameLoader::load):
      (WebCore::FrameLoader::loadWithDocumentLoader):
      (WebCore::FrameLoader::stopAllLoaders):
      (WebCore::FrameLoader::closeOldDataSources):
      (WebCore::FrameLoader::subframeIsLoading):
      (WebCore::FrameLoader::subresourceCachePolicy):
      (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
      (WebCore::FrameLoader::detachChildren):
      (WebCore::FrameLoader::checkLoadComplete):
      (WebCore::FrameLoader::detachFromParent):
      (WebCore::FrameLoader::loadPostRequest):
      (WebCore::FrameLoader::loadResourceSynchronously):
      (WebCore::FrameLoader::shouldClose):
      (WebCore::FrameLoader::handleBeforeUnloadEvent):
      (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
      (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
      (WebCore::createWindow):
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
      (WebCore::HistoryController::restoreScrollPositionAndViewState):
      (WebCore::HistoryController::saveDocumentState):
      (WebCore::HistoryController::saveDocumentAndScrollState):
      (WebCore::isAssociatedToRequestedHistoryItem):
      (WebCore::HistoryController::restoreDocumentState):
      (WebCore::HistoryController::shouldStopLoadingForHistoryItem):
      (WebCore::HistoryController::goToItem):
      (WebCore::HistoryController::updateForBackForwardNavigation):
      (WebCore::HistoryController::updateForReload):
      (WebCore::HistoryController::updateForStandardLoad):
      (WebCore::HistoryController::updateForRedirectWithLockedBackForwardList):
      (WebCore::HistoryController::updateForClientRedirect):
      (WebCore::HistoryController::updateForCommit):
      (WebCore::HistoryController::recursiveUpdateForCommit):
      (WebCore::HistoryController::updateForSameDocumentNavigation):
      (WebCore::HistoryController::recursiveUpdateForSameDocumentNavigation):
      (WebCore::HistoryController::initializeItem):
      (WebCore::HistoryController::createItemTree):
      (WebCore::HistoryController::recursiveSetProvisionalItem):
      (WebCore::HistoryController::recursiveGoToItem):
      (WebCore::HistoryController::updateBackForwardListClippedAtTarget):
      (WebCore::HistoryController::updateCurrentItem):
      (WebCore::HistoryController::pushState):
      (WebCore::HistoryController::replaceState):
      * loader/ImageLoader.cpp:
      (WebCore::pageIsBeingDismissed):
      * loader/MixedContentChecker.cpp:
      (WebCore::MixedContentChecker::client):
      * loader/NavigationScheduler.cpp:
      (WebCore::ScheduledURLNavigation::fire):
      (WebCore::ScheduledURLNavigation::didStartTimer):
      (WebCore::ScheduledURLNavigation::didStopTimer):
      (WebCore::ScheduledRedirect::shouldStartTimer):
      (WebCore::ScheduledRedirect::fire):
      (WebCore::ScheduledRefresh::fire):
      (WebCore::ScheduledHistoryNavigation::fire):
      (WebCore::ScheduledFormSubmission::fire):
      (WebCore::ScheduledFormSubmission::didStartTimer):
      (WebCore::ScheduledFormSubmission::didStopTimer):
      (WebCore::NavigationScheduler::mustLockBackForwardList):
      (WebCore::NavigationScheduler::scheduleLocationChange):
      (WebCore::NavigationScheduler::scheduleFormSubmission):
      (WebCore::NavigationScheduler::scheduleRefresh):
      (WebCore::NavigationScheduler::schedule):
      * loader/PingLoader.cpp:
      (WebCore::PingLoader::loadImage):
      (WebCore::PingLoader::sendPing):
      (WebCore::PingLoader::sendViolationReport):
      (WebCore::PingLoader::PingLoader):
      * loader/PolicyChecker.cpp:
      (WebCore::PolicyChecker::checkNavigationPolicy):
      (WebCore::PolicyChecker::checkNewWindowPolicy):
      (WebCore::PolicyChecker::checkContentPolicy):
      (WebCore::PolicyChecker::cancelCheck):
      (WebCore::PolicyChecker::stopCheck):
      (WebCore::PolicyChecker::cannotShowMIMEType):
      (WebCore::PolicyChecker::continueLoadAfterWillSubmitForm):
      (WebCore::PolicyChecker::continueAfterNavigationPolicy):
      (WebCore::PolicyChecker::continueAfterNewWindowPolicy):
      (WebCore::PolicyChecker::handleUnimplementablePolicy):
      * loader/ProgressTracker.cpp:
      (WebCore::ProgressTracker::progressStarted):
      (WebCore::ProgressTracker::progressCompleted):
      (WebCore::ProgressTracker::finalProgressComplete):
      (WebCore::ProgressTracker::incrementProgress):
      (WebCore::ProgressTracker::progressHeartbeatTimerFired):
      * loader/ResourceLoadNotifier.cpp:
      (WebCore::ResourceLoadNotifier::didReceiveAuthenticationChallenge):
      (WebCore::ResourceLoadNotifier::didCancelAuthenticationChallenge):
      (WebCore::ResourceLoadNotifier::willSendRequest):
      (WebCore::ResourceLoadNotifier::didFailToLoad):
      (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
      (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
      (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
      (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
      (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
      (WebCore::ResourceLoadNotifier::dispatchDidFailLoading):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::ResourceLoader):
      (WebCore::ResourceLoader::start):
      (WebCore::ResourceLoader::frameLoader):
      (WebCore::ResourceLoader::willSendRequest):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::pluginIsLoadable):
      (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
      (WebCore::SubframeLoader::createJavaAppletWidget):
      (WebCore::SubframeLoader::loadOrRedirectSubframe):
      (WebCore::SubframeLoader::loadSubframe):
      (WebCore::SubframeLoader::allowPlugins):
      (WebCore::SubframeLoader::shouldUsePlugin):
      (WebCore::SubframeLoader::loadPlugin):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::selectCache):
      (WebCore::ApplicationCacheGroup::selectCacheWithoutManifestURL):
      (WebCore::ApplicationCacheGroup::update):
      (WebCore::ApplicationCacheGroup::createResourceHandle):
      (WebCore::ApplicationCacheGroup::didReceiveResponse):
      (WebCore::ApplicationCacheGroup::didFinishLoading):
      (WebCore::ApplicationCacheGroup::didFail):
      (WebCore::ApplicationCacheGroup::addEntry):
      (WebCore::CallCacheListenerTask::performTask):
      (WebCore::ApplicationCacheGroup::postListenerTask):
      * loader/appcache/DOMApplicationCache.cpp:
      (WebCore::DOMApplicationCache::applicationCacheHost):
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create):
      (WebCore::LegacyWebArchive::createFromSelection):
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::addAdditionalRequestHeaders):
      (WebCore::CachedResource::load):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::requestImage):
      (WebCore::CachedResourceLoader::checkInsecureContent):
      (WebCore::CachedResourceLoader::canRequest):
      (WebCore::CachedResourceLoader::shouldContinueAfterNotifyingLoadedFromMemoryCache):
      (WebCore::CachedResourceLoader::requestResource):
      (WebCore::CachedResourceLoader::clientDefersImage):
      (WebCore::CachedResourceLoader::cachePolicy):
      (WebCore::CachedResourceLoader::loadDone):
      * loader/icon/IconController.cpp:
      (WebCore::IconController::commitToDatabase):
      (WebCore::IconController::startLoader):
      (WebCore::IconController::continueLoadWithDecision):
      * loader/icon/IconLoader.cpp:
      (WebCore::IconLoader::startLoading):
      (WebCore::IconLoader::notifyFinished):
      * page/Chrome.cpp:
      (WebCore::canRunModalIfDuringPageDismissal):
      * page/ContextMenuController.cpp:
      (WebCore::openNewWindow):
      (WebCore::ContextMenuController::contextMenuItemSelected):
      (WebCore::ContextMenuController::populate):
      (WebCore::ContextMenuController::checkOrEnableIfNeeded):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::dispatchAllPendingBeforeUnloadEvents):
      (WebCore::DOMWindow::postMessageTimerFired):
      (WebCore::DOMWindow::close):
      (WebCore::DOMWindow::print):
      (WebCore::DOMWindow::stop):
      (WebCore::DOMWindow::setName):
      (WebCore::DOMWindow::opener):
      (WebCore::DOMWindow::dispatchLoadEvent):
      (WebCore::DOMWindow::setLocation):
      (WebCore::DOMWindow::createWindow):
      (WebCore::DOMWindow::open):
      * page/DOMWindowExtension.cpp:
      (WebCore::DOMWindowExtension::disconnectFrameForPageCache):
      (WebCore::DOMWindowExtension::reconnectFrameFromPageCache):
      (WebCore::DOMWindowExtension::willDestroyGlobalObjectInCachedFrame):
      (WebCore::DOMWindowExtension::willDestroyGlobalObjectInFrame):
      (WebCore::DOMWindowExtension::willDetachGlobalObjectFromFrame):
      * page/DragController.cpp:
      (WebCore::DragController::performDrag):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleMousePressEvent):
      (WebCore::EventHandler::keyEvent):
      * page/Frame.cpp:
      (WebCore::Frame::~Frame):
      (WebCore::Frame::setView):
      (WebCore::Frame::injectUserScripts):
      (WebCore::Frame::willDetachPage):
      * page/Frame.h:
      (WebCore::Frame::loader):
      * page/FrameView.cpp:
      (WebCore::FrameView::mediaType):
      (WebCore::FrameView::setFixedVisibleContentRect):
      (WebCore::FrameView::shouldUseLoadTimeDeferredRepaintDelay):
      (WebCore::FrameView::performPostLayoutTasks):
      (WebCore::FrameView::autoSizeIfEnabled):
      (WebCore::FrameView::scrollTo):
      (WebCore::FrameView::shouldSuspendScrollAnimations):
      (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
      (WebCore::FrameView::wheelEvent):
      (WebCore::FrameView::firePaintRelatedMilestones):
      * page/History.cpp:
      (WebCore::History::stateInternal):
      (WebCore::History::stateObjectAdded):
      * page/Location.cpp:
      (WebCore::Location::setLocation):
      * page/Navigator.cpp:
      (WebCore::Navigator::userAgent):
      * page/Page.cpp:
      (WebCore::Page::goToItem):
      (WebCore::Page::refreshPlugins):
      (WebCore::Page::setDefersLoading):
      (WebCore::Page::setMemoryCacheClientCallsEnabled):
      (WebCore::Page::addRelevantRepaintedObject):
      * page/Performance.cpp:
      (WebCore::Performance::now):
      * page/PerformanceNavigation.cpp:
      (WebCore::PerformanceNavigation::type):
      (WebCore::PerformanceNavigation::redirectCount):
      * page/PerformanceResourceTiming.cpp:
      (WebCore::monotonicTimeToDocumentMilliseconds):
      * page/mac/PageMac.cpp:
      (WebCore::Page::addSchedulePair):
      (WebCore::Page::removeSchedulePair):
      * platform/ios/PasteboardIOS.mm:
      (WebCore::documentFragmentWithImageResource):
      (WebCore::documentFragmentWithRTF):
      (WebCore::Pasteboard::documentFragmentForPasteboardItemAtIndex):
      * platform/mac/HTMLConverter.mm:
      (-[WebHTMLConverter _addAttachmentForElement:URL:needsParagraph:usePlaceholder:]):
      (-[WebHTMLConverter _loadFromDOMRange]):
      * platform/mac/PasteboardMac.mm:
      (WebCore::documentFragmentWithImageResource):
      (WebCore::documentFragmentWithRTF):
      (WebCore::fragmentFromWebArchive):
      * plugins/DOMMimeType.cpp:
      (WebCore::DOMMimeType::enabledPlugin):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::scrollTo):
      * svg/SVGAElement.cpp:
      (WebCore::SVGAElement::defaultEventHandler):
      * svg/graphics/SVGImage.cpp:
      (WebCore::SVGImage::~SVGImage):
      (WebCore::SVGImage::dataChanged):
      * testing/Internals.cpp:
      (WebCore::Internals::formControlStateOfPreviousHistoryItem):
      (WebCore::Internals::setFormControlStateOfPreviousHistoryItem):
      (WebCore::Internals::getReferencedFilePaths):
      (WebCore::Internals::forceReload):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::docLoaderFunc):
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::openFunc):
      (WebCore::XMLDocumentParser::startElementNs):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::load):
      (BlackBerry::WebKit::WebPagePrivate::loadString):
      (BlackBerry::WebKit::WebPagePrivate::stopCurrentLoad):
      (BlackBerry::WebKit::closeURLRecursively):
      (BlackBerry::WebKit::WebPage::dispatchBeforeUnloadEvent):
      (BlackBerry::WebKit::WebPagePrivate::shouldSendResizeEvent):
      (BlackBerry::WebKit::WebPagePrivate::zoomToInitialScaleOnLoad):
      (BlackBerry::WebKit::WebPage::reload):
      (BlackBerry::WebKit::WebPage::reloadFromCache):
      (BlackBerry::WebKit::WebPage::textEncoding):
      (BlackBerry::WebKit::WebPage::forcedTextEncoding):
      (BlackBerry::WebKit::WebPage::setForcedTextEncoding):
      (BlackBerry::WebKit::WebPage::title):
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      (WebCore::ChromeClientBlackBerry::createWindow):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidChangeLocationWithinPage):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForResponse):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientBlackBerry::delayPolicyCheckUntilFragmentExists):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientBlackBerry::createPlugin):
      (WebCore::FrameLoaderClientBlackBerry::receivedData):
      (WebCore::FrameLoaderClientBlackBerry::createDocumentLoader):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidCommitLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidFailProvisionalLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchWillSubmitForm):
      (WebCore::FrameLoaderClientBlackBerry::createFrame):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidLayout):
      (WebCore::FrameLoaderClientBlackBerry::dispatchWillSendRequest):
      (WebCore::FrameLoaderClientBlackBerry::restoreViewState):
      (WebCore::FrameLoaderClientBlackBerry::startDownload):
      (WebCore::FrameLoaderClientBlackBerry::canCachePage):
      (WebCore::FrameLoaderClientBlackBerry::didRestoreFromPageCache):
      * WebKitSupport/PagePopup.cpp:
      (BlackBerry::WebKit::PagePopup::initialize):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      (kit):
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::callShouldCloseOnWebView):
      (DumpRenderTreeSupportEfl::clearOpener):
      (DumpRenderTreeSupportEfl::frameChildren):
      (DumpRenderTreeSupportEfl::responseMimeType):
      (DumpRenderTreeSupportEfl::provisionalURL):
      * WebCoreSupport/FrameLoaderClientEfl.cpp:
      (WebCore::FrameLoaderClientEfl::callPolicyFunction):
      (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientEfl::updateGlobalHistoryRedirectLinks):
      (WebCore::FrameLoaderClientEfl::updateGlobalHistory):
      * ewk/ewk_frame.cpp:
      (_ewk_frame_loader_efl_get):
      (_ewk_frame_smart_del):
      (_ewk_frame_contents_set_internal):
      (ewk_frame_stop):
      (ewk_frame_reload):
      (ewk_frame_reload_full):
      (ewk_frame_child_add):
      * ewk/ewk_view.cpp:
      (ewk_view_frame_focused_get):
      (ewk_view_setting_user_agent_set):
      (ewk_view_setting_encoding_custom_get):
      (ewk_view_setting_encoding_custom_set):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::clearOpener):
      (DumpRenderTreeSupportGtk::shouldClose):
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::dispatchWillSubmitForm):
      (WebKit::FrameLoaderClient::committedLoad):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForResponse):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      (WebKit::FrameLoaderClient::createFrame):
      (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_finalize):
      (webkit_web_frame_load_uri):
      (webkit_web_frame_load_data):
      (webkit_web_frame_load_request):
      (webkit_web_frame_stop_loading):
      (webkit_web_frame_reload):
      (webkit_web_frame_get_data_source):
      (webkit_web_frame_get_provisional_data_source):
      (webkit_web_frame_get_response_mime_type):
      (webkit_web_frame_get_network_response):
      (WebKit::kit):
      * webkit/webkitwebpolicydecision.cpp:
      (webkit_web_policy_decision_use):
      (webkit_web_policy_decision_ignore):
      (webkit_web_policy_decision_download):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_dispose):
      (webkit_web_view_reload):
      (webkit_web_view_reload_bypass_cache):
      (webkit_web_view_stop_loading):
      (webkit_web_view_can_show_mime_type):
      (webkit_web_view_set_custom_encoding):
      (webkit_web_view_get_custom_encoding):
      (webkit_web_view_get_subresources):
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/HostedNetscapePluginStream.mm:
      (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::performRequest):
      (WebKit::NetscapePluginInstanceProxy::loadRequest):
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (-[WebHostedNetscapePluginView pluginView:receivedResponse:]):
      * Plugins/WebBaseNetscapePluginView.mm:
      (-[WebBaseNetscapePluginView requestWithURLCString:]):
      * Plugins/WebNetscapePluginStream.mm:
      (WebNetscapePluginStream::WebNetscapePluginStream):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView loadStream]):
      (-[WebNetscapePluginView pluginView:receivedResponse:]):
      (-[WebNetscapePluginView loadPluginRequest:]):
      (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
      * Plugins/WebPluginController.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
      (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebFrameLoaderClient::dispatchWillSubmitForm):
      (WebFrameLoaderClient::updateGlobalHistory):
      (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebFrameLoaderClient::restoreViewState):
      (WebFrameLoaderClient::transitionToCommittedForNewPage):
      (WebFrameLoaderClient::createFrame):
      * WebCoreSupport/WebFrameNetworkingContext.mm:
      (WebFrameNetworkingContext::blockedError):
      * WebCoreSupport/WebPlatformStrategies.mm:
      (WebPlatformStrategies::getPluginInfo):
      * WebView/WebFrame.mm:
      (kit):
      (-[WebFrame _dataSource]):
      (-[WebFrame _canProvideDocumentSource]):
      (-[WebFrame _commitData:]):
      (-[WebFrame _firstLayoutDone]):
      (-[WebFrame _loadType]):
      (-[WebFrame _cacheabilityDictionary]):
      (-[WebFrame _clearOpener]):
      (-[WebFrame provisionalDataSource]):
      (-[WebFrame dataSource]):
      (-[WebFrame loadRequest:]):
      (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
      (-[WebFrame loadArchive:]):
      (-[WebFrame stopLoading]):
      (-[WebFrame reload]):
      (-[WebFrame reloadFromOrigin]):
      * WebView/WebHTMLRepresentation.mm:
      (-[WebHTMLRepresentation receivedData:withDataSource:]):
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
      * WebView/WebPDFView.mm:
      (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
      * WebView/WebRenderLayer.mm:
      (-[WebRenderLayer initWithWebFrame:]):
      * WebView/WebRenderNode.mm:
      (-[WebRenderNode _initWithCoreFrame:]):
      * WebView/WebView.mm:
      (-[WebView _close]):
      (-[WebView _loadBackForwardListFromOtherView:]):
      (-[WebView _cachedResponseForURL:]):
      (-[WebView setCustomTextEncodingName:]):
      (-[WebView shouldClose]):
      
      Source/WebKit/qt:
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::closeWindowSoon):
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::shouldClose):
      (DumpRenderTreeSupportQt::responseMimeType):
      (DumpRenderTreeSupportQt::clearOpener):
      (DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows):
      (DumpRenderTreeSupportQt::setAlternateHtml):
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (WebCore::FrameLoaderClientQt::callPolicyFunction):
      (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
      (WebCore::FrameLoaderClientQt::updateGlobalHistory):
      (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
      (WebCore::FrameLoaderClientQt::callErrorPageExtension):
      (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientQt::startDownload):
      (WebCore::FrameLoaderClientQt::createFrame):
      (WebCore::FrameLoaderClientQt::objectContentType):
      * WebCoreSupport/QWebFrameAdapter.cpp:
      (QWebFrameAdapter::load):
      (QWebFrameAdapter::setContent):
      (QWebFrameAdapter::setHtml):
      (QWebFrameAdapter::kit):
      (QWebFrameAdapter::title):
      (QWebFrameAdapter::clearCoreFrame):
      * WebCoreSupport/QWebPageAdapter.cpp:
      (frameLoadRequest):
      (openNewWindow):
      (QWebPageAdapter::triggerAction):
      (QWebPageAdapter::currentFrame):
      
      Source/WebKit/win:
      
      * WebCoreSupport/WebContextMenuClient.cpp:
      (WebContextMenuClient::searchWithGoogle):
      * WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebFrameLoaderClient::updateGlobalHistory):
      (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebFrameLoaderClient::savePlatformDataToCachedFrame):
      (WebFrameLoaderClient::createFrame):
      (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
      * WebCoreSupport/WebFrameNetworkingContext.cpp:
      (WebFrameNetworkingContext::blockedError):
      (WebFrameNetworkingContext::referrer):
      * WebElementPropertyBag.cpp:
      (WebElementPropertyBag::Read):
      * WebFrame.cpp:
      (kit):
      (WebFrame::reloadFromOrigin):
      (WebFrame::loadRequest):
      (WebFrame::loadData):
      (WebFrame::dataSource):
      (WebFrame::provisionalDataSource):
      (WebFrame::stopLoading):
      (WebFrame::reload):
      (WebFrame::firstLayoutDone):
      (WebFrame::loadType):
      (WebFrame::clearOpener):
      (WebFrame::dispatchWillSubmitForm):
      (WebFrame::receivedPolicyDecision):
      (WebFrame::dispatchDecidePolicyForResponse):
      (WebFrame::dispatchDecidePolicyForNewWindowAction):
      (WebFrame::dispatchDecidePolicyForNavigationAction):
      (WebFrame::createJavaAppletWidget):
      * WebFramePolicyListener.cpp:
      (WebFramePolicyListener::receivedPolicyDecision):
      * WebView.cpp:
      (WebView::close):
      (WebView::canShowMIMEType):
      (WebView::setCustomTextEncodingName):
      (WebView::loadBackForwardListFromOtherView):
      (WebView::shouldClose):
      
      Source/WebKit/wince:
      
      * WebCoreSupport/FrameLoaderClientWinCE.cpp:
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForResponse):
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNewWindowAction):
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNavigationAction):
      (WebKit::FrameLoaderClientWinCE::dispatchWillSubmitForm):
      * WebCoreSupport/FrameNetworkingContextWinCE.cpp:
      (WebKit::FrameNetworkingContextWinCE::referrer):
      * WebView.cpp:
      (WebView::createFrame):
      (WebView::load):
      (WebView::reload):
      (WebView::stop):
      
      Source/WebKit2:
      
      * Shared/WebRenderLayer.cpp:
      (WebKit::WebRenderLayer::create):
      * Shared/WebRenderObject.cpp:
      (WebKit::WebRenderObject::create):
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      (WebKit::GeolocationPermissionRequestManager::startRequestForGeolocation):
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameGetFrameLoadState):
      (WKBundleFrameClearOpener):
      (WKBundleFrameCallShouldCloseOnWebView):
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      (WebKit::InjectedBundleNodeHandle::documentFrame):
      (WebKit::InjectedBundleNodeHandle::htmlFrameElementContentFrame):
      (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      (WebKit::InjectedBundleDOMWindowExtension::frame):
      * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
      (WebKit::InjectedBundleHitTestResult::frame):
      (WebKit::InjectedBundleHitTestResult::targetFrame):
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      (WebKit::PDFPlugin::clickedLink):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::webPage):
      (WebKit::PluginView::didFailToInitializePlugin):
      (WebKit::PluginView::performFrameLoadURLRequest):
      (WebKit::PluginView::userAgent):
      (WebKit::PluginView::loadURL):
      (WebKit::PluginView::cancelManualStreamLoad):
      (WebKit::PluginView::proxiesForURL):
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::focusedElementChanged):
      (WebKit::WebChromeClient::focusedFrameChanged):
      (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel):
      (WebKit::WebChromeClient::closeWindowSoon):
      (WebKit::WebChromeClient::runJavaScriptAlert):
      (WebKit::WebChromeClient::runJavaScriptConfirm):
      (WebKit::WebChromeClient::runJavaScriptPrompt):
      (WebKit::WebChromeClient::unavailablePluginButtonClicked):
      (WebKit::WebChromeClient::print):
      (WebKit::WebChromeClient::exceededDatabaseQuota):
      (WebKit::WebChromeClient::runOpenPanel):
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      (WebKit::WebContextMenuClient::searchWithGoogle):
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::textFieldDidBeginEditing):
      (WebKit::WebEditorClient::textFieldDidEndEditing):
      (WebKit::WebEditorClient::textDidChangeInTextField):
      (WebKit::WebEditorClient::textDidChangeInTextArea):
      (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
      (WebKit::WebEditorClient::textWillBeDeletedInTextField):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      (WebKit::WebFrameLoaderClient::dispatchWillSendSubmitEvent):
      (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
      (WebKit::WebFrameLoaderClient::updateGlobalHistory):
      (WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebKit::WebFrameLoaderClient::restoreViewState):
      (WebKit::WebFrameLoaderClient::createFrame):
      (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
      (WebKit::WebFrameLoaderClient::objectContentType):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::WebPlatformStrategies::getPluginInfo):
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      (WebKit::WebFrameNetworkingContext::blockedError):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::didReceivePolicyDecision):
      (WebKit::WebFrame::startDownload):
      (WebKit::WebFrame::source):
      (WebKit::WebFrame::contentsAsString):
      (WebKit::WebFrame::url):
      (WebKit::WebFrame::parentFrame):
      (WebKit::WebFrame::childFrames):
      (WebKit::WebFrame::stopLoading):
      (WebKit::WebFrame::frameForContext):
      (WebKit::WebFrame::provisionalURL):
      (WebKit::WebFrame::suggestedFilenameForResourceWithURL):
      (WebKit::WebFrame::mimeTypeForResourceWithURL):
      (WebKit::WebFrameFilter::shouldIncludeSubframe):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::createPlugin):
      (WebKit::WebPage::close):
      (WebKit::WebPage::tryClose):
      (WebKit::WebPage::loadURLRequest):
      (WebKit::WebPage::loadDataImpl):
      (WebKit::WebPage::linkClicked):
      (WebKit::WebPage::stopLoadingFrame):
      (WebKit::WebPage::stopLoading):
      (WebKit::WebPage::reload):
      (WebKit::WebPage::tryRestoreScrollPosition):
      (WebKit::WebPage::getMainResourceDataOfFrame):
      (WebKit::resourceDataForFrame):
      (WebKit::shouldReuseCommittedSandboxExtension):
      (WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad):
      (WebKit::WebPage::hasLocalDataForURL):
      (WebKit::WebPage::setCustomTextEncodingName):
      (WebKit::WebPage::canPluginHandleResponse):
      (WebKit::WebPage::canShowMIMEType):
      (WebKit::WebPage::didCommitLoad):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::platformHasLocalDataForURL):
      (WebKit::cachedResponseForURL):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::downloadRequest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df550b96
  4. 22 Jul, 2013 1 commit
  5. 17 Jul, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r152701, r152703, r152739, r152754, · eab043f9
      commit-queue@webkit.org authored
      and r152756.
      http://trac.webkit.org/changeset/152701
      http://trac.webkit.org/changeset/152703
      http://trac.webkit.org/changeset/152739
      http://trac.webkit.org/changeset/152754
      http://trac.webkit.org/changeset/152756
      https://bugs.webkit.org/show_bug.cgi?id=118821
      
      this was a buggy fix and we're going to try something
      different (Requested by thorton on #webkit).
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * WebCore.exp.in:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * css/CSSDefaultStyleSheets.cpp:
      (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
      * css/unavailablePlugIns.css: Removed.
      * dom/EventListener.h:
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::updateWidget):
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::defaultEventHandler):
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::createJavaAppletWidget):
      * page/ChromeClient.h:
      (WebCore::ChromeClient::shouldUnavailablePluginMessageBeButton):
      * rendering/RenderEmbeddedObject.cpp:
      (WebCore::replacementTextRoundedRectPressedColor):
      (WebCore::RenderEmbeddedObject::RenderEmbeddedObject):
      (WebCore::RenderEmbeddedObject::setPluginUnavailabilityReason):
      (WebCore::RenderEmbeddedObject::setUnavailablePluginIndicatorIsPressed):
      (WebCore::RenderEmbeddedObject::paint):
      (WebCore::RenderEmbeddedObject::paintReplaced):
      (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
      (WebCore::RenderEmbeddedObject::replacementTextRect):
      (WebCore::RenderEmbeddedObject::isReplacementObscured):
      (WebCore::RenderEmbeddedObject::layout):
      (WebCore::RenderEmbeddedObject::isInUnavailablePluginIndicator):
      (WebCore::shouldUnavailablePluginMessageBeButton):
      (WebCore::RenderEmbeddedObject::handleUnavailablePluginIndicatorEvent):
      (WebCore::RenderEmbeddedObject::getCursor):
      (WebCore::RenderEmbeddedObject::canHaveChildren):
      * rendering/RenderEmbeddedObject.h:
      * rendering/RenderWidget.h:
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebChromeClient.h:
      * WebCoreSupport/WebChromeClient.mm:
      (WebChromeClient::shouldUnavailablePluginMessageBeButton):
      
      Source/WebKit2:
      
      * Platform/CoreIPC/HandleMessage.h:
      * Shared/APIClientTraits.cpp:
      * Shared/APIClientTraits.h:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebLoaderClient.cpp:
      (WebKit::WebLoaderClient::pluginLoadPolicy):
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::findPlugin):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/Plugins/PluginProcessConnection.cpp:
      (WebKit::PluginProcessConnection::didClose):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::pluginProcessCrashed):
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::shouldUnavailablePluginMessageBeButton):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::createPlugin):
      (WebKit::WebPage::canPluginHandleResponse):
      
      Tools:
      
      * MiniBrowser/mac/WK2BrowserWindowController.m:
      (-[WK2BrowserWindowController awakeFromNib]):
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::createWebViewWithOptions):
      
      LayoutTests:
      
      * editing/pasteboard/paste-noplugin-expected.txt:
      * http/tests/security/contentSecurityPolicy/object-src-url-blocked-expected.txt:
      * platform/mac/accessibility/plugin-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eab043f9
  6. 16 Jul, 2013 1 commit
  7. 03 Mar, 2013 2 commits
    • abarth@webkit.org's avatar
      Unreviewed attempted build fix. Adds back some includes removed in · 401a3791
      abarth@webkit.org authored
      http://trac.webkit.org/changeset/144565.
      
      Source/WebCore: 
      
      * Modules/mediastream/RTCPeerConnection.cpp:
      * bindings/ScriptControllerBase.cpp:
      * bindings/objc/DOM.mm:
      * bindings/v8/ScriptController.cpp:
      * bindings/v8/V8DOMWindowShell.cpp:
      * bindings/v8/custom/V8DOMWindowCustom.cpp:
      * css/CSSFontSelector.cpp:
      * css/WebKitCSSSVGDocumentValue.cpp:
      * dom/DOMImplementation.cpp:
      * dom/PendingScript.h:
      * dom/ScriptElement.cpp:
      * dom/ScriptElement.h:
      * history/CachedFrame.cpp:
      * html/DOMURL.cpp:
      * html/HTMLAnchorElement.cpp:
      * html/HTMLAppletElement.cpp:
      * html/HTMLElement.cpp:
      * html/HTMLEmbedElement.cpp:
      * html/HTMLFrameSetElement.cpp:
      * html/HTMLHtmlElement.cpp:
      * html/HTMLImageElement.cpp:
      * html/HTMLObjectElement.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/ImageDocument.cpp:
      * html/ImageInputType.cpp:
      * html/MediaDocument.cpp:
      * html/PluginDocument.cpp:
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore):
      * html/parser/HTMLConstructionSite.cpp:
      * html/parser/HTMLParserOptions.cpp:
      * html/parser/XSSAuditorDelegate.cpp:
      * inspector/InspectorDebuggerAgent.cpp:
      * inspector/InspectorFileSystemAgent.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorInstrumentation.h:
      * inspector/InspectorPageAgent.cpp:
      * inspector/NetworkResourcesData.cpp:
      * inspector/NetworkResourcesData.h:
      (WebCore):
      * loader/CookieJar.cpp:
      * loader/CrossOriginAccessControl.cpp:
      * loader/FrameLoader.cpp:
      * loader/MainResourceLoader.cpp:
      * loader/MixedContentChecker.cpp:
      * loader/PingLoader.cpp:
      * loader/SubframeLoader.cpp:
      * loader/SubresourceLoader.cpp:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * loader/appcache/ApplicationCacheHost.cpp:
      * loader/cache/CachedResource.cpp:
      * loader/icon/IconController.cpp:
      * page/DOMWindowExtension.cpp:
      * page/Frame.cpp:
      * page/PerformanceTiming.cpp:
      * page/PointerLockController.cpp:
      * page/animation/CSSPropertyAnimation.cpp:
      * platform/chromium/PasteboardChromium.cpp:
      * platform/efl/ErrorsEfl.cpp:
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      * platform/gtk/ErrorsGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/gtk/PasteboardHelper.h:
      * platform/mac/ClipboardMac.mm:
      * platform/mac/HTMLConverter.mm:
      * platform/qt/PasteboardQt.cpp:
      * plugins/DOMMimeType.cpp:
      * plugins/PluginView.cpp:
      * rendering/HitTestResult.cpp:
      * rendering/RenderImage.cpp:
      * rendering/RenderImageResource.cpp:
      * rendering/RenderImageResourceStyleImage.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayerBacking.cpp:
      * svg/SVGImageLoader.cpp:
      * svg/SVGUseElement.cpp:
      * testing/MockPagePopupDriver.cpp:
      * xml/XSLStyleSheet.h:
      (WebCore):
      
      Source/WebKit/chromium: 
      
      * src/ApplicationCacheHost.cpp:
      * src/AssociatedURLLoader.cpp:
      * src/EditorClientImpl.cpp:
      * src/SharedWorkerRepository.cpp:
      * src/WebDataSourceImpl.cpp:
      * src/WebFrameImpl.h:
      (WebCore):
      * src/WebNode.cpp:
      * src/WebSharedWorkerImpl.cpp:
      * tests/FrameLoaderClientImplTest.cpp:
      
      Source/WebKit/efl: 
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * ewk/ewk_frame.cpp:
      
      Source/WebKit/mac: 
      
      * DOM/WebDOMOperations.mm:
      * Misc/WebNSPasteboardExtras.mm:
      * WebCoreSupport/WebFrameNetworkingContext.mm:
      * WebView/WebRenderLayer.mm:
      * WebView/WebRenderNode.mm:
      
      Source/WebKit/qt: 
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      * WebCoreSupport/QWebPageAdapter.cpp:
      
      Source/WebKit2: 
      
      * Shared/WebRenderLayer.cpp:
      * Shared/WebRenderObject.cpp:
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      * WebProcess/WebProcess.cpp:
      * WebProcess/soup/WebProcessSoup.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      401a3791
    • abarth@webkit.org's avatar
      Unreviewed rollout of http://trac.webkit.org/r144530 · fa616dd3
      abarth@webkit.org authored
      As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
      https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
      large number of ASSERTs in chromium-win.
      
      Source/WebCore: 
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCPeerConnection.cpp:
      * Modules/notifications/Notification.cpp:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/ScriptControllerBase.cpp:
      * bindings/js/JSNodeCustom.cpp:
      * bindings/js/ScriptController.cpp:
      * bindings/js/ScriptSourceCode.h:
      (WebCore):
      * bindings/objc/DOM.mm:
      * bindings/v8/ScriptController.cpp:
      * bindings/v8/V8DOMWindowShell.cpp:
      * bindings/v8/custom/V8DOMWindowCustom.cpp:
      * css/CSSCrossfadeValue.h:
      (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
      (WebCore::CSSCrossfadeValue::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
      * css/CSSFontFaceSource.h:
      * css/CSSFontSelector.cpp:
      * css/WebKitCSSSVGDocumentValue.cpp:
      * css/WebKitCSSSVGDocumentValue.h:
      (WebCore):
      * dom/Clipboard.cpp:
      (WebCore::Clipboard::Clipboard):
      * dom/ContainerNode.cpp:
      * dom/DOMImplementation.cpp:
      * dom/PendingScript.h:
      * dom/ScriptElement.cpp:
      * dom/ScriptElement.h:
      * history/CachedFrame.cpp:
      * html/DOMURL.cpp:
      * html/HTMLAnchorElement.cpp:
      * html/HTMLAppletElement.cpp:
      * html/HTMLElement.cpp:
      * html/HTMLEmbedElement.cpp:
      * html/HTMLFrameSetElement.cpp:
      * html/HTMLHtmlElement.cpp:
      * html/HTMLImageElement.cpp:
      * html/HTMLObjectElement.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/ImageDocument.cpp:
      * html/ImageInputType.cpp:
      * html/MediaDocument.cpp:
      * html/PluginDocument.cpp:
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore):
      * html/parser/HTMLConstructionSite.cpp:
      * html/parser/HTMLParserOptions.cpp:
      * html/parser/HTMLScriptRunner.h:
      * html/parser/XSSAuditor.cpp:
      * html/parser/XSSAuditorDelegate.cpp:
      * inspector/InspectorDebuggerAgent.cpp:
      * inspector/InspectorFileSystemAgent.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorInstrumentation.h:
      (WebCore):
      * inspector/InspectorPageAgent.cpp:
      * inspector/NetworkResourcesData.cpp:
      * inspector/NetworkResourcesData.h:
      (WebCore):
      * loader/CookieJar.cpp:
      * loader/CrossOriginAccessControl.cpp:
      * loader/CrossOriginAccessControl.h:
      (WebCore):
      * loader/CrossOriginPreflightResultCache.h:
      * loader/DocumentThreadableLoader.h:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::FrameLoader):
      * loader/FrameLoader.h:
      (WebCore):
      (WebCore::FrameLoader::policyChecker):
      * loader/ImageLoader.cpp:
      * loader/ImageLoader.h:
      * loader/LinkLoader.h:
      (WebCore):
      * loader/MainResourceLoader.cpp:
      * loader/MainResourceLoader.h:
      (WebCore):
      * loader/MixedContentChecker.cpp:
      * loader/PingLoader.cpp:
      * loader/PolicyChecker.h:
      (WebCore):
      * loader/ProgressTracker.cpp:
      * loader/SubframeLoader.cpp:
      * loader/SubresourceLoader.cpp:
      * loader/TextTrackLoader.cpp:
      * loader/TextTrackLoader.h:
      (WebCore):
      * loader/ThreadableLoader.h:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * loader/appcache/ApplicationCacheGroup.h:
      (WebCore):
      * loader/appcache/ApplicationCacheHost.cpp:
      * loader/archive/cf/LegacyWebArchive.cpp:
      * loader/cache/CachedFont.cpp:
      * loader/cache/CachedFont.h:
      (CachedFontClient):
      (WebCore::CachedFontClient::~CachedFontClient):
      (WebCore::CachedFontClient::expectedType):
      (WebCore::CachedFontClient::resourceClientType):
      (WebCore::CachedFontClient::fontLoaded):
      (WebCore):
      * loader/cache/CachedFontClient.h: Removed.
      * loader/cache/CachedImage.cpp:
      * loader/cache/CachedRawResource.cpp:
      * loader/cache/CachedRawResource.h:
      (WebCore):
      (CachedRawResourceClient):
      (WebCore::CachedRawResourceClient::~CachedRawResourceClient):
      (WebCore::CachedRawResourceClient::expectedType):
      (WebCore::CachedRawResourceClient::resourceClientType):
      (WebCore::CachedRawResourceClient::dataSent):
      (WebCore::CachedRawResourceClient::responseReceived):
      (WebCore::CachedRawResourceClient::dataReceived):
      (WebCore::CachedRawResourceClient::redirectReceived):
      (WebCore::CachedRawResourceClient::dataDownloaded):
      * loader/cache/CachedRawResourceClient.h: Removed.
      * loader/cache/CachedResource.cpp:
      * loader/cache/CachedResourceHandle.cpp:
      (WebCore):
      * loader/cache/CachedResourceHandle.h:
      (WebCore):
      (WebCore::CachedResourceHandleBase::~CachedResourceHandleBase):
      (WebCore::CachedResourceHandleBase::CachedResourceHandleBase):
      * loader/cache/CachedSVGDocument.h:
      (CachedSVGDocumentClient):
      (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
      (WebCore::CachedSVGDocumentClient::expectedType):
      (WebCore::CachedSVGDocumentClient::resourceClientType):
      (WebCore):
      * loader/cache/CachedSVGDocumentClient.h: Removed.
      * loader/cache/CachedSVGDocumentReference.cpp: Removed.
      * loader/cache/CachedSVGDocumentReference.h:
      (WebCore):
      (WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
      (WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
      * loader/cache/CachedStyleSheetClient.h:
      (WebCore):
      * loader/cache/MemoryCache.h:
      (WebCore):
      (MemoryCache):
      * loader/chromium/CachedRawResourceChromium.cpp:
      * loader/icon/IconController.cpp:
      * loader/icon/IconLoader.h:
      * loader/mac/ResourceLoaderMac.mm:
      * page/DOMWindowExtension.cpp:
      * page/Frame.cpp:
      (WebCore::Frame::Frame):
      (WebCore):
      (WebCore::Frame::reportMemoryUsage):
      * page/Frame.h:
      (WebCore):
      (Frame):
      (WebCore::Frame::init):
      (WebCore::Frame::loader):
      * page/PerformanceNavigation.cpp:
      * page/PerformanceTiming.cpp:
      * page/PointerLockController.cpp:
      * page/Settings.cpp:
      * page/animation/CSSPropertyAnimation.cpp:
      * platform/chromium/PasteboardChromium.cpp:
      * platform/efl/ErrorsEfl.cpp:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * platform/graphics/filters/FilterOperation.cpp:
      (WebCore):
      * platform/graphics/filters/FilterOperation.h:
      (WebCore):
      (WebCore::FilterOperation::ReferenceFilterOperation::setCachedSVGDocumentReference):
      (WebCore::FilterOperation::ReferenceFilterOperation::ReferenceFilterOperation):
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      * platform/gtk/ErrorsGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/gtk/PasteboardHelper.h:
      * platform/mac/ClipboardMac.h:
      * platform/mac/ClipboardMac.mm:
      * platform/mac/HTMLConverter.mm:
      * platform/mac/PasteboardMac.mm:
      * platform/network/AuthenticationChallengeBase.cpp:
      * platform/network/cf/CookieJarCFNet.cpp:
      * platform/network/cf/ResourceRequestCFNet.cpp:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/qt/PasteboardQt.cpp:
      * plugins/DOMMimeType.cpp:
      * plugins/PluginRequest.h: Removed.
      * plugins/PluginStream.h:
      (PluginStreamClient):
      (WebCore::PluginStreamClient::~PluginStreamClient):
      (WebCore::PluginStreamClient::streamDidFinishLoading):
      (WebCore):
      * plugins/PluginStreamClient.h: Removed.
      * plugins/PluginView.cpp:
      * plugins/PluginView.h:
      (WebCore):
      (PluginRequest):
      (WebCore::PluginRequest::PluginRequest):
      (WebCore::PluginRequest::frameLoadRequest):
      (WebCore::PluginRequest::notifyData):
      (WebCore::PluginRequest::sendNotification):
      (WebCore::PluginRequest::shouldAllowPopups):
      * rendering/HitTestResult.cpp:
      * rendering/InlineFlowBox.cpp:
      * rendering/RenderBox.cpp:
      * rendering/RenderEmbeddedObject.cpp:
      * rendering/RenderImage.cpp:
      * rendering/RenderImageResource.cpp:
      (WebCore::RenderImageResource::RenderImageResource):
      (WebCore):
      * rendering/RenderImageResource.h:
      (WebCore::RenderImageResource::image):
      (WebCore::RenderImageResource::errorOccurred):
      (WebCore::RenderImageResource::usesImageContainerSize):
      (WebCore::RenderImageResource::imageHasRelativeWidth):
      (WebCore::RenderImageResource::imageHasRelativeHeight):
      (WebCore::RenderImageResource::imageSize):
      * rendering/RenderImageResourceStyleImage.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayerBacking.cpp:
      * rendering/RenderLayerFilterInfo.h:
      (WebCore):
      * rendering/RenderListItem.cpp:
      * rendering/RenderListMarker.cpp:
      * rendering/RenderSnapshottedPlugIn.cpp:
      * rendering/RenderTableCol.cpp:
      * rendering/RenderTableRow.cpp:
      * rendering/RenderTableSection.cpp:
      * rendering/style/StyleCachedShader.h:
      * rendering/style/StyleCustomFilterProgram.cpp: Removed.
      * rendering/style/StyleCustomFilterProgram.h:
      (WebCore):
      (WebCore::StyleCustomFilterProgram::vertexShaderString):
      (StyleCustomFilterProgram):
      (WebCore::StyleCustomFilterProgram::fragmentShaderString):
      (WebCore::StyleCustomFilterProgram::isLoaded):
      (WebCore::StyleCustomFilterProgram::willHaveClients):
      (WebCore::StyleCustomFilterProgram::didRemoveLastClient):
      (WebCore::StyleCustomFilterProgram::notifyFinished):
      * svg/SVGFEImageElement.h:
      * svg/SVGFontFaceUriElement.h:
      (SVGFontFaceUriElement):
      * svg/SVGImageLoader.cpp:
      * svg/SVGUseElement.cpp:
      * svg/SVGUseElement.h:
      * svg/graphics/SVGImageCache.cpp:
      * testing/MockPagePopupDriver.cpp:
      * xml/XSLStyleSheet.h:
      (WebCore):
      * xml/XSLTProcessorLibxslt.cpp:
      * xml/parser/XMLDocumentParser.cpp:
      * xml/parser/XMLDocumentParser.h:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      
      Source/WebKit/chromium: 
      
      * src/ApplicationCacheHost.cpp:
      * src/AssociatedURLLoader.cpp:
      * src/EditorClientImpl.cpp:
      * src/SharedWorkerRepository.cpp:
      * src/WebDataSourceImpl.cpp:
      * src/WebFrameImpl.h:
      (WebCore):
      * src/WebNode.cpp:
      * src/WebSharedWorkerImpl.cpp:
      * tests/FrameLoaderClientImplTest.cpp:
      
      Source/WebKit/efl: 
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * ewk/ewk_frame.cpp:
      
      Source/WebKit/gtk: 
      
      * webkit/webkitwebpolicydecision.cpp:
      
      Source/WebKit/mac: 
      
      * DOM/WebDOMOperations.mm:
      * Misc/WebNSPasteboardExtras.mm:
      * WebCoreSupport/WebFrameNetworkingContext.mm:
      * WebView/WebRenderLayer.mm:
      * WebView/WebRenderNode.mm:
      
      Source/WebKit/qt: 
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      * WebCoreSupport/QWebPageAdapter.cpp:
      
      Source/WebKit2: 
      
      * NetworkProcess/HostRecord.h:
      * NetworkProcess/NetworkResourceLoadScheduler.h:
      * NetworkProcess/NetworkResourceLoader.h:
      (WebCore):
      * Shared/WebRenderLayer.cpp:
      * Shared/WebRenderObject.cpp:
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      * WebProcess/WebProcess.cpp:
      * WebProcess/soup/WebProcessSoup.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa616dd3
  8. 01 Mar, 2013 3 commits
    • ap@apple.com's avatar
      Reduce amount of rebuilding when touching networking headers · fc363ce1
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=111035
      
              Reviewed by Eric Seidel.
      
              This uses a number of common unsurprising techniques. One interesting observation
              is that including CachedResource related headers is very expensive. We can usually
              get away with their Client counterparts, and with CachedResourceHandle.
      
              * page/Frame.cpp:
              * page/Frame.h:
              Don't include FrameLoader, greatly reducing include graph for most non-loader files.
              This required making Frame::init() non-inline - I'm not sure why it ever was.
      
              * loader/FrameLoader.cpp:
              * loader/FrameLoader.h:
              Even though FrameLoader is logically on loading side of WebCore, it's included in
              too many places. Not including PolicyChecker.h and ResourceHandle.h was among the
              largest wins. As a future improvement, we should probably convert other members
              to OwnPtrs.
      
              * css/CSSCrossfadeValue.h: Initializing CachedResourceHandle with 0 requires a
              definition of a class it holds, but default construction does not.
      
              * loader/CrossOriginAccessControl.h: This file among others only needs ResourceHandleTypes.h,
              not ResourceHandle.h. This header is semi-recent, so not all include sites were updated.
      
              * loader/cache/CachedFont.h:
              * loader/cache/CachedFontClient.h: Added.
              * loader/cache/CachedRawResource.h:
              * loader/cache/CachedRawResourceClient.h: Added.
              * loader/cache/CachedSVGDocument.h:
              * loader/cache/CachedSVGDocumentClient.h: Added.
              These types were defining client types in the same headers, making it impossible
              to avoid including networking headers through CachedResource. Moved clients into
              separate files.
      
              * plugins/PluginStream.h:
              * plugins/PluginStreamClient.h: Added.
              Similar situation here.
      
              * loader/cache/CachedResourceHandle.cpp:
              * loader/cache/CachedResourceHandle.h:
              Moved functions that need to know about CachedResource to .cpp file. This is another
              huge win. Added a destructor, so that CachedResource woudn't be needed in all files
              that include CachedResourceHandle.
      
              * loader/cache/CachedSVGDocumentReference.cpp: Added.
              * loader/cache/CachedSVGDocumentReference.h:
              Moved constructor and virtual function implementations to a .cpp file - they need
              not inlining, and this lets us avoid including CachedSVGDocument.h in the header.
      
              * platform/graphics/filters/FilterOperation.cpp:
              * platform/graphics/filters/FilterOperation.h:
              Avoid including CachedSVGDocumentReference.h. This is not such a big win now that
              CachedSVGDocumentReference.h itself is smaller, but FilterOperation is so clearly
              rendering code that it seems best to cut any ties with resources and loading.
              Added a virtual destrutor in .cpp file, because inline destructors in polymorphic
              classes are generally harmful (due to code bloat).
      
              * plugins/PluginRequest.h: Added.
              * plugins/PluginView.h:
              Moved PluginRequest into a separate file, it was out of place in a view hierarchy
              class file.
      
              * rendering/RenderImageResource.cpp:
              * rendering/RenderImageResource.h:
              Moved definitions of virtual functions to a .cpp file. Thre is no win from having
              them inline, and now we don't need CachedImage.h in the header.
      
              * rendering/style/StyleCustomFilterProgram.cpp: Added.
              * rendering/style/StyleCustomFilterProgram.h:
              Ditto.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * Modules/mediastream/RTCPeerConnection.cpp:
              * Modules/notifications/Notification.cpp:
              * Target.pri:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcxproj/WebCore.vcxproj:
              * WebCore.vcxproj/WebCore.vcxproj.filters:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/ScriptControllerBase.cpp:
              * bindings/js/JSNodeCustom.cpp:
              * bindings/js/ScriptController.cpp:
              * bindings/js/ScriptSourceCode.h:
              * bindings/objc/DOM.mm:
              * bindings/v8/ScriptController.cpp:
              * bindings/v8/V8DOMWindowShell.cpp:
              * bindings/v8/custom/V8DOMWindowCustom.cpp:
              * css/CSSFontFaceSource.h:
              * css/CSSFontSelector.cpp:
              * css/WebKitCSSSVGDocumentValue.cpp:
              * css/WebKitCSSSVGDocumentValue.h:
              * dom/Clipboard.cpp:
              * dom/ContainerNode.cpp:
              * dom/DOMImplementation.cpp:
              * dom/PendingScript.h:
              * dom/ScriptElement.cpp:
              * dom/ScriptElement.h:
              * history/CachedFrame.cpp:
              * html/DOMURL.cpp:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLAppletElement.cpp:
              * html/HTMLElement.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLHtmlElement.cpp:
              * html/HTMLImageElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLPlugInElement.cpp:
              * html/ImageDocument.cpp:
              * html/ImageInputType.cpp:
              * html/MediaDocument.cpp:
              * html/PluginDocument.cpp:
              * html/canvas/WebGLRenderingContext.cpp:
              * html/parser/HTMLConstructionSite.cpp:
              * html/parser/HTMLParserOptions.cpp:
              * html/parser/HTMLScriptRunner.h:
              * html/parser/XSSAuditor.cpp:
              * html/parser/XSSAuditorDelegate.cpp:
              * inspector/InspectorDebuggerAgent.cpp:
              * inspector/InspectorFileSystemAgent.cpp:
              * inspector/InspectorFrontendHost.cpp:
              * inspector/InspectorInstrumentation.h:
              * inspector/InspectorPageAgent.cpp:
              * inspector/NetworkResourcesData.cpp:
              * inspector/NetworkResourcesData.h:
              * loader/CookieJar.cpp:
              * loader/CrossOriginAccessControl.cpp:
              * loader/CrossOriginPreflightResultCache.h:
              * loader/DocumentThreadableLoader.h:
              * loader/ImageLoader.cpp:
              * loader/ImageLoader.h:
              * loader/LinkLoader.h:
              * loader/MainResourceLoader.cpp:
              * loader/MainResourceLoader.h:
              * loader/MixedContentChecker.cpp:
              * loader/PingLoader.cpp:
              * loader/PolicyChecker.h:
              * loader/ProgressTracker.cpp:
              * loader/SubframeLoader.cpp:
              * loader/SubresourceLoader.cpp:
              * loader/TextTrackLoader.cpp:
              * loader/TextTrackLoader.h:
              * loader/ThreadableLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/appcache/ApplicationCacheHost.cpp:
              * loader/archive/cf/LegacyWebArchive.cpp:
              * loader/cache/CachedFont.cpp:
              * loader/cache/CachedImage.cpp:
              * loader/cache/CachedRawResource.cpp:
              * loader/cache/CachedResource.cpp:
              * loader/cache/CachedStyleSheetClient.h:
              * loader/cache/MemoryCache.cpp:
              * loader/cache/MemoryCache.h:
              * loader/chromium/CachedRawResourceChromium.cpp:
              * loader/icon/IconController.cpp:
              * loader/icon/IconLoader.h:
              * loader/mac/ResourceLoaderMac.mm:
              * page/DOMWindowExtension.cpp:
              * page/DragController.cpp:
              * page/PerformanceNavigation.cpp:
              * page/PerformanceTiming.cpp:
              * page/PointerLockController.cpp:
              * page/Settings.cpp:
              * page/animation/CSSPropertyAnimation.cpp:
              * platform/chromium/PasteboardChromium.cpp:
              * platform/efl/ErrorsEfl.cpp:
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
              * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
              * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
              * platform/gtk/ErrorsGtk.cpp:
              * platform/gtk/PasteboardGtk.cpp:
              * platform/gtk/PasteboardHelper.h:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/HTMLConverter.mm:
              * platform/mac/PasteboardMac.mm:
              * platform/network/AuthenticationChallengeBase.cpp:
              * platform/network/cf/CookieJarCFNet.cpp:
              * platform/network/cf/ResourceRequestCFNet.cpp:
              * platform/network/mac/CookieStorageMac.mm:
              * platform/qt/PasteboardQt.cpp:
              * plugins/DOMMimeType.cpp:
              * plugins/PluginView.cpp:
              * rendering/HitTestResult.cpp:
              * rendering/InlineFlowBox.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderEmbeddedObject.cpp:
              * rendering/RenderImage.cpp:
              * rendering/RenderImageResourceStyleImage.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayerBacking.cpp:
              * rendering/RenderLayerFilterInfo.h:
              * rendering/RenderListItem.cpp:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderSnapshottedPlugIn.cpp:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/style/StyleCachedShader.h:
              * svg/SVGFEImageElement.h:
              * svg/SVGFontFaceUriElement.h:
              * svg/SVGImageLoader.cpp:
              * svg/SVGUseElement.cpp:
              * svg/SVGUseElement.h:
              * svg/graphics/SVGImageCache.cpp:
              * testing/MockPagePopupDriver.cpp:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessorLibxslt.cpp:
              * xml/parser/XMLDocumentParser.cpp:
              * xml/parser/XMLDocumentParser.h:
              * xml/parser/XMLDocumentParserLibxml2.cpp:
              Many self-evident changes - removing unnecessary header includes, adding smaller
              more local ones that are now necessary.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fc363ce1
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r144422 and r144424. · 0b87a6c7
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/144422
      http://trac.webkit.org/changeset/144424
      https://bugs.webkit.org/show_bug.cgi?id=111167
      
      Caused over 20 tests to fail assertion on Chromium Win port as
      ASSERTION FAILED: m_platformRequestUpdated (Requested by
      toyoshim on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-01
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCPeerConnection.cpp:
      * Modules/notifications/Notification.cpp:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/ScriptControllerBase.cpp:
      * bindings/js/JSNodeCustom.cpp:
      * bindings/js/ScriptController.cpp:
      * bindings/js/ScriptSourceCode.h:
      * bindings/objc/DOM.mm:
      * bindings/v8/ScriptController.cpp:
      * bindings/v8/V8DOMWindowShell.cpp:
      * bindings/v8/custom/V8DOMWindowCustom.cpp:
      * css/CSSCrossfadeValue.h:
      (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
      (WebCore::CSSCrossfadeValue::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
      * css/CSSFontFaceSource.h:
      * css/CSSFontSelector.cpp:
      * css/WebKitCSSSVGDocumentValue.cpp:
      * css/WebKitCSSSVGDocumentValue.h:
      (WebCore):
      * dom/Clipboard.cpp:
      (WebCore::Clipboard::Clipboard):
      * dom/ContainerNode.cpp:
      * dom/DOMImplementation.cpp:
      * dom/PendingScript.h:
      * dom/ScriptElement.cpp:
      * dom/ScriptElement.h:
      * history/CachedFrame.cpp:
      * html/DOMURL.cpp:
      * html/HTMLAnchorElement.cpp:
      * html/HTMLAppletElement.cpp:
      * html/HTMLElement.cpp:
      * html/HTMLEmbedElement.cpp:
      * html/HTMLFrameSetElement.cpp:
      * html/HTMLHtmlElement.cpp:
      * html/HTMLImageElement.cpp:
      * html/HTMLObjectElement.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/ImageDocument.cpp:
      * html/ImageInputType.cpp:
      * html/MediaDocument.cpp:
      * html/PluginDocument.cpp:
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore):
      * html/parser/HTMLConstructionSite.cpp:
      * html/parser/HTMLParserOptions.cpp:
      * html/parser/HTMLScriptRunner.h:
      * html/parser/XSSAuditor.cpp:
      * html/parser/XSSAuditorDelegate.cpp:
      * inspector/InspectorDebuggerAgent.cpp:
      * inspector/InspectorFileSystemAgent.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorInstrumentation.h:
      (WebCore):
      * inspector/InspectorPageAgent.cpp:
      * inspector/NetworkResourcesData.cpp:
      * inspector/NetworkResourcesData.h:
      (WebCore):
      * loader/CookieJar.cpp:
      * loader/CrossOriginAccessControl.cpp:
      * loader/CrossOriginAccessControl.h:
      (WebCore):
      * loader/CrossOriginPreflightResultCache.h:
      * loader/DocumentThreadableLoader.h:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::FrameLoader):
      * loader/FrameLoader.h:
      (WebCore):
      (WebCore::FrameLoader::policyChecker):
      * loader/ImageLoader.cpp:
      * loader/ImageLoader.h:
      * loader/LinkLoader.h:
      * loader/MainResourceLoader.cpp:
      * loader/MainResourceLoader.h:
      * loader/MixedContentChecker.cpp:
      * loader/PingLoader.cpp:
      * loader/PolicyChecker.h:
      (WebCore):
      * loader/ProgressTracker.cpp:
      * loader/SubframeLoader.cpp:
      * loader/SubresourceLoader.cpp:
      * loader/TextTrackLoader.cpp:
      * loader/TextTrackLoader.h:
      * loader/ThreadableLoader.h:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * loader/appcache/ApplicationCacheGroup.h:
      (WebCore):
      * loader/appcache/ApplicationCacheHost.cpp:
      * loader/archive/cf/LegacyWebArchive.cpp:
      * loader/cache/CachedFont.cpp:
      * loader/cache/CachedFont.h:
      (CachedFontClient):
      (WebCore::CachedFontClient::~CachedFontClient):
      (WebCore::CachedFontClient::expectedType):
      (WebCore::CachedFontClient::resourceClientType):
      (WebCore::CachedFontClient::fontLoaded):
      (WebCore):
      * loader/cache/CachedFontClient.h: Removed.
      * loader/cache/CachedImage.cpp:
      * loader/cache/CachedRawResource.cpp:
      * loader/cache/CachedRawResource.h:
      (WebCore):
      (CachedRawResourceClient):
      (WebCore::CachedRawResourceClient::~CachedRawResourceClient):
      (WebCore::CachedRawResourceClient::expectedType):
      (WebCore::CachedRawResourceClient::resourceClientType):
      (WebCore::CachedRawResourceClient::dataSent):
      (WebCore::CachedRawResourceClient::responseReceived):
      (WebCore::CachedRawResourceClient::dataReceived):
      (WebCore::CachedRawResourceClient::redirectReceived):
      (WebCore::CachedRawResourceClient::dataDownloaded):
      * loader/cache/CachedRawResourceClient.h: Removed.
      * loader/cache/CachedResource.cpp:
      * loader/cache/CachedResourceHandle.cpp:
      * loader/cache/CachedResourceHandle.h:
      (WebCore::CachedResourceHandleBase::~CachedResourceHandleBase):
      (WebCore::CachedResourceHandleBase::CachedResourceHandleBase):
      * loader/cache/CachedSVGDocument.h:
      (CachedSVGDocumentClient):
      (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
      (WebCore::CachedSVGDocumentClient::expectedType):
      (WebCore::CachedSVGDocumentClient::resourceClientType):
      (WebCore):
      * loader/cache/CachedSVGDocumentClient.h: Removed.
      * loader/cache/CachedSVGDocumentReference.cpp: Removed.
      * loader/cache/CachedSVGDocumentReference.h:
      (WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
      (WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
      * loader/cache/CachedStyleSheetClient.h:
      * loader/cache/MemoryCache.cpp:
      * loader/cache/MemoryCache.h:
      (WebCore):
      (MemoryCache):
      * loader/chromium/CachedRawResourceChromium.cpp:
      * loader/icon/IconController.cpp:
      * loader/icon/IconLoader.h:
      * loader/mac/ResourceLoaderMac.mm:
      * page/DOMWindowExtension.cpp:
      * page/DragController.cpp:
      * page/Frame.cpp:
      (WebCore::Frame::Frame):
      (WebCore::Frame::reportMemoryUsage):
      * page/Frame.h:
      (WebCore):
      (Frame):
      (WebCore::Frame::init):
      (WebCore::Frame::loader):
      * page/PerformanceNavigation.cpp:
      * page/PerformanceTiming.cpp:
      * page/PointerLockController.cpp:
      * page/Settings.cpp:
      * page/animation/CSSPropertyAnimation.cpp:
      * platform/chromium/PasteboardChromium.cpp:
      * platform/efl/ErrorsEfl.cpp:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * platform/graphics/filters/FilterOperation.cpp:
      * platform/graphics/filters/FilterOperation.h:
      (WebCore::FilterOperation::ReferenceFilterOperation::setCachedSVGDocumentReference):
      (WebCore::FilterOperation::ReferenceFilterOperation::ReferenceFilterOperation):
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      * platform/gtk/ErrorsGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/gtk/PasteboardHelper.h:
      * platform/mac/ClipboardMac.h:
      * platform/mac/ClipboardMac.mm:
      * platform/mac/HTMLConverter.mm:
      * platform/mac/PasteboardMac.mm:
      * platform/network/AuthenticationChallengeBase.cpp:
      * platform/network/cf/CookieJarCFNet.cpp:
      * platform/network/cf/ResourceRequestCFNet.cpp:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/qt/PasteboardQt.cpp:
      * plugins/DOMMimeType.cpp:
      * plugins/PluginRequest.h: Removed.
      * plugins/PluginStream.h:
      (PluginStreamClient):
      (WebCore::PluginStreamClient::~PluginStreamClient):
      (WebCore::PluginStreamClient::streamDidFinishLoading):
      (WebCore):
      * plugins/PluginStreamClient.h: Removed.
      * plugins/PluginView.cpp:
      * plugins/PluginView.h:
      (WebCore):
      (PluginRequest):
      (WebCore::PluginRequest::PluginRequest):
      (WebCore::PluginRequest::frameLoadRequest):
      (WebCore::PluginRequest::notifyData):
      (WebCore::PluginRequest::sendNotification):
      (WebCore::PluginRequest::shouldAllowPopups):
      * rendering/HitTestResult.cpp:
      * rendering/InlineFlowBox.cpp:
      * rendering/RenderBox.cpp:
      * rendering/RenderEmbeddedObject.cpp:
      * rendering/RenderImage.cpp:
      * rendering/RenderImageResource.cpp:
      (WebCore::RenderImageResource::RenderImageResource):
      * rendering/RenderImageResource.h:
      (WebCore::RenderImageResource::image):
      (WebCore::RenderImageResource::errorOccurred):
      (WebCore::RenderImageResource::usesImageContainerSize):
      (WebCore::RenderImageResource::imageHasRelativeWidth):
      (WebCore::RenderImageResource::imageHasRelativeHeight):
      (WebCore::RenderImageResource::imageSize):
      * rendering/RenderImageResourceStyleImage.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayerBacking.cpp:
      * rendering/RenderLayerFilterInfo.h:
      * rendering/RenderListItem.cpp:
      * rendering/RenderListMarker.cpp:
      * rendering/RenderSnapshottedPlugIn.cpp:
      * rendering/RenderTableCol.cpp:
      * rendering/RenderTableRow.cpp:
      * rendering/RenderTableSection.cpp:
      * rendering/style/StyleCachedShader.h:
      * rendering/style/StyleCustomFilterProgram.cpp: Removed.
      * rendering/style/StyleCustomFilterProgram.h:
      (WebCore):
      (WebCore::StyleCustomFilterProgram::vertexShaderString):
      (StyleCustomFilterProgram):
      (WebCore::StyleCustomFilterProgram::fragmentShaderString):
      (WebCore::StyleCustomFilterProgram::isLoaded):
      (WebCore::StyleCustomFilterProgram::willHaveClients):
      (WebCore::StyleCustomFilterProgram::didRemoveLastClient):
      (WebCore::StyleCustomFilterProgram::notifyFinished):
      * svg/SVGFEImageElement.h:
      * svg/SVGFontFaceUriElement.h:
      (SVGFontFaceUriElement):
      * svg/SVGImageLoader.cpp:
      * svg/SVGUseElement.cpp:
      * svg/SVGUseElement.h:
      * svg/graphics/SVGImageCache.cpp:
      * testing/MockPagePopupDriver.cpp:
      * xml/XSLStyleSheet.h:
      * xml/XSLTProcessorLibxslt.cpp:
      * xml/parser/XMLDocumentParser.cpp:
      * xml/parser/XMLDocumentParser.h:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      
      Source/WebKit/chromium:
      
      * src/ApplicationCacheHost.cpp:
      * src/AssociatedURLLoader.cpp:
      * src/EditorClientImpl.cpp:
      * src/SharedWorkerRepository.cpp:
      * src/WebDataSourceImpl.cpp:
      * src/WebFrameImpl.h:
      (WebCore):
      * src/WebNode.cpp:
      * src/WebSharedWorkerImpl.cpp:
      * tests/FrameLoaderClientImplTest.cpp:
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * ewk/ewk_frame.cpp:
      
      Source/WebKit/gtk:
      
      * webkit/webkitwebpolicydecision.cpp:
      
      Source/WebKit/mac:
      
      * DOM/WebDOMOperations.mm:
      * Misc/WebNSPasteboardExtras.mm:
      * WebCoreSupport/WebFrameNetworkingContext.mm:
      * WebView/WebRenderLayer.mm:
      * WebView/WebRenderNode.mm:
      
      Source/WebKit/qt:
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      * WebCoreSupport/QWebPageAdapter.cpp:
      
      Source/WebKit2:
      
      * NetworkProcess/HostRecord.h:
      * NetworkProcess/NetworkResourceLoadScheduler.h:
      * NetworkProcess/NetworkResourceLoader.h:
      (WebCore):
      * Shared/WebRenderLayer.cpp:
      * Shared/WebRenderObject.cpp:
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      * WebProcess/WebProcess.cpp:
      * WebProcess/soup/WebProcessSoup.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144446 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b87a6c7
    • ap@apple.com's avatar
      Reduce amount of rebuilding when touching networking headers · b2f13721
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=111035
      
      Reviewed by Eric Seidel.
      
      Source/WebCore:
      
      This uses a number of common unsurprising techniques. One interesting observation
      is that including CachedResource related headers is very expensive. We can usually
      get away with their Client counterparts, and with CachedResourceHandle.
      
      * page/Frame.cpp:
      * page/Frame.h:
      Don't include FrameLoader, greatly reducing include graph for most non-loader files.
      This required making Frame::init() non-inline - I'm not sure why it ever was.
      
      * loader/FrameLoader.cpp:
      * loader/FrameLoader.h:
      Even though FrameLoader is logically on loading side of WebCore, it's included in
      too many places. Not including PolicyChecker.h and ResourceHandle.h was among the
      largest wins. As a future improvement, we should probably convert other members
      to OwnPtrs.
      
      * css/CSSCrossfadeValue.h: Initializing CachedResourceHandle with 0 requires a
      definition of a class it holds, but default construction does not.
      
      * loader/CrossOriginAccessControl.h: This file among others only needs ResourceHandleTypes.h,
      not ResourceHandle.h. This header is semi-recent, so not all include sites were updated.
      
      * loader/cache/CachedFont.h:
      * loader/cache/CachedFontClient.h: Added.
      * loader/cache/CachedRawResource.h:
      * loader/cache/CachedRawResourceClient.h: Added.
      * loader/cache/CachedSVGDocument.h:
      * loader/cache/CachedSVGDocumentClient.h: Added.
      These types were defining client types in the same headers, making it impossible
      to avoid including networking headers through CachedResource. Moved clients into
      separate files.
      
      * plugins/PluginStream.h:
      * plugins/PluginStreamClient.h: Added.
      Similar situation here.
      
      * loader/cache/CachedResourceHandle.cpp:
      * loader/cache/CachedResourceHandle.h:
      Moved functions that need to know about CachedResource to .cpp file. This is another
      huge win. Added a destructor, so that CachedResource woudn't be needed in all files
      that include CachedResourceHandle.
      
      * loader/cache/CachedSVGDocumentReference.cpp: Added.
      * loader/cache/CachedSVGDocumentReference.h:
      Moved constructor and virtual function implementations to a .cpp file - they need
      not inlining, and this lets us avoid including CachedSVGDocument.h in the header.
      
      * platform/graphics/filters/FilterOperation.cpp:
      * platform/graphics/filters/FilterOperation.h:
      Avoid including CachedSVGDocumentReference.h. This is not such a big win now that
      CachedSVGDocumentReference.h itself is smaller, but FilterOperation is so clearly
      rendering code that it seems best to cut any ties with resources and loading.
      Added a virtual destrutor in .cpp file, because inline destructors in polymorphic
      classes are generally harmful (due to code bloat).
      
      * plugins/PluginRequest.h: Added.
      * plugins/PluginView.h:
      Moved PluginRequest into a separate file, it was out of place in a view hierarchy
      class file.
      
      * rendering/RenderImageResource.cpp:
      * rendering/RenderImageResource.h:
      Moved definitions of virtual functions to a .cpp file. Thre is no win from having
      them inline, and now we don't need CachedImage.h in the header.
      
      * rendering/style/StyleCustomFilterProgram.cpp: Added.
      * rendering/style/StyleCustomFilterProgram.h:
      Ditto.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCPeerConnection.cpp:
      * Modules/notifications/Notification.cpp:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/ScriptControllerBase.cpp:
      * bindings/js/JSNodeCustom.cpp:
      * bindings/js/ScriptController.cpp:
      * bindings/js/ScriptSourceCode.h:
      * bindings/objc/DOM.mm:
      * bindings/v8/ScriptController.cpp:
      * bindings/v8/V8DOMWindowShell.cpp:
      * bindings/v8/custom/V8DOMWindowCustom.cpp:
      * css/CSSFontFaceSource.h:
      * css/CSSFontSelector.cpp:
      * css/WebKitCSSSVGDocumentValue.cpp:
      * css/WebKitCSSSVGDocumentValue.h:
      * dom/Clipboard.cpp:
      * dom/ContainerNode.cpp:
      * dom/DOMImplementation.cpp:
      * dom/PendingScript.h:
      * dom/ScriptElement.cpp:
      * dom/ScriptElement.h:
      * history/CachedFrame.cpp:
      * html/DOMURL.cpp:
      * html/HTMLAnchorElement.cpp:
      * html/HTMLAppletElement.cpp:
      * html/HTMLElement.cpp:
      * html/HTMLEmbedElement.cpp:
      * html/HTMLFrameSetElement.cpp:
      * html/HTMLHtmlElement.cpp:
      * html/HTMLImageElement.cpp:
      * html/HTMLObjectElement.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/ImageDocument.cpp:
      * html/ImageInputType.cpp:
      * html/MediaDocument.cpp:
      * html/PluginDocument.cpp:
      * html/canvas/WebGLRenderingContext.cpp:
      * html/parser/HTMLConstructionSite.cpp:
      * html/parser/HTMLParserOptions.cpp:
      * html/parser/HTMLScriptRunner.h:
      * html/parser/XSSAuditor.cpp:
      * html/parser/XSSAuditorDelegate.cpp:
      * inspector/InspectorDebuggerAgent.cpp:
      * inspector/InspectorFileSystemAgent.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorInstrumentation.h:
      * inspector/InspectorPageAgent.cpp:
      * inspector/NetworkResourcesData.cpp:
      * inspector/NetworkResourcesData.h:
      * loader/CookieJar.cpp:
      * loader/CrossOriginAccessControl.cpp:
      * loader/CrossOriginPreflightResultCache.h:
      * loader/DocumentThreadableLoader.h:
      * loader/ImageLoader.cpp:
      * loader/ImageLoader.h:
      * loader/LinkLoader.h:
      * loader/MainResourceLoader.cpp:
      * loader/MainResourceLoader.h:
      * loader/MixedContentChecker.cpp:
      * loader/PingLoader.cpp:
      * loader/PolicyChecker.h:
      * loader/ProgressTracker.cpp:
      * loader/SubframeLoader.cpp:
      * loader/SubresourceLoader.cpp:
      * loader/TextTrackLoader.cpp:
      * loader/TextTrackLoader.h:
      * loader/ThreadableLoader.h:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * loader/appcache/ApplicationCacheGroup.h:
      * loader/appcache/ApplicationCacheHost.cpp:
      * loader/archive/cf/LegacyWebArchive.cpp:
      * loader/cache/CachedFont.cpp:
      * loader/cache/CachedImage.cpp:
      * loader/cache/CachedRawResource.cpp:
      * loader/cache/CachedResource.cpp:
      * loader/cache/CachedStyleSheetClient.h:
      * loader/cache/MemoryCache.cpp:
      * loader/cache/MemoryCache.h:
      * loader/chromium/CachedRawResourceChromium.cpp:
      * loader/icon/IconController.cpp:
      * loader/icon/IconLoader.h:
      * loader/mac/ResourceLoaderMac.mm:
      * page/DOMWindowExtension.cpp:
      * page/DragController.cpp:
      * page/PerformanceNavigation.cpp:
      * page/PerformanceTiming.cpp:
      * page/PointerLockController.cpp:
      * page/Settings.cpp:
      * page/animation/CSSPropertyAnimation.cpp:
      * platform/chromium/PasteboardChromium.cpp:
      * platform/efl/ErrorsEfl.cpp:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      * platform/gtk/ErrorsGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/gtk/PasteboardHelper.h:
      * platform/mac/ClipboardMac.h:
      * platform/mac/ClipboardMac.mm:
      * platform/mac/HTMLConverter.mm:
      * platform/mac/PasteboardMac.mm:
      * platform/network/AuthenticationChallengeBase.cpp:
      * platform/network/cf/CookieJarCFNet.cpp:
      * platform/network/cf/ResourceRequestCFNet.cpp:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/qt/PasteboardQt.cpp:
      * plugins/DOMMimeType.cpp:
      * plugins/PluginView.cpp:
      * rendering/HitTestResult.cpp:
      * rendering/InlineFlowBox.cpp:
      * rendering/RenderBox.cpp:
      * rendering/RenderEmbeddedObject.cpp:
      * rendering/RenderImage.cpp:
      * rendering/RenderImageResourceStyleImage.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayerBacking.cpp:
      * rendering/RenderLayerFilterInfo.h:
      * rendering/RenderListItem.cpp:
      * rendering/RenderListMarker.cpp:
      * rendering/RenderSnapshottedPlugIn.cpp:
      * rendering/RenderTableCol.cpp:
      * rendering/RenderTableRow.cpp:
      * rendering/RenderTableSection.cpp:
      * rendering/style/StyleCachedShader.h:
      * svg/SVGFEImageElement.h:
      * svg/SVGFontFaceUriElement.h:
      * svg/SVGImageLoader.cpp:
      * svg/SVGUseElement.cpp:
      * svg/SVGUseElement.h:
      * svg/graphics/SVGImageCache.cpp:
      * testing/MockPagePopupDriver.cpp:
      * xml/XSLStyleSheet.h:
      * xml/XSLTProcessorLibxslt.cpp:
      * xml/parser/XMLDocumentParser.cpp:
      * xml/parser/XMLDocumentParser.h:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      Many self-evident changes - removing unnecessary header includes, adding smaller
      more local ones that are now necessary.
      
      Source/WebKit/chromium:
      
      Adding includes that are now necessary because WebCore headers don't have them
      any more.
      
      * src/ApplicationCacheHost.cpp:
      * src/AssociatedURLLoader.cpp:
      * src/EditorClientImpl.cpp:
      * src/SharedWorkerRepository.cpp:
      * src/WebDataSourceImpl.cpp:
      * src/WebFrameImpl.h:
      * src/WebNode.cpp:
      * src/WebSharedWorkerImpl.cpp:
      * tests/FrameLoaderClientImplTest.cpp:
      
      Source/WebKit/efl:
      
      Adding includes that are now necessary because WebCore headers don't have them
      any more.
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * ewk/ewk_frame.cpp:
      
      Source/WebKit/gtk:
      
      Adding includes that are now necessary because WebCore headers don't have them
      any more.
      
      * webkit/webkitwebpolicydecision.cpp:
      
      Source/WebKit/mac:
      
      Adding includes that are now necessary because WebCore headers don't have them
      any more.
      
      * DOM/WebDOMOperations.mm:
      * Misc/WebNSPasteboardExtras.mm:
      * WebCoreSupport/WebFrameNetworkingContext.mm:
      * WebView/WebRenderLayer.mm:
      * WebView/WebRenderNode.mm:
      
      Source/WebKit/qt:
      
      Adding includes that are now necessary because WebCore headers don't have them
      any more.
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      * WebCoreSupport/QWebPageAdapter.cpp:
      
      Source/WebKit2:
      
      Adding includes that are now necessary because WebCore headers don't have them
      any more.
      
      * NetworkProcess/HostRecord.h:
      * NetworkProcess/NetworkResourceLoadScheduler.h:
      * NetworkProcess/NetworkResourceLoader.h:
      * Shared/WebRenderLayer.cpp:
      * Shared/WebRenderObject.cpp:
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      * WebProcess/WebProcess.cpp:
      * WebProcess/soup/WebProcessSoup.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144422 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2f13721
  9. 18 Nov, 2012 1 commit
    • akling@apple.com's avatar
      Element::parseAttribute() should take name & value as separate arguments. · 43e9d04c
      akling@apple.com authored
      <http://webkit.org/b/102608>
      
      Reviewed by Antti Koivisto.
      
      Update the signature of parseAttribute() to take a QualifiedName/AtomicString combo instead
      of an Attribute. This lets us pass avoid refcount churn in Element::attributeChanged() since
      creating a temporary Attribute is no longer necessary.
      
      This was surprisingly hot (~1%) on the DOM/CreateNodes performance test.
      
      * bindings/js/ScriptEventListener.cpp:
      (WebCore::createAttributeEventListener):
      * bindings/js/ScriptEventListener.h:
      (WebCore):
      * bindings/v8/ScriptEventListener.cpp:
      (WebCore::createAttributeEventListener):
      * bindings/v8/ScriptEventListener.h:
      (WebCore):
      * dom/Element.cpp:
      (WebCore::Element::attributeChanged):
      (WebCore::Element::parseAttribute):
      * dom/Element.h:
      (Element):
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::parseAttribute):
      * dom/StyledElement.h:
      (StyledElement):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::parseAttribute):
      * html/HTMLAnchorElement.h:
      (HTMLAnchorElement):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::parseAttribute):
      * html/HTMLAppletElement.h:
      (HTMLAppletElement):
      * html/HTMLAreaElement.cpp:
      (WebCore::HTMLAreaElement::parseAttribute):
      * html/HTMLAreaElement.h:
      (HTMLAreaElement):
      * html/HTMLBaseElement.cpp:
      (WebCore::HTMLBaseElement::parseAttribute):
      * html/HTMLBaseElement.h:
      (HTMLBaseElement):
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::parseAttribute):
      * html/HTMLBodyElement.h:
      (HTMLBodyElement):
      * html/HTMLButtonElement.cpp:
      (WebCore::HTMLButtonElement::parseAttribute):
      * html/HTMLButtonElement.h:
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::parseAttribute):
      * html/HTMLCanvasElement.h:
      (HTMLCanvasElement):
      * html/HTMLDetailsElement.cpp:
      (WebCore::HTMLDetailsElement::parseAttribute):
      * html/HTMLDetailsElement.h:
      (HTMLDetailsElement):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::parseAttribute):
      (WebCore::HTMLElement::dirAttributeChanged):
      * html/HTMLElement.h:
      (HTMLElement):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::parseAttribute):
      * html/HTMLEmbedElement.h:
      (HTMLEmbedElement):
      * html/HTMLFormControlElement.cpp:
      (WebCore::HTMLFormControlElement::parseAttribute):
      * html/HTMLFormControlElement.h:
      (HTMLFormControlElement):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::parseAttribute):
      * html/HTMLFormElement.h:
      (HTMLFormElement):
      * html/HTMLFrameElement.cpp:
      (WebCore::HTMLFrameElement::parseAttribute):
      * html/HTMLFrameElement.h:
      (HTMLFrameElement):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::parseAttribute):
      * html/HTMLFrameElementBase.h:
      (HTMLFrameElementBase):
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::parseAttribute):
      * html/HTMLFrameSetElement.h:
      (HTMLFrameSetElement):
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::parseAttribute):
      * html/HTMLIFrameElement.h:
      (HTMLIFrameElement):
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::parseAttribute):
      * html/HTMLImageElement.h:
      (HTMLImageElement):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::parseAttribute):
      (WebCore::HTMLInputElement::parseMaxLengthAttribute):
      * html/HTMLInputElement.h:
      (HTMLInputElement):
      * html/HTMLKeygenElement.cpp:
      (WebCore::HTMLKeygenElement::parseAttribute):
      * html/HTMLKeygenElement.h:
      (HTMLKeygenElement):
      * html/HTMLLIElement.cpp:
      (WebCore::HTMLLIElement::parseAttribute):
      * html/HTMLLIElement.h:
      (HTMLLIElement):
      * html/HTMLLinkElement.cpp:
      (WebCore::HTMLLinkElement::parseAttribute):
      * html/HTMLLinkElement.h:
      (HTMLLinkElement):
      * html/HTMLMapElement.cpp:
      (WebCore::HTMLMapElement::parseAttribute):
      * html/HTMLMapElement.h:
      (HTMLMapElement):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::parseAttribute):
      * html/HTMLMediaElement.h:
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::parseAttribute):
      * html/HTMLMetaElement.h:
      (HTMLMetaElement):
      * html/HTMLMeterElement.cpp:
      (WebCore::HTMLMeterElement::parseAttribute):
      * html/HTMLMeterElement.h:
      (HTMLMeterElement):
      * html/HTMLOListElement.cpp:
      (WebCore::HTMLOListElement::parseAttribute):
      * html/HTMLOListElement.h:
      (HTMLOListElement):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parseAttribute):
      * html/HTMLObjectElement.h:
      (HTMLObjectElement):
      * html/HTMLOptGroupElement.cpp:
      (WebCore::HTMLOptGroupElement::parseAttribute):
      * html/HTMLOptGroupElement.h:
      * html/HTMLOptionElement.cpp:
      (WebCore::HTMLOptionElement::parseAttribute):
      * html/HTMLOptionElement.h:
      (HTMLOptionElement):
      * html/HTMLOutputElement.cpp:
      (WebCore::HTMLOutputElement::parseAttribute):
      * html/HTMLOutputElement.h:
      (HTMLOutputElement):
      * html/HTMLProgressElement.cpp:
      (WebCore::HTMLProgressElement::parseAttribute):
      * html/HTMLProgressElement.h:
      * html/HTMLScriptElement.cpp:
      (WebCore::HTMLScriptElement::parseAttribute):
      * html/HTMLScriptElement.h:
      (HTMLScriptElement):
      * html/HTMLSelectElement.cpp:
      (WebCore::HTMLSelectElement::parseAttribute):
      (WebCore::HTMLSelectElement::parseMultipleAttribute):
      * html/HTMLSelectElement.h:
      * html/HTMLStyleElement.cpp:
      (WebCore::HTMLStyleElement::parseAttribute):
      * html/HTMLStyleElement.h:
      (HTMLStyleElement):
      * html/HTMLTableCellElement.cpp:
      (WebCore::HTMLTableCellElement::parseAttribute):
      * html/HTMLTableCellElement.h:
      (HTMLTableCellElement):
      * html/HTMLTableColElement.cpp:
      (WebCore::HTMLTableColElement::parseAttribute):
      * html/HTMLTableColElement.h:
      (HTMLTableColElement):
      * html/HTMLTableElement.cpp:
      (WebCore::HTMLTableElement::parseAttribute):
      * html/HTMLTableElement.h:
      (HTMLTableElement):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::parseAttribute):
      * html/HTMLTextAreaElement.h:
      (HTMLTextAreaElement):
      * html/HTMLTextFormControlElement.cpp:
      (WebCore::HTMLTextFormControlElement::parseAttribute):
      * html/HTMLTextFormControlElement.h:
      (HTMLTextFormControlElement):
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::parseAttribute):
      * html/HTMLTrackElement.h:
      (HTMLTrackElement):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::parseAttribute):
      * html/HTMLVideoElement.h:
      (HTMLVideoElement):
      * html/shadow/HTMLContentElement.cpp:
      (WebCore::HTMLContentElement::parseAttribute):
      * html/shadow/HTMLContentElement.h:
      (HTMLContentElement):
      * mathml/MathMLElement.cpp:
      (WebCore::MathMLElement::parseAttribute):
      * mathml/MathMLElement.h:
      (MathMLElement):
      * svg/SVGAElement.cpp:
      (WebCore::SVGAElement::parseAttribute):
      * svg/SVGAElement.h:
      (SVGAElement):
      * svg/SVGAnimateMotionElement.cpp:
      (WebCore::SVGAnimateMotionElement::parseAttribute):
      * svg/SVGAnimateMotionElement.h:
      (SVGAnimateMotionElement):
      * svg/SVGAnimateTransformElement.cpp:
      (WebCore::SVGAnimateTransformElement::parseAttribute):
      * svg/SVGAnimateTransformElement.h:
      (SVGAnimateTransformElement):
      * svg/SVGAnimationElement.cpp:
      (WebCore::SVGAnimationElement::parseAttribute):
      * svg/SVGAnimationElement.h:
      (SVGAnimationElement):
      * svg/SVGCircleElement.cpp:
      (WebCore::SVGCircleElement::parseAttribute):
      * svg/SVGCircleElement.h:
      (SVGCircleElement):
      * svg/SVGClipPathElement.cpp:
      (WebCore::SVGClipPathElement::parseAttribute):
      * svg/SVGClipPathElement.h:
      (SVGClipPathElement):
      * svg/SVGComponentTransferFunctionElement.cpp:
      (WebCore::SVGComponentTransferFunctionElement::parseAttribute):
      * svg/SVGComponentTransferFunctionElement.h:
      (SVGComponentTransferFunctionElement):
      * svg/SVGCursorElement.cpp:
      (WebCore::SVGCursorElement::parseAttribute):
      * svg/SVGCursorElement.h:
      (SVGCursorElement):
      * svg/SVGElement.cpp:
      (WebCore::SVGElement::reportAttributeParsingError):
      (WebCore::SVGElement::parseAttribute):
      * svg/SVGElement.h:
      (SVGElement):
      * svg/SVGEllipseElement.cpp:
      (WebCore::SVGEllipseElement::parseAttribute):
      * svg/SVGEllipseElement.h:
      (SVGEllipseElement):
      * svg/SVGExternalResourcesRequired.cpp:
      (WebCore::SVGExternalResourcesRequired::parseAttribute):
      * svg/SVGExternalResourcesRequired.h:
      (SVGExternalResourcesRequired):
      * svg/SVGFEBlendElement.cpp:
      (WebCore::SVGFEBlendElement::parseAttribute):
      * svg/SVGFEBlendElement.h:
      (SVGFEBlendElement):
      * svg/SVGFEColorMatrixElement.cpp:
      (WebCore::SVGFEColorMatrixElement::parseAttribute):
      * svg/SVGFEColorMatrixElement.h:
      (SVGFEColorMatrixElement):
      * svg/SVGFEComponentTransferElement.cpp:
      (WebCore::SVGFEComponentTransferElement::parseAttribute):
      * svg/SVGFEComponentTransferElement.h:
      (SVGFEComponentTransferElement):
      * svg/SVGFECompositeElement.cpp:
      (WebCore::SVGFECompositeElement::parseAttribute):
      * svg/SVGFECompositeElement.h:
      (SVGFECompositeElement):
      * svg/SVGFEConvolveMatrixElement.cpp:
      (WebCore::SVGFEConvolveMatrixElement::parseAttribute):
      * svg/SVGFEConvolveMatrixElement.h:
      (SVGFEConvolveMatrixElement):
      * svg/SVGFEDiffuseLightingElement.cpp:
      (WebCore::SVGFEDiffuseLightingElement::parseAttribute):
      * svg/SVGFEDiffuseLightingElement.h:
      (SVGFEDiffuseLightingElement):
      * svg/SVGFEDisplacementMapElement.cpp:
      (WebCore::SVGFEDisplacementMapElement::parseAttribute):
      * svg/SVGFEDisplacementMapElement.h:
      (SVGFEDisplacementMapElement):
      * svg/SVGFEDropShadowElement.cpp:
      (WebCore::SVGFEDropShadowElement::parseAttribute):
      * svg/SVGFEDropShadowElement.h:
      (SVGFEDropShadowElement):
      * svg/SVGFEGaussianBlurElement.cpp:
      (WebCore::SVGFEGaussianBlurElement::parseAttribute):
      * svg/SVGFEGaussianBlurElement.h:
      (SVGFEGaussianBlurElement):
      * svg/SVGFEImageElement.cpp:
      (WebCore::SVGFEImageElement::parseAttribute):
      * svg/SVGFEImageElement.h:
      (SVGFEImageElement):
      * svg/SVGFELightElement.cpp:
      (WebCore::SVGFELightElement::parseAttribute):
      * svg/SVGFELightElement.h:
      (SVGFELightElement):
      * svg/SVGFEMergeNodeElement.cpp:
      (WebCore::SVGFEMergeNodeElement::parseAttribute):
      * svg/SVGFEMergeNodeElement.h:
      (SVGFEMergeNodeElement):
      * svg/SVGFEMorphologyElement.cpp:
      (WebCore::SVGFEMorphologyElement::parseAttribute):
      * svg/SVGFEMorphologyElement.h:
      (SVGFEMorphologyElement):
      * svg/SVGFEOffsetElement.cpp:
      (WebCore::SVGFEOffsetElement::parseAttribute):
      * svg/SVGFEOffsetElement.h:
      (SVGFEOffsetElement):
      * svg/SVGFESpecularLightingElement.cpp:
      (WebCore::SVGFESpecularLightingElement::parseAttribute):
      * svg/SVGFESpecularLightingElement.h:
      (SVGFESpecularLightingElement):
      * svg/SVGFETileElement.cpp:
      (WebCore::SVGFETileElement::parseAttribute):
      * svg/SVGFETileElement.h:
      (SVGFETileElement):
      * svg/SVGFETurbulenceElement.cpp:
      (WebCore::SVGFETurbulenceElement::parseAttribute):
      * svg/SVGFETurbulenceElement.h:
      (SVGFETurbulenceElement):
      * svg/SVGFilterElement.cpp:
      (WebCore::SVGFilterElement::parseAttribute):
      * svg/SVGFilterElement.h:
      (SVGFilterElement):
      * svg/SVGFilterPrimitiveStandardAttributes.cpp:
      (WebCore::SVGFilterPrimitiveStandardAttributes::parseAttribute):
      * svg/SVGFilterPrimitiveStandardAttributes.h:
      (SVGFilterPrimitiveStandardAttributes):
      * svg/SVGFitToViewBox.h:
      (WebCore::SVGFitToViewBox::parseAttribute):
      * svg/SVGFontFaceElement.cpp:
      (WebCore::SVGFontFaceElement::parseAttribute):
      * svg/SVGFontFaceElement.h:
      (SVGFontFaceElement):
      * svg/SVGFontFaceUriElement.cpp:
      (WebCore::SVGFontFaceUriElement::parseAttribute):
      * svg/SVGFontFaceUriElement.h:
      (SVGFontFaceUriElement):
      * svg/SVGForeignObjectElement.cpp:
      (WebCore::SVGForeignObjectElement::parseAttribute):
      * svg/SVGForeignObjectElement.h:
      (SVGForeignObjectElement):
      * svg/SVGGElement.cpp:
      (WebCore::SVGGElement::parseAttribute):
      * svg/SVGGElement.h:
      (SVGGElement):
      * svg/SVGGlyphElement.cpp:
      (WebCore::SVGGlyphElement::parseAttribute):
      * svg/SVGGlyphElement.h:
      (SVGGlyphElement):
      * svg/SVGGlyphRefElement.cpp:
      (WebCore::SVGGlyphRefElement::parseAttribute):
      * svg/SVGGlyphRefElement.h:
      * svg/SVGGradientElement.cpp:
      (WebCore::SVGGradientElement::parseAttribute):
      * svg/SVGGradientElement.h:
      * svg/SVGImageElement.cpp:
      (WebCore::SVGImageElement::parseAttribute):
      * svg/SVGImageElement.h:
      (SVGImageElement):
      * svg/SVGLangSpace.cpp:
      (WebCore::SVGLangSpace::parseAttribute):
      * svg/SVGLangSpace.h:
      (SVGLangSpace):
      * svg/SVGLineElement.cpp:
      (WebCore::SVGLineElement::parseAttribute):
      * svg/SVGLineElement.h:
      (SVGLineElement):
      * svg/SVGLinearGradientElement.cpp:
      (WebCore::SVGLinearGradientElement::parseAttribute):
      * svg/SVGLinearGradientElement.h:
      (SVGLinearGradientElement):
      * svg/SVGMPathElement.cpp:
      (WebCore::SVGMPathElement::parseAttribute):
      * svg/SVGMPathElement.h:
      (SVGMPathElement):
      * svg/SVGMarkerElement.cpp:
      (WebCore::SVGMarkerElement::parseAttribute):
      * svg/SVGMarkerElement.h:
      (SVGMarkerElement):
      * svg/SVGMaskElement.cpp:
      (WebCore::SVGMaskElement::parseAttribute):
      * svg/SVGMaskElement.h:
      (SVGMaskElement):
      * svg/SVGPathElement.cpp:
      (WebCore::SVGPathElement::parseAttribute):
      * svg/SVGPathElement.h:
      (SVGPathElement):
      * svg/SVGPatternElement.cpp:
      (WebCore::SVGPatternElement::parseAttribute):
      * svg/SVGPatternElement.h:
      (SVGPatternElement):
      * svg/SVGPolyElement.cpp:
      (WebCore::SVGPolyElement::parseAttribute):
      * svg/SVGPolyElement.h:
      (SVGPolyElement):
      * svg/SVGRadialGradientElement.cpp:
      (WebCore::SVGRadialGradientElement::parseAttribute):
      * svg/SVGRadialGradientElement.h:
      (SVGRadialGradientElement):
      * svg/SVGRectElement.cpp:
      (WebCore::SVGRectElement::parseAttribute):
      * svg/SVGRectElement.h:
      (SVGRectElement):
      * svg/SVGSVGElement.cpp:
      (WebCore::SVGSVGElement::parseAttribute):
      * svg/SVGSVGElement.h:
      (SVGSVGElement):
      * svg/SVGScriptElement.cpp:
      (WebCore::SVGScriptElement::parseAttribute):
      * svg/SVGScriptElement.h:
      (SVGScriptElement):
      * svg/SVGStopElement.cpp:
      (WebCore::SVGStopElement::parseAttribute):
      * svg/SVGStopElement.h:
      (SVGStopElement):
      * svg/SVGStyleElement.cpp:
      (WebCore::SVGStyleElement::parseAttribute):
      * svg/SVGStyleElement.h:
      (SVGStyleElement):
      * svg/SVGStyledElement.cpp:
      (WebCore::SVGStyledElement::parseAttribute):
      * svg/SVGStyledElement.h:
      (SVGStyledElement):
      * svg/SVGStyledTransformableElement.cpp:
      (WebCore::SVGStyledTransformableElement::parseAttribute):
      * svg/SVGStyledTransformableElement.h:
      (SVGStyledTransformableElement):
      * svg/SVGSymbolElement.cpp:
      (WebCore::SVGSymbolElement::parseAttribute):
      * svg/SVGSymbolElement.h:
      (SVGSymbolElement):
      * svg/SVGTRefElement.cpp:
      (WebCore::SVGTRefElement::parseAttribute):
      * svg/SVGTRefElement.h:
      (SVGTRefElement):
      * svg/SVGTests.cpp:
      (WebCore::SVGTests::parseAttribute):
      * svg/SVGTests.h:
      (SVGTests):
      * svg/SVGTextContentElement.cpp:
      (WebCore::SVGTextContentElement::parseAttribute):
      * svg/SVGTextContentElement.h:
      (SVGTextContentElement):
      * svg/SVGTextElement.cpp:
      (WebCore::SVGTextElement::parseAttribute):
      * svg/SVGTextElement.h:
      (SVGTextElement):
      * svg/SVGTextPathElement.cpp:
      (WebCore::SVGTextPathElement::parseAttribute):
      * svg/SVGTextPathElement.h:
      * svg/SVGTextPositioningElement.cpp:
      (WebCore::SVGTextPositioningElement::parseAttribute):
      * svg/SVGTextPositioningElement.h:
      (SVGTextPositioningElement):
      * svg/SVGURIReference.cpp:
      (WebCore::SVGURIReference::parseAttribute):
      * svg/SVGURIReference.h:
      (SVGURIReference):
      * svg/SVGUseElement.cpp:
      (WebCore::SVGUseElement::parseAttribute):
      * svg/SVGUseElement.h:
      (SVGUseElement):
      * svg/SVGViewElement.cpp:
      (WebCore::SVGViewElement::parseAttribute):
      * svg/SVGViewElement.h:
      (SVGViewElement):
      * svg/SVGZoomAndPan.h:
      (WebCore::SVGZoomAndPan::parseAttribute):
      * svg/animation/SVGSMILElement.cpp:
      (WebCore::SVGSMILElement::parseAttribute):
      * svg/animation/SVGSMILElement.h:
      (SVGSMILElement):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43e9d04c
  10. 07 Aug, 2012 1 commit
    • fsamuel@chromium.org's avatar
      Allow plugins to decide whether they are keyboard focusable · 8ecfba39
      fsamuel@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=88958
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * dom/Node.h:
      (WebCore::Node::isPluginElement):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::renderWidgetForJSBindings):
      * html/HTMLEmbedElement.h:
      (HTMLEmbedElement):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::renderWidgetForJSBindings):
      * html/HTMLObjectElement.h:
      (HTMLObjectElement):
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::pluginWidget):
      (WebCore::HTMLPlugInElement::isKeyboardFocusable):
      (WebCore):
      (WebCore::HTMLPlugInElement::isPluginElement):
      * html/HTMLPlugInElement.h:
      (HTMLPlugInElement):
      * page/FocusController.cpp:
      (WebCore::FocusController::advanceFocusInDocumentOrder):
      * plugins/PluginViewBase.h:
      (WebCore::PluginViewBase::supportsKeyboardFocus):
      
      Source/WebKit/chromium:
      
      * public/WebPlugin.h:
      (WebKit::WebPlugin::supportsKeyboardFocus):
      * src/WebInputEventConversion.cpp:
      (WebKit::WebKeyboardEventBuilder::WebKeyboardEventBuilder):
      * src/WebPluginContainerImpl.cpp:
      (WebKit::WebPluginContainerImpl::supportsKeyboardFocus):
      (WebKit):
      * src/WebPluginContainerImpl.h:
      (WebPluginContainerImpl):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ecfba39
  11. 27 Jul, 2012 1 commit
    • andersca@apple.com's avatar
      Show the unavailable plug-in indicator for Java applets as well · ae9270e8
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=92521
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      Now that <applet> behaves more like <embed> and <object>, make sure that we show the unavailable plug-in indicator
      and call the correct error callbacks if we fail to instantiate the plug-in.
      
      * WebCore.exp.in:
      Export a symbol needed by WebKit2.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::HTMLAppletElement):
      Set the correct service type.
      
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::createJavaAppletWidget):
      Enable the unavailable plug-in indicator if we fail to create the java applet widget.
      
      Source/WebKit/mac:
      
      Check if the Java plug-in is blocked before trying to instantiate it.
      
      * WebCoreSupport/WebFrameLoaderClient.mm:
      
      Source/WebKit2:
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::unavailablePluginButtonClicked):
      This can now be called on applet elements as well.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
      Get the MIME type from the applet element.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123907 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae9270e8
  12. 26 Jul, 2012 2 commits
    • hbono@chromium.org's avatar
      [Qt] Build fix for Qt after r123811 · ea8793d1
      hbono@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=92460
      
      Reviewed by Ryosuke Niwa.
      
      This change explicitly converts from AtomicString to String to avoid ambiguities
      when compiling HTMLAppletWidget.cpp on Qt.
      
      No new tests because it is a build fix.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::updateWidget):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea8793d1
    • andersca@apple.com's avatar
      HTMLAppletElement should inherit from HTMLPlugInImageElement · c11fa869
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=92320
      
      Reviewed by Eric Seidel.
      
      In order to simplify the class hierarchy and eventually merge HTMLPlugInImageElement and HMTLPlugInElement,
      make HTMLAppletElement inherit from HTMLPlugInImageElement. While this does mean that HTMLAppletElement will grow by
      a couple of words, in practice it won't matter.
      
      Also, make RenderApplet inherit from RenderEmbeddedObject and move the plug-in instantiation to HTMLAppletElement which matches
      both HTMLEmbedElement and HTMLObjectElement.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::HTMLAppletElement):
      (WebCore::HTMLAppletElement::create):
      (WebCore::HTMLAppletElement::parseAttribute):
      (WebCore::HTMLAppletElement::rendererIsNeeded):
      (WebCore::HTMLAppletElement::createRenderer):
      (WebCore):
      (WebCore::HTMLAppletElement::renderWidgetForJSBindings):
      (WebCore::HTMLAppletElement::updateWidget):
      * html/HTMLAppletElement.h:
      (HTMLAppletElement):
      * html/HTMLTagNames.in:
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::createJavaAppletWidget):
      * loader/SubframeLoader.h:
      (SubframeLoader):
      * page/FrameView.cpp:
      (WebCore::FrameView::updateWidget):
      * rendering/RenderApplet.cpp:
      (WebCore::RenderApplet::RenderApplet):
      * rendering/RenderApplet.h:
      (RenderApplet):
      * rendering/RenderEmbeddedObject.h:
      (WebCore::toRenderEmbeddedObject):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::shouldBeNormalFlowOnly):
      (WebCore::RenderLayer::shouldBeSelfPaintingLayer):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::requiresCompositingForPlugin):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::setStyle):
      * rendering/RenderObject.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c11fa869
  13. 16 May, 2012 1 commit
  14. 15 May, 2012 1 commit
    • kling@webkit.org's avatar
      Pass Attribute by const reference as much as possible. · 260fca8b
      kling@webkit.org authored
      <http://webkit.org/b/86487>
      
      Reviewed by Darin Adler.
      
      Switch to passing around "const Attribute&" instead of "Attribute*" wherever possible.
      This helps enforce the constness and non-nullity of these arguments at compile time.
      
      Also renamed 'attr' to 'attribute' in the touched code. Attr and Attribute are two
      different classes, so having "Attribute attr" just looks wrong.
      
      * bindings/js/ScriptEventListener.cpp:
      (WebCore::createAttributeEventListener):
      * bindings/js/ScriptEventListener.h:
      * bindings/v8/ScriptEventListener.cpp:
      (WebCore::createAttributeEventListener):
      * bindings/v8/ScriptEventListener.h:
      * dom/Attr.cpp:
      (WebCore::Attr::setPrefix):
      (WebCore::Attr::setValue):
      (WebCore::Attr::childrenChanged):
      (WebCore::Attr::style):
      (WebCore::Attr::elementAttribute):
      * dom/Attr.h:
      * dom/Element.cpp:
      (WebCore::Element::setAttributeInternal):
      (WebCore::Element::attributeChanged):
      (WebCore::Element::parserSetAttributes):
      (WebCore::Element::didAddAttribute):
      (WebCore::Element::didModifyAttribute):
      (WebCore::Element::didRemoveAttribute):
      * dom/Element.h:
      * dom/ElementAttributeData.cpp:
      (WebCore::ElementAttributeData::addAttribute):
      (WebCore::ElementAttributeData::setAttributes):
      (WebCore::ElementAttributeData::replaceAttribute):
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::attributeChanged):
      (WebCore::StyledElement::parseAttribute):
      (WebCore::StyledElement::updateAttributeStyle):
      * dom/StyledElement.h:
      (WebCore::StyledElement::collectStyleForAttribute):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::parseAttribute):
      * html/HTMLAnchorElement.h:
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::parseAttribute):
      * html/HTMLAppletElement.h:
      * html/HTMLAreaElement.cpp:
      (WebCore::HTMLAreaElement::parseAttribute):
      * html/HTMLAreaElement.h:
      * html/HTMLBRElement.cpp:
      (WebCore::HTMLBRElement::collectStyleForAttribute):
      * html/HTMLBRElement.h:
      * html/HTMLBaseElement.cpp:
      (WebCore::HTMLBaseElement::parseAttribute):
      * html/HTMLBaseElement.h:
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::collectStyleForAttribute):
      (WebCore::HTMLBodyElement::parseAttribute):
      * html/HTMLBodyElement.h:
      * html/HTMLButtonElement.cpp:
      (WebCore::HTMLButtonElement::parseAttribute):
      * html/HTMLButtonElement.h:
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::parseAttribute):
      * html/HTMLCanvasElement.h:
      * html/HTMLDetailsElement.cpp:
      (WebCore::HTMLDetailsElement::parseAttribute):
      * html/HTMLDetailsElement.h:
      * html/HTMLDivElement.cpp:
      (WebCore::HTMLDivElement::collectStyleForAttribute):
      * html/HTMLDivElement.h:
      * html/HTMLElement.cpp:
      (WebCore::parseBorderWidthAttribute):
      (WebCore::HTMLElement::applyBorderAttributeToStyle):
      (WebCore::HTMLElement::mapLanguageAttributeToLocale):
      (WebCore::HTMLElement::collectStyleForAttribute):
      (WebCore::HTMLElement::parseAttribute):
      (WebCore::HTMLElement::applyAlignmentAttributeToStyle):
      (WebCore::HTMLElement::dirAttributeChanged):
      * html/HTMLElement.h:
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::collectStyleForAttribute):
      (WebCore::HTMLEmbedElement::parseAttribute):
      * html/HTMLEmbedElement.h:
      * html/HTMLFontElement.cpp:
      (WebCore::HTMLFontElement::collectStyleForAttribute):
      * html/HTMLFontElement.h:
      * html/HTMLFormControlElement.cpp:
      (WebCore::HTMLFormControlElement::parseAttribute):
      * html/HTMLFormControlElement.h:
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::parseAttribute):
      * html/HTMLFormElement.h:
      * html/HTMLFrameElement.cpp:
      (WebCore::HTMLFrameElement::parseAttribute):
      * html/HTMLFrameElement.h:
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::parseAttribute):
      * html/HTMLFrameElementBase.h:
      (HTMLFrameElementBase):
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::collectStyleForAttribute):
      (WebCore::HTMLFrameSetElement::parseAttribute):
      * html/HTMLFrameSetElement.h:
      * html/HTMLHRElement.cpp:
      (WebCore::HTMLHRElement::collectStyleForAttribute):
      * html/HTMLHRElement.h:
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::collectStyleForAttribute):
      (WebCore::HTMLIFrameElement::parseAttribute):
      * html/HTMLIFrameElement.h:
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::collectStyleForAttribute):
      (WebCore::HTMLImageElement::parseAttribute):
      * html/HTMLImageElement.h:
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::updateType):
      (WebCore::HTMLInputElement::collectStyleForAttribute):
      (WebCore::HTMLInputElement::parseAttribute):
      (WebCore::HTMLInputElement::parseMaxLengthAttribute):
      * html/HTMLInputElement.h:
      * html/HTMLKeygenElement.cpp:
      (WebCore::HTMLKeygenElement::parseAttribute):
      * html/HTMLKeygenElement.h:
      * html/HTMLLIElement.cpp:
      (WebCore::HTMLLIElement::collectStyleForAttribute):
      (WebCore::HTMLLIElement::parseAttribute):
      * html/HTMLLIElement.h:
      * html/HTMLLinkElement.cpp:
      (WebCore::HTMLLinkElement::parseAttribute):
      * html/HTMLLinkElement.h:
      * html/HTMLMapElement.cpp:
      (WebCore::HTMLMapElement::parseAttribute):
      * html/HTMLMapElement.h:
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::collectStyleForAttribute):
      * html/HTMLMarqueeElement.h:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::parseAttribute):
      * html/HTMLMediaElement.h:
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::parseAttribute):
      * html/HTMLMetaElement.h:
      * html/HTMLMeterElement.cpp:
      (WebCore::HTMLMeterElement::parseAttribute):
      * html/HTMLMeterElement.h:
      * html/HTMLOListElement.cpp:
      (WebCore::HTMLOListElement::collectStyleForAttribute):
      (WebCore::HTMLOListElement::parseAttribute):
      * html/HTMLOListElement.h:
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::collectStyleForAttribute):
      (WebCore::HTMLObjectElement::parseAttribute):
      * html/HTMLObjectElement.h:
      * html/HTMLOptGroupElement.cpp:
      (WebCore::HTMLOptGroupElement::parseAttribute):
      * html/HTMLOptGroupElement.h:
      * html/HTMLOptionElement.cpp:
      (WebCore::HTMLOptionElement::parseAttribute):
      * html/HTMLOptionElement.h:
      * html/HTMLOutputElement.cpp:
      (WebCore::HTMLOutputElement::parseAttribute):
      * html/HTMLOutputElement.h:
      * html/HTMLParagraphElement.cpp:
      (WebCore::HTMLParagraphElement::collectStyleForAttribute):
      * html/HTMLParagraphElement.h:
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::collectStyleForAttribute):
      * html/HTMLPlugInElement.h:
      * html/HTMLPreElement.cpp:
      (WebCore::HTMLPreElement::collectStyleForAttribute):
      * html/HTMLPreElement.h:
      * html/HTMLProgressElement.cpp:
      (WebCore::HTMLProgressElement::parseAttribute):
      * html/HTMLProgressElement.h:
      * html/HTMLScriptElement.cpp:
      (WebCore::HTMLScriptElement::parseAttribute):
      * html/HTMLScriptElement.h:
      * html/HTMLSelectElement.cpp:
      (WebCore::HTMLSelectElement::parseAttribute):
      (WebCore::HTMLSelectElement::parseMultipleAttribute):
      * html/HTMLSelectElement.h:
      * html/HTMLStyleElement.cpp:
      (WebCore::HTMLStyleElement::parseAttribute):
      * html/HTMLStyleElement.h:
      * html/HTMLTableCaptionElement.cpp:
      (WebCore::HTMLTableCaptionElement::collectStyleForAttribute):
      * html/HTMLTableCaptionElement.h:
      * html/HTMLTableCellElement.cpp:
      (WebCore::HTMLTableCellElement::collectStyleForAttribute):
      (WebCore::HTMLTableCellElement::parseAttribute):
      * html/HTMLTableCellElement.h:
      * html/HTMLTableColElement.cpp:
      (WebCore::HTMLTableColElement::collectStyleForAttribute):
      (WebCore::HTMLTableColElement::parseAttribute):
      * html/HTMLTableColElement.h:
      * html/HTMLTableElement.cpp:
      (WebCore::HTMLTableElement::collectStyleForAttribute):
      (WebCore::HTMLTableElement::parseAttribute):
      * html/HTMLTableElement.h:
      * html/HTMLTablePartElement.cpp:
      (WebCore::HTMLTablePartElement::collectStyleForAttribute):
      * html/HTMLTablePartElement.h:
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::collectStyleForAttribute):
      (WebCore::HTMLTextAreaElement::parseAttribute):
      * html/HTMLTextAreaElement.h:
      * html/HTMLTextFormControlElement.cpp:
      (WebCore::HTMLTextFormControlElement::parseAttribute):
      * html/HTMLTextFormControlElement.h:
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::parseAttribute):
      * html/HTMLTrackElement.h:
      * html/HTMLUListElement.cpp:
      (WebCore::HTMLUListElement::collectStyleForAttribute):
      * html/HTMLUListElement.h:
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::collectStyleForAttribute):
      (WebCore::HTMLVideoElement::parseAttribute):
      * html/HTMLVideoElement.h:
      * html/shadow/HTMLContentElement.cpp:
      (WebCore::HTMLContentElement::parseAttribute):
      * html/shadow/HTMLContentElement.h:
      * mathml/MathMLElement.cpp:
      (WebCore::MathMLElement::collectStyleForAttribute):
      * mathml/MathMLElement.h:
      * svg/SVGAElement.cpp:
      (WebCore::SVGAElement::parseAttribute):
      * svg/SVGAElement.h:
      * svg/SVGAnimateMotionElement.cpp:
      (WebCore::SVGAnimateMotionElement::parseAttribute):
      * svg/SVGAnimateMotionElement.h:
      * svg/SVGAnimateTransformElement.cpp:
      (WebCore::SVGAnimateTransformElement::parseAttribute):
      * svg/SVGAnimateTransformElement.h:
      * svg/SVGAnimationElement.cpp:
      (WebCore::SVGAnimationElement::parseAttribute):
      * svg/SVGAnimationElement.h:
      * svg/SVGCircleElement.cpp:
      (WebCore::SVGCircleElement::parseAttribute):
      * svg/SVGCircleElement.h:
      * svg/SVGClipPathElement.cpp:
      (WebCore::SVGClipPathElement::parseAttribute):
      * svg/SVGClipPathElement.h:
      * svg/SVGComponentTransferFunctionElement.cpp:
      (WebCore::SVGComponentTransferFunctionElement::parseAttribute):
      * svg/SVGComponentTransferFunctionElement.h:
      * svg/SVGCursorElement.cpp:
      (WebCore::SVGCursorElement::parseAttribute):
      * svg/SVGCursorElement.h:
      * svg/SVGElement.cpp:
      (WebCore::SVGElement::reportAttributeParsingError):
      (WebCore::SVGElement::parseAttribute):
      (WebCore::SVGElement::attributeChanged):
      * svg/SVGElement.h:
      * svg/SVGEllipseElement.cpp:
      (WebCore::SVGEllipseElement::parseAttribute):
      * svg/SVGEllipseElement.h:
      * svg/SVGExternalResourcesRequired.cpp:
      (WebCore::SVGExternalResourcesRequired::parseAttribute):
      * svg/SVGExternalResourcesRequired.h:
      (SVGExternalResourcesRequired):
      * svg/SVGFEBlendElement.cpp:
      (WebCore::SVGFEBlendElement::parseAttribute):
      * svg/SVGFEBlendElement.h:
      * svg/SVGFEColorMatrixElement.cpp:
      (WebCore::SVGFEColorMatrixElement::parseAttribute):
      * svg/SVGFEColorMatrixElement.h:
      * svg/SVGFEComponentTransferElement.cpp:
      (WebCore::SVGFEComponentTransferElement::parseAttribute):
      * svg/SVGFEComponentTransferElement.h:
      * svg/SVGFECompositeElement.cpp:
      (WebCore::SVGFECompositeElement::parseAttribute):
      * svg/SVGFECompositeElement.h:
      * svg/SVGFEConvolveMatrixElement.cpp:
      (WebCore::SVGFEConvolveMatrixElement::parseAttribute):
      * svg/SVGFEConvolveMatrixElement.h:
      * svg/SVGFEDiffuseLightingElement.cpp:
      (WebCore::SVGFEDiffuseLightingElement::parseAttribute):
      * svg/SVGFEDiffuseLightingElement.h:
      * svg/SVGFEDisplacementMapElement.cpp:
      (WebCore::SVGFEDisplacementMapElement::parseAttribute):
      * svg/SVGFEDisplacementMapElement.h:
      * svg/SVGFEDropShadowElement.cpp:
      (WebCore::SVGFEDropShadowElement::parseAttribute):
      * svg/SVGFEDropShadowElement.h:
      * svg/SVGFEGaussianBlurElement.cpp:
      (WebCore::SVGFEGaussianBlurElement::parseAttribute):
      * svg/SVGFEGaussianBlurElement.h:
      * svg/SVGFEImageElement.cpp:
      (WebCore::SVGFEImageElement::parseAttribute):
      * svg/SVGFEImageElement.h:
      * svg/SVGFELightElement.cpp:
      (WebCore::SVGFELightElement::parseAttribute):
      * svg/SVGFELightElement.h:
      * svg/SVGFEMergeNodeElement.cpp:
      (WebCore::SVGFEMergeNodeElement::parseAttribute):
      * svg/SVGFEMergeNodeElement.h:
      * svg/SVGFEMorphologyElement.cpp:
      (WebCore::SVGFEMorphologyElement::parseAttribute):
      * svg/SVGFEMorphologyElement.h:
      * svg/SVGFEOffsetElement.cpp:
      (WebCore::SVGFEOffsetElement::parseAttribute):
      * svg/SVGFEOffsetElement.h:
      * svg/SVGFESpecularLightingElement.cpp:
      (WebCore::SVGFESpecularLightingElement::parseAttribute):
      * svg/SVGFESpecularLightingElement.h:
      * svg/SVGFETileElement.cpp:
      (WebCore::SVGFETileElement::parseAttribute):
      * svg/SVGFETileElement.h:
      * svg/SVGFETurbulenceElement.cpp:
      (WebCore::SVGFETurbulenceElement::parseAttribute):
      * svg/SVGFETurbulenceElement.h:
      * svg/SVGFilterElement.cpp:
      (WebCore::SVGFilterElement::parseAttribute):
      * svg/SVGFilterElement.h:
      * svg/SVGFilterPrimitiveStandardAttributes.cpp:
      (WebCore::SVGFilterPrimitiveStandardAttributes::parseAttribute):
      * svg/SVGFilterPrimitiveStandardAttributes.h:
      (SVGFilterPrimitiveStandardAttributes):
      * svg/SVGFitToViewBox.cpp:
      (WebCore::SVGFitToViewBox::parseAttribute):
      * svg/SVGFitToViewBox.h:
      (SVGFitToViewBox):
      * svg/SVGFontFaceElement.cpp:
      (WebCore::SVGFontFaceElement::parseAttribute):
      * svg/SVGFontFaceElement.h:
      * svg/SVGFontFaceUriElement.cpp:
      (WebCore::SVGFontFaceUriElement::parseAttribute):
      * svg/SVGFontFaceUriElement.h:
      * svg/SVGForeignObjectElement.cpp:
      (WebCore::SVGForeignObjectElement::parseAttribute):
      * svg/SVGForeignObjectElement.h:
      * svg/SVGGElement.cpp:
      (WebCore::SVGGElement::parseAttribute):
      * svg/SVGGElement.h:
      * svg/SVGGlyphElement.cpp:
      (WebCore::SVGGlyphElement::parseAttribute):
      * svg/SVGGlyphElement.h:
      * svg/SVGGlyphRefElement.cpp:
      (WebCore::SVGGlyphRefElement::parseAttribute):
      * svg/SVGGlyphRefElement.h:
      * svg/SVGGradientElement.cpp:
      (WebCore::SVGGradientElement::parseAttribute):
      * svg/SVGGradientElement.h:
      * svg/SVGImageElement.cpp:
      (WebCore::SVGImageElement::collectStyleForAttribute):
      (WebCore::SVGImageElement::parseAttribute):
      * svg/SVGImageElement.h:
      * svg/SVGImageLoader.cpp:
      (WebCore::SVGImageLoader::sourceURI):
      * svg/SVGLangSpace.cpp:
      (WebCore::SVGLangSpace::parseAttribute):
      * svg/SVGLangSpace.h:
      (SVGLangSpace):
      * svg/SVGLineElement.cpp:
      (WebCore::SVGLineElement::parseAttribute):
      * svg/SVGLineElement.h:
      * svg/SVGLinearGradientElement.cpp:
      (WebCore::SVGLinearGradientElement::parseAttribute):
      * svg/SVGLinearGradientElement.h:
      * svg/SVGMPathElement.cpp:
      (WebCore::SVGMPathElement::parseAttribute):
      * svg/SVGMPathElement.h:
      * svg/SVGMarkerElement.cpp:
      (WebCore::SVGMarkerElement::parseAttribute):
      * svg/SVGMarkerElement.h:
      * svg/SVGMaskElement.cpp:
      (WebCore::SVGMaskElement::parseAttribute):
      * svg/SVGMaskElement.h:
      * svg/SVGPathElement.cpp:
      (WebCore::SVGPathElement::parseAttribute):
      * svg/SVGPathElement.h:
      * svg/SVGPatternElement.cpp:
      (WebCore::SVGPatternElement::parseAttribute):
      * svg/SVGPatternElement.h:
      * svg/SVGPolyElement.cpp:
      (WebCore::SVGPolyElement::parseAttribute):
      * svg/SVGPolyElement.h:
      * svg/SVGRadialGradientElement.cpp:
      (WebCore::SVGRadialGradientElement::parseAttribute):
      * svg/SVGRadialGradientElement.h:
      * svg/SVGRectElement.cpp:
      (WebCore::SVGRectElement::parseAttribute):
      * svg/SVGRectElement.h:
      * svg/SVGSVGElement.cpp:
      (WebCore::SVGSVGElement::parseAttribute):
      * svg/SVGSVGElement.h:
      * svg/SVGScriptElement.cpp:
      (WebCore::SVGScriptElement::parseAttribute):
      * svg/SVGScriptElement.h:
      * svg/SVGStopElement.cpp:
      (WebCore::SVGStopElement::parseAttribute):
      * svg/SVGStopElement.h:
      * svg/SVGStyleElement.cpp:
      (WebCore::SVGStyleElement::parseAttribute):
      * svg/SVGStyleElement.h:
      * svg/SVGStyledElement.cpp:
      (WebCore::SVGStyledElement::collectStyleForAttribute):
      (WebCore::SVGStyledElement::parseAttribute):
      * svg/SVGStyledElement.h:
      * svg/SVGStyledTransformableElement.cpp:
      (WebCore::SVGStyledTransformableElement::parseAttribute):
      * svg/SVGStyledTransformableElement.h:
      * svg/SVGSymbolElement.cpp:
      (WebCore::SVGSymbolElement::parseAttribute):
      * svg/SVGSymbolElement.h:
      * svg/SVGTRefElement.cpp:
      (WebCore::SVGTRefElement::parseAttribute):
      * svg/SVGTRefElement.h:
      * svg/SVGTests.cpp:
      (WebCore::SVGTests::parseAttribute):
      * svg/SVGTests.h:
      (SVGTests):
      * svg/SVGTextContentElement.cpp:
      (WebCore::SVGTextContentElement::collectStyleForAttribute):
      (WebCore::SVGTextContentElement::parseAttribute):
      * svg/SVGTextContentElement.h:
      * svg/SVGTextElement.cpp:
      (WebCore::SVGTextElement::parseAttribute):
      * svg/SVGTextElement.h:
      * svg/SVGTextPathElement.cpp:
      (WebCore::SVGTextPathElement::parseAttribute):
      * svg/SVGTextPathElement.h:
      * svg/SVGTextPositioningElement.cpp:
      (WebCore::SVGTextPositioningElement::parseAttribute):
      * svg/SVGTextPositioningElement.h:
      * svg/SVGURIReference.cpp:
      (WebCore::SVGURIReference::parseAttribute):
      * svg/SVGURIReference.h:
      (SVGURIReference):
      * svg/SVGUseElement.cpp:
      (WebCore::SVGUseElement::parseAttribute):
      * svg/SVGUseElement.h:
      * svg/SVGViewElement.cpp:
      (WebCore::SVGViewElement::parseAttribute):
      * svg/SVGViewElement.h:
      * svg/SVGZoomAndPan.cpp:
      (WebCore::SVGZoomAndPan::parseAttribute):
      * svg/SVGZoomAndPan.h:
      (SVGZoomAndPan):
      * svg/animation/SVGSMILElement.cpp:
      (WebCore::SVGSMILElement::parseAttribute):
      * svg/animation/SVGSMILElement.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      260fca8b
  15. 02 Apr, 2012 1 commit
    • weinig@apple.com's avatar
      Add setting to disable Java for local files even if it is otherwise enabled · 94c51ab5
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=82685
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      Export setting setter.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::canEmbedJava):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::requestPlugin):
      * page/Navigator.cpp:
      (WebCore::Navigator::javaEnabled):
      Check for both isJavaEnabled and isJavaEnabledForLocalFiles.
      
      * page/Settings.cpp:
      (WebCore::Settings::setJavaEnabledForLocalFiles):
      * page/Settings.h:
      (WebCore::Settings::isJavaEnabledForLocalFiles):
      Add new setting.
      
      Source/WebKit2:
      
      * Shared/WebPreferencesStore.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesSetJavaEnabledForLocalFiles):
      (WKPreferencesGetJavaEnabledForLocalFiles):
      * UIProcess/API/C/WKPreferencesPrivate.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updatePreferences):
      Add pref as SPI and forward to WebCore.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@112894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94c51ab5
  16. 11 Feb, 2012 1 commit
    • kling@webkit.org's avatar
      Use Element's hasName/hasID flags to avoid unnecessary work when looking up name/id attributes. · 11744b11
      kling@webkit.org authored
      <http://webkit.org/b/77845>
      
      Reviewed by Anders Carlsson.
      
      Have Element::getIdAttribute() check the hasID() flag before looking up the attribute.
      Add an Element::getNameAttribute() to do the same thing with hasName().
      Update call sites to make use of these helpers whenever possible.
      
      * accessibility/AccessibilityRenderObject.cpp:
      (WebCore::AccessibilityRenderObject::accessibilityDescription):
      * dom/DocumentOrderedMap.cpp:
      (WebCore::keyMatchesId):
      * dom/Element.h:
      (Element):
      (WebCore::Element::getIdAttribute):
      (WebCore):
      (WebCore::Element::getNameAttribute):
      * dom/NameNodeList.cpp:
      (WebCore::NameNodeList::nodeMatches):
      * dom/StaticHashSetNodeList.cpp:
      (WebCore::StaticHashSetNodeList::itemWithName):
      * dom/StaticNodeList.cpp:
      (WebCore::StaticNodeList::itemWithName):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::name):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::createRenderer):
      * html/HTMLCollection.cpp:
      (WebCore::HTMLCollection::checkForNameMatch):
      (WebCore::HTMLCollection::updateNameCache):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::updateWidget):
      * html/HTMLFormCollection.cpp:
      (WebCore::HTMLFormCollection::updateNameCache):
      * html/HTMLFormControlElement.cpp:
      (WebCore::HTMLFormControlElement::formControlName):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::name):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::name):
      * html/HTMLNameCollection.cpp:
      (WebCore::HTMLNameCollection::itemAfter):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::updateWidget):
      (WebCore::HTMLObjectElement::updateDocNamedItem):
      (WebCore::HTMLObjectElement::containsJavaApplet):
      (WebCore::HTMLObjectElement::formControlName):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      * page/Frame.cpp:
      (WebCore::Frame::matchLabelsAgainstElement):
      * rendering/svg/RenderSVGResourceContainer.cpp:
      (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
      * svg/SVGSVGElement.cpp:
      (WebCore::SVGSVGElement::getElementById):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      11744b11
  17. 05 Feb, 2012 1 commit
  18. 23 Dec, 2011 1 commit
    • kling@webkit.org's avatar
      Automate elements' registration as document namedItem/extraNamedItem. · b8972773
      kling@webkit.org authored
      <http://webkit.org/b/74991>
      
      Patch by Andreas Kling <kling@webkit.org> on 2011-12-21
      Reviewed by Antti Koivisto.
      
      Remove caching of the "id" and "name" attributes on applet, embed, form,
      image and object elements. We were caching them to keep the document's
      map of named and "extra named" (named by id) item counts in sync.
      
      Instead, add a hook to Element::willModifyAttribute() that detects when
      the attributes are being changed and handle the registration/unregistration
      automatically if the element returns true for shouldRegisterAsNamedItem()
      or shouldRegisterAsExtraNamedItem() respectively.
      
      This shrinks the elements by two AtomicStrings (8 or 16 bytes) each.
      
      IFrame elements retain the old mechanism for now, as there are some subtle
      differences to how that's handled.
      
      * dom/Node.h:
      (WebCore::Node::hasName):
      (WebCore::Node::setHasName):
      
          Cache whether we have a "name" attribute or not (1 bit on Node.)
          This is done in order to minimize the overhead added to Element's
          insertedIntoDocument() and removeFromDocument().
      
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::attributeChanged):
      
          Update the Node's has-name flag as appropriate.
      
      * dom/Element.cpp:
      (WebCore::Element::updateNamedItemRegistration):
      (WebCore::Element::updateExtraNamedItemRegistration):
      
          Added. Called when the "name" and "id" attributes are changed.
          Updates the document's named item maps accordingly.
      
      (WebCore::Element::insertedIntoDocument):
      (WebCore::Element::removedFromDocument):
      
          Make sure updateName() is called in addition to updateId() when applicable.
      
      * dom/Element.h:
      (WebCore::Element::shouldRegisterAsNamedItem):
      (WebCore::Element::shouldRegisterAsExtraNamedItem):
      
          Added. If an element returns true for these, it will be automatically
          registered with the document when the name/id attribute changes.
      
      (WebCore::Element::updateId):
      (WebCore::Element::updateName):
      
          Register/unregister from the document's named item maps as appropriate.
      
      (WebCore::Element::willModifyAttribute):
      
          Add updateName() hook in addition to the existing updateId() hook.
      
      * dom/NamedNodeMap.cpp:
      (WebCore::NamedNodeMap::setAttributes):
      
          Make sure updateName() is called when we're cloning the attributes
          from another element.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::parseMappedAttribute):
      * html/HTMLAppletElement.h:
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::parseMappedAttribute):
      (WebCore::HTMLEmbedElement::insertedIntoDocument):
      * html/HTMLEmbedElement.h:
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::insertedIntoDocument):
      (WebCore::HTMLFormElement::removedFromDocument):
      (WebCore::HTMLFormElement::parseMappedAttribute):
      * html/HTMLFormElement.h:
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::parseMappedAttribute):
      (WebCore::HTMLImageElement::insertedIntoDocument):
      * html/HTMLImageElement.h:
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parseMappedAttribute):
      (WebCore::HTMLObjectElement::insertedIntoDocument):
      (WebCore::HTMLObjectElement::removedFromDocument):
      * html/HTMLObjectElement.h:
      * html/HTMLPlugInElement.h:
      
          Remove duplicated code that is now handled by Element.
      
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::updateDocNamedItem):
      (WebCore::HTMLObjectElement::formControlName):
      
          Use fastGetAttribute() since we no longer cache the name.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8972773
  19. 21 Dec, 2011 2 commits
    • kling@webkit.org's avatar
      Unreviewed, rolling out r103473. · 1c8f076f
      kling@webkit.org authored
      http://trac.webkit.org/changeset/103473
      https://bugs.webkit.org/show_bug.cgi?id=74991
      
      Overestimated my superpowers a bit here.
      
      * dom/Element.cpp:
      (WebCore::Element::attributeChanged):
      (WebCore::Element::insertedIntoDocument):
      (WebCore::Element::removedFromDocument):
      * dom/Element.h:
      (WebCore::Element::updateId):
      (WebCore::Element::willModifyAttribute):
      * dom/NamedNodeMap.cpp:
      (WebCore::NamedNodeMap::setAttributes):
      * dom/Node.h:
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::parseMappedAttribute):
      (WebCore::HTMLAppletElement::insertedIntoDocument):
      (WebCore::HTMLAppletElement::removedFromDocument):
      * html/HTMLAppletElement.h:
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::parseMappedAttribute):
      (WebCore::HTMLEmbedElement::insertedIntoDocument):
      (WebCore::HTMLEmbedElement::removedFromDocument):
      * html/HTMLEmbedElement.h:
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::insertedIntoDocument):
      (WebCore::HTMLFormElement::removedFromDocument):
      (WebCore::HTMLFormElement::parseMappedAttribute):
      * html/HTMLFormElement.h:
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::parseMappedAttribute):
      (WebCore::HTMLImageElement::insertedIntoDocument):
      (WebCore::HTMLImageElement::removedFromDocument):
      * html/HTMLImageElement.h:
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parseMappedAttribute):
      (WebCore::HTMLObjectElement::insertedIntoDocument):
      (WebCore::HTMLObjectElement::removedFromDocument):
      (WebCore::HTMLObjectElement::updateDocNamedItem):
      (WebCore::HTMLObjectElement::formControlName):
      * html/HTMLObjectElement.h:
      * html/HTMLPlugInElement.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c8f076f
    • kling@webkit.org's avatar
      Automate elements' registration as document namedItem/extraNamedItem. · eea810d7
      kling@webkit.org authored
      <http://webkit.org/b/74991>
      
      Reviewed by Antti Koivisto.
      
      Remove caching of the "id" and "name" attributes on applet, embed, form,
      image and object elements. We were caching them to keep the document's
      map of named and "extra named" (named by id) item counts in sync.
      
      Instead, add a hook to Element::willModifyAttribute() that detects when
      the attributes are being changed and handle the registration/unregistration
      automatically if the element returns true for shouldRegisterAsNamedItem()
      or shouldRegisterAsExtraNamedItem() respectively.
      
      This shrinks the elements by two AtomicStrings (8 or 16 bytes) each.
      
      IFrame elements retain the old mechanism for now, as there are some subtle
      differences to how that's handled.
      
      * dom/Node.h:
      (WebCore::Node::hasName):
      (WebCore::Node::setHasName):
      
          Cache whether we have a "name" attribute or not (1 bit on Node.)
          This is done in order to minimize the overhead added to Element's
          insertedIntoDocument() and removeFromDocument().
      
      * dom/Element.cpp:
      (WebCore::Element::updateNamedItemRegistration):
      (WebCore::Element::updateExtraNamedItemRegistration):
      
          Added. Called when the "name" and "id" attributes are changed.
          Updates the document's named item maps accordingly.
      
      (WebCore::Element::insertedIntoDocument):
      (WebCore::Element::removedFromDocument):
      
          Make sure updateName() is called in addition to updateId() when applicable.
      
      (WebCore::Element::attributeChanged):
      
          Update the Node's has-name flag as appropriate.
      
      * dom/Element.h:
      (WebCore::Element::shouldRegisterAsNamedItem):
      (WebCore::Element::shouldRegisterAsExtraNamedItem):
      
          Added. If an element returns true for these, it will be automatically
          registered with the document when the name/id attribute changes.
      
      (WebCore::Element::updateId):
      (WebCore::Element::updateName):
      
          Register/unregister from the document's named item maps as appropriate.
      
      (WebCore::Element::willModifyAttribute):
      
          Add updateName() hook in addition to the existing updateId() hook.
      
      * dom/NamedNodeMap.cpp:
      (WebCore::NamedNodeMap::setAttributes):
      
          Make sure updateName() is called when we're cloning the attributes
          from another element.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::parseMappedAttribute):
      * html/HTMLAppletElement.h:
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::parseMappedAttribute):
      (WebCore::HTMLEmbedElement::insertedIntoDocument):
      * html/HTMLEmbedElement.h:
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::insertedIntoDocument):
      (WebCore::HTMLFormElement::removedFromDocument):
      (WebCore::HTMLFormElement::parseMappedAttribute):
      * html/HTMLFormElement.h:
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::parseMappedAttribute):
      (WebCore::HTMLImageElement::insertedIntoDocument):
      * html/HTMLImageElement.h:
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parseMappedAttribute):
      (WebCore::HTMLObjectElement::insertedIntoDocument):
      (WebCore::HTMLObjectElement::removedFromDocument):
      * html/HTMLObjectElement.h:
      * html/HTMLPlugInElement.h:
      
          Remove duplicated code that is now handled by Element.
      
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::updateDocNamedItem):
      (WebCore::HTMLObjectElement::formControlName):
      
          Use fastGetAttribute() since we no longer cache the name.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eea810d7
  20. 16 Dec, 2011 1 commit
    • rniwa@webkit.org's avatar
      invalidateNodeListsCacheAfterAttributeChanged has too many callers · 6eda1074
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=74692
      
      Reviewed by Sam Weinig.
      
      Source/WebCore: 
      
      Call invalidateNodeListsCacheAfterAttributeChanged in Element::updateAfterAttributeChanged instead of
      parsedMappedAttribute of various elements. Also make invalidateNodeListsCacheAfterAttributeChanged take
      the qualified name of the changed attribute so that we can exit early when the changed attribute isn't
      one of attributes we care.
      
      In addition, added a missing call to invalidateNodeListsCacheAfterAttributeChanged in Attr::setValue.
      
      Test: fast/dom/Attr/invalidate-nodelist-after-attr-setvalue.html
      
      * dom/Attr.cpp:
      (WebCore::Attr::childrenChanged):
      * dom/Element.cpp:
      (WebCore::Element::updateAfterAttributeChanged):
      * dom/NamedNodeMap.cpp:
      (WebCore::NamedNodeMap::addAttribute):
      (WebCore::NamedNodeMap::removeAttribute):
      * dom/Node.cpp:
      (WebCore::Node::invalidateNodeListsCacheAfterAttributeChanged):
      * dom/Node.h:
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::classAttributeChanged):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::parseMappedAttribute):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::parseMappedAttribute):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::parseMappedAttribute):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::parseMappedAttribute):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::parseMappedAttribute):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::parseMappedAttribute):
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::parseMappedAttribute):
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::parseMappedAttribute):
      * html/HTMLMapElement.cpp:
      (WebCore::HTMLMapElement::parseMappedAttribute):
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::parseMappedAttribute):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parseMappedAttribute):
      * html/HTMLParamElement.cpp:
      (WebCore::HTMLParamElement::parseMappedAttribute):
      
      LayoutTests: 
      
      Add a regression test for setting Attr's value. WebKit should invalidate the cache as needed.
      
      * fast/dom/Attr/invalidate-nodelist-after-attr-setvalue-expected.txt: Added.
      * fast/dom/Attr/invalidate-nodelist-after-attr-setvalue.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6eda1074
  21. 09 Dec, 2011 1 commit
    • commit-queue@webkit.org's avatar
      NameNodeListCache should be invalidated when name attribute changes/modified. · caca49d4
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70810
      
      Patch by Arko Saha <arko@motorola.com> on 2011-12-09
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      Test: fast/dom/getelementsbyname-invalidation-cache.html
      
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::parseMappedAttribute):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::parseMappedAttribute):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::parseMappedAttribute):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::parseMappedAttribute):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::parseMappedAttribute):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::parseMappedAttribute):
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::parseMappedAttribute):
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::parseMappedAttribute):
      * html/HTMLMapElement.cpp:
      (WebCore::HTMLMapElement::parseMappedAttribute):
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::parseMappedAttribute):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parseMappedAttribute):
      * html/HTMLParamElement.cpp:
      (WebCore::HTMLParamElement::parseMappedAttribute):
      
      LayoutTests:
      
      * fast/dom/getelementsbyname-invalidation-cache-expected.txt: Added.
      * fast/dom/getelementsbyname-invalidation-cache.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      caca49d4
  22. 04 Nov, 2011 1 commit
    • abarth@webkit.org's avatar
      JavaScript URLs execute in sandboxed iframes · 29f0c1ad
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71599
      
      Reviewed by Eric Seidel.
      
      Source/WebCore: 
      
      This patch fixes the intentional regression I introduced earlier today
      by moving the sandbox bits from SecurityOrigin to Document. In the
      process, I renamed SecurityOrigin::createEmpty to
      SecurityOrigin::createUnique to better align with HTML5 terminology.
      
      * WebCore.exp.in:
      * bindings/ScriptControllerBase.cpp:
      (WebCore::ScriptController::canExecuteScripts):
      * dom/Document.cpp:
      (WebCore::Document::setIsViewSource):
      (WebCore::Document::initSecurityContext):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      * dom/ScriptExecutionContext.h:
      (WebCore::ScriptExecutionContext::sandboxFlags):
      (WebCore::ScriptExecutionContext::enforceSandboxFlags):
      (WebCore::ScriptExecutionContext::isSandboxed):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::canEmbedJava):
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::begin):
      * loader/FrameLoader.cpp:
      (WebCore::isDocumentSandboxed):
      (WebCore::FrameLoader::addHTTPOriginIfNeeded):
      * loader/PolicyChecker.cpp:
      (WebCore::PolicyChecker::checkNewWindowPolicy):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::requestPlugin):
      * page/SecurityOrigin.cpp:
      (WebCore::SecurityOrigin::SecurityOrigin):
      (WebCore::SecurityOrigin::create):
      (WebCore::SecurityOrigin::createUnique):
      * page/SecurityOrigin.h:
      
      LayoutTests: 
      
      Update results to show progression.
      
      * fast/frames/sandboxed-iframe-scripting-expected.txt:
      * fast/frames/sandboxed-iframe-scripting.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29f0c1ad
  23. 02 Sep, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r94421. · 03477c8b
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/94421
      https://bugs.webkit.org/show_bug.cgi?id=67496
      
      Broke a number of tests on Chromium builders (including the
      "cr-linux" EWS bot) (Requested by apavlov on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-09-02
      
      * accessibility/AXObjectCache.cpp:
      (WebCore::nodeHasRole):
      * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
      (webkit_accessible_get_name):
      * dom/Document.cpp:
      (WebCore::Document::buildAccessKeyMap):
      (WebCore::Document::recalcStyleSelector):
      * dom/Element.cpp:
      (WebCore::Element::baseURI):
      (WebCore::Element::formatForDebugger):
      (WebCore::Element::spellcheckAttributeState):
      * dom/NameNodeList.cpp:
      (WebCore::NameNodeList::nodeMatches):
      * editing/ApplyStyleCommand.cpp:
      (WebCore::ApplyStyleCommand::removeEmbeddingUpToEnclosingBlock):
      * editing/SplitElementCommand.cpp:
      (WebCore::SplitElementCommand::doUnapply):
      * editing/markup.cpp:
      (WebCore::shouldIncludeWrapperForFullySelectedRoot):
      (WebCore::createMarkup):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::draggable):
      (WebCore::HTMLAnchorElement::href):
      (WebCore::HTMLAnchorElement::name):
      (WebCore::HTMLAnchorElement::target):
      (WebCore::HTMLAnchorElement::sendPings):
      (WebCore::HTMLAnchorElement::handleClick):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::createRenderer):
      * html/HTMLAreaElement.cpp:
      (WebCore::HTMLAreaElement::target):
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::aLink):
      (WebCore::HTMLBodyElement::bgColor):
      (WebCore::HTMLBodyElement::link):
      (WebCore::HTMLBodyElement::text):
      (WebCore::HTMLBodyElement::vLink):
      (WebCore::HTMLBodyElement::addSubresourceAttributeURLs):
      * html/HTMLButtonElement.cpp:
      (WebCore::HTMLButtonElement::value):
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::reset):
      * html/HTMLCollection.cpp:
      (WebCore::HTMLCollection::checkForNameMatch):
      (WebCore::HTMLCollection::updateNameCache):
      * html/HTMLDocument.cpp:
      (WebCore::HTMLDocument::dir):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::parseMappedAttribute):
      (WebCore::HTMLElement::draggable):
      (WebCore::HTMLElement::title):
      (WebCore::setHasDirAutoFlagRecursively):
      (WebCore::HTMLElement::directionalityIfhasDirAutoAttribute):
      (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged):
      (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::updateWidget):
      (WebCore::HTMLEmbedElement::insertedIntoDocument):
      (WebCore::HTMLEmbedElement::addSubresourceAttributeURLs):
      * html/HTMLFormCollection.cpp:
      (WebCore::HTMLFormCollection::getNamedFormItem):
      (WebCore::HTMLFormCollection::updateNameCache):
      * html/HTMLFormControlElement.cpp:
      (WebCore::HTMLFormControlElement::autofocus):
      (WebCore::HTMLFormControlElement::updateVisibleValidationMessage):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::name):
      (WebCore::HTMLFormElement::action):
      (WebCore::HTMLFormElement::method):
      (WebCore::HTMLFormElement::target):
      * html/HTMLFrameElement.cpp:
      (WebCore::HTMLFrameElement::noResize):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
      (WebCore::HTMLFrameElementBase::location):
      (WebCore::HTMLFrameElementBase::allowFullScreen):
      * html/HTMLHtmlElement.cpp:
      (WebCore::HTMLHtmlElement::insertedByParser):
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::altText):
      (WebCore::HTMLImageElement::width):
      (WebCore::HTMLImageElement::height):
      (WebCore::HTMLImageElement::alt):
      (WebCore::HTMLImageElement::draggable):
      (WebCore::HTMLImageElement::src):
      (WebCore::HTMLImageElement::addSubresourceAttributeURLs):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::finishParsingChildren):
      (WebCore::HTMLInputElement::altText):
      (WebCore::HTMLInputElement::reset):
      (WebCore::HTMLInputElement::searchEventsShouldBeDispatched):
      (WebCore::HTMLInputElement::isSpeechEnabled):
      * html/HTMLLabelElement.cpp:
      (WebCore::HTMLLabelElement::control):
      * html/HTMLLinkElement.cpp:
      (WebCore::HTMLLinkElement::process):
      (WebCore::HTMLLinkElement::href):
      (WebCore::HTMLLinkElement::rel):
      (WebCore::HTMLLinkElement::target):
      (WebCore::HTMLLinkElement::type):
      * html/HTMLMapElement.cpp:
      (WebCore::HTMLMapElement::imageElement):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::attributeChanged):
      (WebCore::HTMLMediaElement::insertedIntoDocument):
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::content):
      (WebCore::HTMLMetaElement::httpEquiv):
      (WebCore::HTMLMetaElement::name):
      * html/HTMLMeterElement.cpp:
      (WebCore::HTMLMeterElement::min):
      (WebCore::HTMLMeterElement::max):
      (WebCore::HTMLMeterElement::value):
      (WebCore::HTMLMeterElement::low):
      (WebCore::HTMLMeterElement::high):
      (WebCore::HTMLMeterElement::optimum):
      * html/HTMLNameCollection.cpp:
      (WebCore::HTMLNameCollection::itemAfter):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::updateWidget):
      (WebCore::HTMLObjectElement::containsJavaApplet):
      (WebCore::HTMLObjectElement::addSubresourceAttributeURLs):
      * html/HTMLOptGroupElement.cpp:
      (WebCore::HTMLOptGroupElement::groupLabelText):
      * html/HTMLProgressElement.cpp:
      (WebCore::HTMLProgressElement::max):
      * html/HTMLScriptElement.cpp:
      (WebCore::HTMLScriptElement::sourceAttributeValue):
      (WebCore::HTMLScriptElement::charsetAttributeValue):
      (WebCore::HTMLScriptElement::typeAttributeValue):
      (WebCore::HTMLScriptElement::languageAttributeValue):
      (WebCore::HTMLScriptElement::forAttributeValue):
      (WebCore::HTMLScriptElement::eventAttributeValue):
      * html/HTMLSourceElement.cpp:
      (WebCore::HTMLSourceElement::media):
      (WebCore::HTMLSourceElement::type):
      * html/HTMLStyleElement.cpp:
      (WebCore::HTMLStyleElement::media):
      (WebCore::HTMLStyleElement::type):
      * html/HTMLTableCellElement.cpp:
      (WebCore::HTMLTableCellElement::abbr):
      (WebCore::HTMLTableCellElement::axis):
      (WebCore::HTMLTableCellElement::headers):
      (WebCore::HTMLTableCellElement::scope):
      (WebCore::HTMLTableCellElement::addSubresourceAttributeURLs):
      * html/HTMLTableColElement.cpp:
      (WebCore::HTMLTableColElement::width):
      * html/HTMLTableElement.cpp:
      (WebCore::HTMLTableElement::rules):
      (WebCore::HTMLTableElement::summary):
      (WebCore::HTMLTableElement::addSubresourceAttributeURLs):
      * html/HTMLTableSectionElement.cpp:
      (WebCore::HTMLTableSectionElement::align):
      (WebCore::HTMLTableSectionElement::ch):
      (WebCore::HTMLTableSectionElement::chOff):
      (WebCore::HTMLTableSectionElement::vAlign):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::maxLength):
      * html/HTMLTextFormControlElement.cpp:
      (WebCore::HTMLTextFormControlElement::strippedPlaceholder):
      (WebCore::HTMLTextFormControlElement::isPlaceholderEmpty):
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::src):
      (WebCore::HTMLTrackElement::kind):
      (WebCore::HTMLTrackElement::srclang):
      (WebCore::HTMLTrackElement::label):
      (WebCore::HTMLTrackElement::isDefault):
      (WebCore::HTMLTrackElement::load):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::width):
      (WebCore::HTMLVideoElement::height):
      * html/StepRange.cpp:
      (WebCore::StepRange::StepRange):
      * html/shadow/TextControlInnerElements.cpp:
      (WebCore::InputFieldSpeechButtonElement::startSpeechInput):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      * loader/FormSubmission.cpp:
      (WebCore::FormSubmission::create):
      * loader/ImageLoader.cpp:
      (WebCore::ImageLoader::updateFromElement):
      * page/Frame.cpp:
      (WebCore::Frame::matchLabelsAgainstElement):
      * page/PageSerializer.cpp:
      (WebCore::PageSerializer::serializeFrame):
      * page/mac/FrameMac.mm:
      (WebCore::Frame::matchLabelsAgainstElement):
      * platform/chromium/ClipboardChromium.cpp:
      (WebCore::writeImageToDataObject):
      * platform/chromium/PasteboardChromium.cpp:
      (WebCore::Pasteboard::writeImage):
      * platform/gtk/PasteboardGtk.cpp:
      (WebCore::getURLForImageNode):
      * platform/mac/HTMLConverter.mm:
      (fileWrapperForElement):
      * platform/win/ClipboardWin.cpp:
      (WebCore::writeImageToDataObject):
      (WebCore::ClipboardWin::declareAndWriteDragImage):
      * rendering/HitTestResult.cpp:
      (WebCore::HitTestResult::altDisplayString):
      (WebCore::HitTestResult::absoluteImageURL):
      (WebCore::HitTestResult::absoluteLinkURL):
      * rendering/RenderDetails.cpp:
      (WebCore::RenderDetails::isOpen):
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::itemAccessibilityText):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::addPDFURLRect):
      * rendering/RenderTableCell.cpp:
      (WebCore::RenderTableCell::computePreferredLogicalWidths):
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::autosaveName):
      * rendering/RenderVideo.cpp:
      (WebCore::RenderVideo::calculateIntrinsicSize):
      * rendering/mathml/RenderMathMLFenced.cpp:
      (WebCore::RenderMathMLFenced::updateFromElement):
      * rendering/mathml/RenderMathMLFraction.cpp:
      (WebCore::RenderMathMLFraction::updateFromElement):
      * rendering/mathml/RenderMathMLOperator.cpp:
      (WebCore::RenderMathMLOperator::updateFromElement):
      * svg/SVGFontData.cpp:
      (WebCore::SVGFontData::applySVGGlyphSelection):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03477c8b
    • andreas.kling@nokia.com's avatar
      Use fastGetAttribute() and fastHasAttribute() where appropriate. · baab8915
      andreas.kling@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=67394
      
      Reviewed by Darin Adler.
      
      Change call sites that don't check the "style" or SVG animatable
      attributes to use fastGetAttribute()/fastHasAttribute() instead
      of getAttribute()/hasAttribute().
      
      No new tests, this is a minor performance optimization.
      
      * accessibility/AXObjectCache.cpp:
      (WebCore::nodeHasRole):
      * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
      (webkit_accessible_get_name):
      * dom/Document.cpp:
      (WebCore::Document::buildAccessKeyMap):
      (WebCore::Document::recalcStyleSelector):
      * dom/Element.cpp:
      (WebCore::Element::baseURI):
      (WebCore::Element::formatForDebugger):
      (WebCore::Element::spellcheckAttributeState):
      * dom/NameNodeList.cpp:
      (WebCore::NameNodeList::nodeMatches):
      * editing/ApplyStyleCommand.cpp:
      (WebCore::ApplyStyleCommand::removeEmbeddingUpToEnclosingBlock):
      * editing/SplitElementCommand.cpp:
      (WebCore::SplitElementCommand::doUnapply):
      * editing/markup.cpp:
      (WebCore::shouldIncludeWrapperForFullySelectedRoot):
      (WebCore::createMarkup):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::draggable):
      (WebCore::HTMLAnchorElement::href):
      (WebCore::HTMLAnchorElement::name):
      (WebCore::HTMLAnchorElement::target):
      (WebCore::HTMLAnchorElement::sendPings):
      (WebCore::HTMLAnchorElement::handleClick):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::createRenderer):
      * html/HTMLAreaElement.cpp:
      (WebCore::HTMLAreaElement::target):
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::aLink):
      (WebCore::HTMLBodyElement::bgColor):
      (WebCore::HTMLBodyElement::link):
      (WebCore::HTMLBodyElement::text):
      (WebCore::HTMLBodyElement::vLink):
      (WebCore::HTMLBodyElement::addSubresourceAttributeURLs):
      * html/HTMLButtonElement.cpp:
      (WebCore::HTMLButtonElement::value):
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::reset):
      * html/HTMLCollection.cpp:
      (WebCore::HTMLCollection::checkForNameMatch):
      (WebCore::HTMLCollection::updateNameCache):
      * html/HTMLDocument.cpp:
      (WebCore::HTMLDocument::dir):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::parseMappedAttribute):
      (WebCore::HTMLElement::draggable):
      (WebCore::HTMLElement::title):
      (WebCore::setHasDirAutoFlagRecursively):
      (WebCore::HTMLElement::directionalityIfhasDirAutoAttribute):
      (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged):
      (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::updateWidget):
      (WebCore::HTMLEmbedElement::insertedIntoDocument):
      (WebCore::HTMLEmbedElement::addSubresourceAttributeURLs):
      * html/HTMLFormCollection.cpp:
      (WebCore::HTMLFormCollection::getNamedFormItem):
      (WebCore::HTMLFormCollection::updateNameCache):
      * html/HTMLFormControlElement.cpp:
      (WebCore::HTMLFormControlElement::autofocus):
      (WebCore::HTMLFormControlElement::updateVisibleValidationMessage):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::name):
      (WebCore::HTMLFormElement::action):
      (WebCore::HTMLFormElement::method):
      (WebCore::HTMLFormElement::target):
      * html/HTMLFrameElement.cpp:
      (WebCore::HTMLFrameElement::noResize):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
      (WebCore::HTMLFrameElementBase::location):
      (WebCore::HTMLFrameElementBase::allowFullScreen):
      * html/HTMLHtmlElement.cpp:
      (WebCore::HTMLHtmlElement::insertedByParser):
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::altText):
      (WebCore::HTMLImageElement::width):
      (WebCore::HTMLImageElement::height):
      (WebCore::HTMLImageElement::alt):
      (WebCore::HTMLImageElement::draggable):
      (WebCore::HTMLImageElement::src):
      (WebCore::HTMLImageElement::addSubresourceAttributeURLs):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::finishParsingChildren):
      (WebCore::HTMLInputElement::altText):
      (WebCore::HTMLInputElement::reset):
      (WebCore::HTMLInputElement::searchEventsShouldBeDispatched):
      (WebCore::HTMLInputElement::isSpeechEnabled):
      * html/HTMLLabelElement.cpp:
      (WebCore::HTMLLabelElement::control):
      * html/HTMLLinkElement.cpp:
      (WebCore::HTMLLinkElement::process):
      (WebCore::HTMLLinkElement::href):
      (WebCore::HTMLLinkElement::rel):
      (WebCore::HTMLLinkElement::target):
      (WebCore::HTMLLinkElement::type):
      * html/HTMLMapElement.cpp:
      (WebCore::HTMLMapElement::imageElement):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::attributeChanged):
      (WebCore::HTMLMediaElement::insertedIntoDocument):
      * html/HTMLMetaElement.cpp:
      (WebCore::HTMLMetaElement::content):
      (WebCore::HTMLMetaElement::httpEquiv):
      (WebCore::HTMLMetaElement::name):
      * html/HTMLMeterElement.cpp:
      (WebCore::HTMLMeterElement::min):
      (WebCore::HTMLMeterElement::max):
      (WebCore::HTMLMeterElement::value):
      (WebCore::HTMLMeterElement::low):
      (WebCore::HTMLMeterElement::high):
      (WebCore::HTMLMeterElement::optimum):
      * html/HTMLNameCollection.cpp:
      (WebCore::HTMLNameCollection::itemAfter):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::updateWidget):
      (WebCore::HTMLObjectElement::containsJavaApplet):
      (WebCore::HTMLObjectElement::addSubresourceAttributeURLs):
      * html/HTMLOptGroupElement.cpp:
      (WebCore::HTMLOptGroupElement::groupLabelText):
      * html/HTMLProgressElement.cpp:
      (WebCore::HTMLProgressElement::max):
      * html/HTMLScriptElement.cpp:
      (WebCore::HTMLScriptElement::sourceAttributeValue):
      (WebCore::HTMLScriptElement::charsetAttributeValue):
      (WebCore::HTMLScriptElement::typeAttributeValue):
      (WebCore::HTMLScriptElement::languageAttributeValue):
      (WebCore::HTMLScriptElement::forAttributeValue):
      (WebCore::HTMLScriptElement::eventAttributeValue):
      * html/HTMLSourceElement.cpp:
      (WebCore::HTMLSourceElement::media):
      (WebCore::HTMLSourceElement::type):
      * html/HTMLStyleElement.cpp:
      (WebCore::HTMLStyleElement::media):
      (WebCore::HTMLStyleElement::type):
      * html/HTMLTableCellElement.cpp:
      (WebCore::HTMLTableCellElement::abbr):
      (WebCore::HTMLTableCellElement::axis):
      (WebCore::HTMLTableCellElement::headers):
      (WebCore::HTMLTableCellElement::scope):
      (WebCore::HTMLTableCellElement::addSubresourceAttributeURLs):
      * html/HTMLTableColElement.cpp:
      (WebCore::HTMLTableColElement::width):
      * html/HTMLTableElement.cpp:
      (WebCore::HTMLTableElement::rules):
      (WebCore::HTMLTableElement::summary):
      (WebCore::HTMLTableElement::addSubresourceAttributeURLs):
      * html/HTMLTableSectionElement.cpp:
      (WebCore::HTMLTableSectionElement::align):
      (WebCore::HTMLTableSectionElement::ch):
      (WebCore::HTMLTableSectionElement::chOff):
      (WebCore::HTMLTableSectionElement::vAlign):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::maxLength):
      * html/HTMLTextFormControlElement.cpp:
      (WebCore::HTMLTextFormControlElement::strippedPlaceholder):
      (WebCore::HTMLTextFormControlElement::isPlaceholderEmpty):
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::src):
      (WebCore::HTMLTrackElement::kind):
      (WebCore::HTMLTrackElement::srclang):
      (WebCore::HTMLTrackElement::label):
      (WebCore::HTMLTrackElement::isDefault):
      (WebCore::HTMLTrackElement::load):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::width):
      (WebCore::HTMLVideoElement::height):
      * html/StepRange.cpp:
      (WebCore::StepRange::StepRange):
      * html/shadow/TextControlInnerElements.cpp:
      (WebCore::InputFieldSpeechButtonElement::startSpeechInput):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      * loader/FormSubmission.cpp:
      (WebCore::FormSubmission::create):
      * loader/ImageLoader.cpp:
      (WebCore::ImageLoader::updateFromElement):
      * page/Frame.cpp:
      (WebCore::Frame::matchLabelsAgainstElement):
      * page/PageSerializer.cpp:
      (WebCore::PageSerializer::serializeFrame):
      * page/mac/FrameMac.mm:
      (WebCore::Frame::matchLabelsAgainstElement):
      * platform/chromium/ClipboardChromium.cpp:
      (WebCore::writeImageToDataObject):
      * platform/chromium/PasteboardChromium.cpp:
      (WebCore::Pasteboard::writeImage):
      * platform/gtk/PasteboardGtk.cpp:
      (WebCore::getURLForImageNode):
      * platform/mac/HTMLConverter.mm:
      (fileWrapperForElement):
      * platform/win/ClipboardWin.cpp:
      (WebCore::writeImageToDataObject):
      (WebCore::ClipboardWin::declareAndWriteDragImage):
      * rendering/HitTestResult.cpp:
      (WebCore::HitTestResult::altDisplayString):
      (WebCore::HitTestResult::absoluteImageURL):
      (WebCore::HitTestResult::absoluteLinkURL):
      * rendering/RenderDetails.cpp:
      (WebCore::RenderDetails::isOpen):
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::itemAccessibilityText):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::addPDFURLRect):
      * rendering/RenderTableCell.cpp:
      (WebCore::RenderTableCell::computePreferredLogicalWidths):
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::autosaveName):
      * rendering/RenderVideo.cpp:
      (WebCore::RenderVideo::calculateIntrinsicSize):
      * rendering/mathml/RenderMathMLFenced.cpp:
      (WebCore::RenderMathMLFenced::updateFromElement):
      * rendering/mathml/RenderMathMLFraction.cpp:
      (WebCore::RenderMathMLFraction::updateFromElement):
      * rendering/mathml/RenderMathMLOperator.cpp:
      (WebCore::RenderMathMLOperator::updateFromElement):
      * svg/SVGFontData.cpp:
      (WebCore::SVGFontData::applySVGGlyphSelection):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94421 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      baab8915
  24. 20 Jul, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Remove "const" from obviously-non-const accessors · 7e978e13
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=62302
      
      Patch by Peter Kasting <pkasting@google.com> on 2011-07-20
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      No functional change, so no new tests.
      
      * WebCore.exp.in: Adjust function names to reflect non-constness.
      * dom/Element.cpp:
      (WebCore::Element::cloneElementWithoutAttributesAndChildren): Not const, calls non-const function Document::createElement().
      (WebCore::Element::scrollLeft): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::scrollTop): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::scrollWidth): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::scrollHeight): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::boundsInWindowSpace): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::getClientRects): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::getBoundingClientRect): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::innerText): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Element::outerText): Not const, calls newly non-const function Element::innerText().
      * dom/Element.h:
      * dom/Node.cpp:
      (WebCore::Node::isContentEditable): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::Node::shouldUseInputMethod): Not const, calls newly non-const function Node::isContentEditable().
      * dom/Node.h:
      * dom/OptionElement.h: Virtual function OptionElement::selected() not const because HTMLOptionElement implementation is non-const.
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::text): Not const, calls newly non-const function Element::innerText().
      * html/HTMLAnchorElement.h:
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::renderWidgetForJSBindings): Not const, calls non-const function RenderApplet::createWidgetIfNecessary().
      * html/HTMLAppletElement.h:
      * html/HTMLAreaElement.cpp:
      (WebCore::HTMLAreaElement::imageElement): Not const, calls newly non-const function HTMLMapElement::imageElement().
      * html/HTMLAreaElement.h:
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::scrollLeft): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::HTMLBodyElement::scrollTop): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::HTMLBodyElement::scrollHeight): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::HTMLBodyElement::scrollWidth): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      * html/HTMLBodyElement.h:
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::renderWidgetForJSBindings): Not const, calls non-const function Document::createElement().
      * html/HTMLEmbedElement.h:
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::width): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::HTMLFrameElementBase::height): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      * html/HTMLFrameElementBase.h:
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::width): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::HTMLImageElement::height): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      * html/HTMLImageElement.h:
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::shouldUseInputMethod): Virtual function not const because Node implementation is non-const.
      * html/HTMLInputElement.h:
      * html/HTMLKeygenElement.cpp:
      (WebCore::KeygenSelectElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
      * html/HTMLMapElement.cpp:
      (WebCore::HTMLMapElement::imageElement): Not const, calls non-const function Document::images().
      * html/HTMLMapElement.h:
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::renderWidgetForJSBindings): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      * html/HTMLObjectElement.h:
      * html/HTMLOptionElement.cpp:
      (WebCore::HTMLOptionElement::selected): Not const, calls non-const function HTMLSelectElement::recalcListItemsIfNeeded().
      * html/HTMLOptionElement.h:
      * html/HTMLPlugInElement.cpp: Virtual function HTMLPlugInElement::renderWidgetForJSBindings() not const because various subclass implementations are non-const.
      (WebCore::HTMLPlugInElement::getInstance): Not const, calls newly non-const function HTMLPlugInElement::pluginWidget().
      (WebCore::HTMLPlugInElement::pluginWidget): Not const, calls newly non-const function HTMLPlugInElement::renderWidgetForJSBindings().
      * html/HTMLPlugInElement.h:
      * html/HTMLScriptElement.cpp:
      (WebCore::HTMLScriptElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
      * html/HTMLScriptElement.h:
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::shouldUseInputMethod): Virtual function not const because Node implementation is non-const.
      * html/HTMLTextAreaElement.h:
      * html/shadow/SliderThumbElement.h:
      (WebCore::SliderThumbElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
      * rendering/svg/SVGShadowTreeElements.cpp:
      (WebCore::SVGShadowTreeContainerElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
      * rendering/svg/SVGShadowTreeElements.h:
      * svg/SVGAnimateElement.cpp:
      (WebCore::SVGAnimateElement::hasValidAttributeType): Not const, calls newly non-const function SVGSMILElement::targetElement().
      * svg/SVGAnimateElement.h:
      * svg/SVGAnimateMotionElement.cpp:
      (WebCore::SVGAnimateMotionElement::hasValidAttributeType): Not const, calls newly non-const function SVGSMILElement::targetElement().
      * svg/SVGAnimateMotionElement.h:
      * svg/SVGAnimateTransformElement.cpp:
      (WebCore::SVGAnimateTransformElement::hasValidAttributeType): Not const, calls newly non-const function SVGSMILElement::targetElement().
      * svg/SVGAnimateTransformElement.h:
      * svg/SVGAnimationElement.cpp:
      (WebCore::SVGAnimationElement::currentValuesForValuesAnimation): Not const, calls newly non-const function SVGSMILElement::targetElement().
      * svg/SVGAnimationElement.h:
      * svg/SVGElement.cpp:
      (WebCore::SVGElement::accessDocumentSVGExtensions): Not const, calls non-const function Document::accessSVGExtensions().
      (WebCore::SVGElement::boundingBox): Not const, calls newly non-const function SVGStyledLocatableElement::getBBox().
      * svg/SVGElement.h:
      * svg/SVGLocatable.cpp:
      (WebCore::SVGLocatable::getBBox): Argument not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets() on argument.
      (WebCore::SVGLocatable::computeCTM): Argument not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets() on argument.
      (WebCore::SVGLocatable::getTransformToElement): Not const, calls newly non-const function SVGLocatable::getCTM().
      * svg/SVGLocatable.h: Virtual functions SVGLocatable::getBBox(), SVGLocatable::getCTM(), and SVGLocatable::getScreenCTM() not const because various subclass implementations are non-const.
      * svg/SVGScriptElement.cpp:
      (WebCore::SVGScriptElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
      * svg/SVGScriptElement.h:
      * svg/SVGStyledElement.cpp:
      (WebCore::SVGStyledElement::buildPendingResourcesIfNeeded): Not const, calls non-const function Document::accessSVGExtensions().
      * svg/SVGStyledElement.h:
      * svg/SVGStyledLocatableElement.cpp:
      (WebCore::SVGStyledLocatableElement::getBBox): Not const, calls newly non-const static function SVGLocatable::getBBox().
      (WebCore::SVGStyledLocatableElement::getCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
      (WebCore::SVGStyledLocatableElement::getScreenCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
      * svg/SVGStyledLocatableElement.h:
      * svg/SVGStyledTransformableElement.cpp:
      (WebCore::SVGStyledTransformableElement::getCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
      (WebCore::SVGStyledTransformableElement::getScreenCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
      (WebCore::SVGStyledTransformableElement::getBBox): Not const, calls newly non-const static function SVGLocatable::getBBox().
      (WebCore::SVGStyledTransformableElement::toClipPath): Virtual function not const because SVGUseElement implementation is non-const.
      * svg/SVGStyledTransformableElement.h:
      * svg/SVGTextContentElement.cpp:
      (WebCore::SVGTextContentElement::getNumberOfChars): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::getComputedTextLength): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::getSubStringLength): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::getStartPositionOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::getEndPositionOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::getExtentOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::getRotationOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::getCharNumAtPosition): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::SVGTextContentElement::selectSubString): Not const, calls newly non-const static function SVGTextContentElement::getNumberOfChars().
      * svg/SVGTextContentElement.h:
      * svg/SVGTextElement.cpp:
      (WebCore::SVGTextElement::getBBox): Not const, calls newly non-const static function SVGLocatable::getBBox().
      (WebCore::SVGTextElement::getCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
      (WebCore::SVGTextElement::getScreenCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
      * svg/SVGTextElement.h:
      * svg/SVGUseElement.cpp:
      (WebCore::SVGUseElement::instanceRoot): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
      (WebCore::isDirectReference):
      (WebCore::SVGUseElement::toClipPath): Not const, calls non-const function Document::accessSVGExtensions().
      * svg/SVGUseElement.h:
      * svg/animation/SVGSMILElement.cpp:
      (WebCore::SVGSMILElement::eventBaseFor): Not const, calls newly non-const function SVGSMILElement::targetElement().
      (WebCore::SVGSMILElement::targetElement): Not const, calls non-const function Document::accessSVGExtensions().
      * svg/animation/SVGSMILElement.h: Virtual function SVGSMILElement::hasValidAttributeType() not const because various subclass implementations are non-const.
      
      Source/WebKit/chromium:
      
      * public/WebElement.h:
      * src/WebElement.cpp:
      (WebKit::WebElement::innerText): Not const due to call to newly-non-const Element::innerText().
      * src/WebSearchableFormData.cpp: Use non-const Node*s for code that calls newly non-const accessors.
      (HTMLNames::IsSelectInDefaultState):
      (HTMLNames::IsInDefaultState):
      * src/WebViewImpl.cpp: Use non-const Node*s for code that calls newly non-const accessors.
      (WebKit::WebViewImpl::setComposition):
      (WebKit::WebViewImpl::confirmComposition):
      (WebKit::WebViewImpl::textInputType):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e978e13
  25. 23 May, 2011 1 commit
    • morrita@google.com's avatar
      2011-05-19 MORITA Hajime <morrita@google.com> · c3af0445
      morrita@google.com authored
              Reviewed by Dimitri Glazkov.
      
              [Refactoring] Pass NodeRenderingContext to Node::rendererIsNeeded()
              https://bugs.webkit.org/show_bug.cgi?id=61114
      
              - Extracted NodeRenderingContext from NodeRendererFactory, giving separate files to it.
              - Changed signature rendererIsNeeded(RenderStyle*)
                to rendererIsNeeded(const NodeRenderingContext&).
                The style object is retrieved from NodeRendererFactory::style()
                This will allow rendererIsNeeded() to access contextual
                information like attaching phase and rendering-parent.
      
              No new tests. No behaviour change.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/CharacterData.cpp:
              (WebCore::CharacterData::updateRenderer): Pass unresolved NodeRenderingContext& to rendererIsNeeded()
              (WebCore::CharacterData::rendererIsNeeded):
              * dom/CharacterData.h:
              * dom/DOMAllInOne.cpp:
              * dom/EditingText.cpp:
              (WebCore::EditingText::rendererIsNeeded):
              * dom/EditingText.h:
              * dom/Node.cpp:
              (WebCore::Node::parentNodeForRenderingAndStyle):
              (WebCore::Node::rendererIsNeeded):
              * dom/Node.h:
              * dom/NodeRenderingContext.cpp: Added.
              (WebCore::NodeRenderingContext::NodeRenderingContext):
              (WebCore::NodeRenderingContext::~NodeRenderingContext):
              (WebCore::NodeRenderingContext::setStyle):
              (WebCore::NodeRenderingContext::releaseStyle):
              (WebCore::NodeRenderingContext::nextRenderer):
              (WebCore::NodeRenderingContext::parentRenderer):
              (WebCore::NodeRenderingContext::hostChildrenChanged):
              (WebCore::NodeRenderingContext::shouldCreateRenderer):
              (WebCore::NodeRendererFactory::NodeRendererFactory):
              (WebCore::NodeRendererFactory::createRendererAndStyle):
              (WebCore::wrapWithRenderFullScreen):
              (WebCore::NodeRendererFactory::createRendererIfNeeded):
              * dom/NodeRenderingContext.h: Added.
              (WebCore::NodeRenderingContext::node):
              (WebCore::NodeRenderingContext::parentNodeForRenderingAndStyle):
              (WebCore::NodeRenderingContext::style):
              (WebCore::NodeRendererFactory::context):
              * dom/ShadowContentElement.h:
              * dom/Text.cpp:
              * dom/Text.h:
              * html/HTMLAppletElement.cpp:
              * html/HTMLAppletElement.h:
              * html/HTMLElement.cpp:
              * html/HTMLElement.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLEmbedElement.h:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameElement.h:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLFrameSetElement.h:
              * html/HTMLIFrameElement.cpp:
              * html/HTMLIFrameElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLInputElement.h:
              * html/HTMLMediaElement.cpp:
              * html/HTMLMediaElement.h:
              * html/HTMLNoScriptElement.h:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLOptGroupElement.h:
              * html/HTMLOptionElement.h:
              * html/HTMLVideoElement.cpp:
              * html/HTMLVideoElement.h:
              * html/shadow/DetailsMarkerControl.cpp:
              * html/shadow/DetailsMarkerControl.h:
              * html/shadow/MeterShadowElement.cpp:
              * html/shadow/MeterShadowElement.h:
              * html/shadow/ProgressShadowElement.cpp:
              * html/shadow/ProgressShadowElement.h:
              * svg/SVGDescElement.h:
              * svg/SVGElement.h:
              * svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * svg/SVGFilterPrimitiveStandardAttributes.h:
              * svg/SVGFontElement.h:
              * svg/SVGGElement.cpp:
              * svg/SVGGElement.h:
              * svg/SVGGlyphElement.h:
              * svg/SVGHKernElement.h:
              * svg/SVGMarkerElement.h:
              * svg/SVGMissingGlyphElement.h:
              * svg/SVGSVGElement.h:
              * svg/SVGStyledElement.cpp:
              * svg/SVGStyledElement.h:
              * svg/SVGSymbolElement.h:
              * svg/SVGTRefElement.cpp:
              * svg/SVGTRefElement.h:
              * svg/SVGTSpanElement.cpp:
              * svg/SVGTSpanElement.h:
              * svg/SVGTextPathElement.cpp:
              * svg/SVGTextPathElement.h:
              * svg/SVGTitleElement.h:
              * svg/SVGVKernElement.h:
              * svg/SVGViewElement.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3af0445
  26. 08 Jan, 2011 1 commit
  27. 14 Dec, 2010 1 commit
  28. 08 Dec, 2010 1 commit
    • arv@chromium.org's avatar
      2010-12-08 Erik Arvidsson <arv@chromium.org> · f8bc3579
      arv@chromium.org authored
              Reviewed by Darin Adler.
      
              Replace getAttribute().isNull() with fastHasAttribute()
              https://bugs.webkit.org/show_bug.cgi?id=50719
      
              Covered by existing tests.
      
              * dom/SelectElement.cpp:
              (WebCore::SelectElement::reset):
              * html/HTMLAppletElement.cpp:
              (WebCore::HTMLAppletElement::rendererIsNeeded):
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::itemAfter):
              * html/HTMLFormControlElement.cpp:
              (WebCore::HTMLFormControlElement::formNoValidate):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::noValidate):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultChecked):
              (WebCore::HTMLInputElement::multiple):
              (WebCore::HTMLInputElement::webkitdirectory):
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::defaultSelected):
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::asyncAttributeValue):
              (WebCore::HTMLScriptElement::deferAttributeValue):
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::allowsMultipleFiles):
              (WebCore::RenderFileUploadControl::allowsDirectoryUpload):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8bc3579
  29. 26 Jun, 2010 1 commit
    • darin@apple.com's avatar
      2010-06-26 Darin Adler <darin@apple.com> · 817d2779
      darin@apple.com authored
              Reviewed by Sam Weinig.
      
              Add more use of reflection, remove unused functions
              https://bugs.webkit.org/show_bug.cgi?id=41255
      
              Also noticed that HTMLDirectoryElement was missing its create function
              and added that so the element will get the correct class.
      
              * html/HTMLBaseFontElement.idl: Use reflection for the size attribute
              in the Objective-C code path too.
      
              * html/HTMLSelectElement.idl: Use reflection for disabled and autofocus
              attributes. Also removed spaces and indenting to match other IDL files.
      
              * html/HTMLStyleElement.idl: Use reflection for disabled attribute.
      
              * html/HTMLTableCellElement.idl: Use reflection for noWrap attribute.
      
              * html/HTMLTextAreaElement.idl: Use reflection for disabled, autofocus,
              readOnly, and required attributes.
      
              * html/HTMLUListElement.idl: Use reflection for compact attribute.
      
              * html/HTMLDirectoryElement.cpp:
              (WebCore::HTMLDirectoryElement::HTMLDirectoryElement): Made inline.
              (WebCore::HTMLDirectoryElement::create): Added.
              * html/HTMLDirectoryElement.h:
              Added create, made constructor private, removed unused functions.
      
              * html/HTMLStyleElement.cpp:
              (WebCore::HTMLStyleElement::parseMappedAttribute): Removed code to
              set unused m_media data member.
              * html/HTMLStyleElement.h:
              Removed unused functions and m_media data member. Also made some
              functions private.
      
              * html/HTMLAppletElement.cpp:
              * html/HTMLAppletElement.h:
              * html/HTMLAreaElement.cpp:
              * html/HTMLAreaElement.h:
              * html/HTMLBaseFontElement.cpp:
              * html/HTMLBaseFontElement.h:
              * html/HTMLButtonElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLDListElement.cpp:
              * html/HTMLDListElement.h:
              * html/HTMLDivElement.cpp:
              * html/HTMLDivElement.h:
              * html/HTMLFontElement.cpp:
              * html/HTMLFontElement.h:
              * html/HTMLFormControlElement.cpp:
              * html/HTMLFormControlElement.h:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp: Also removed an incorrect FIXME comment
              here after I did a little research to disprove it.
              * html/HTMLFrameElement.h:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLFrameSetElement.h:
              * html/HTMLHRElement.cpp:
              * html/HTMLHRElement.h:
              * html/HTMLHeadElement.cpp:
              * html/HTMLHeadElement.h:
              * html/HTMLHeadingElement.cpp:
              * html/HTMLHeadingElement.h:
              * html/HTMLHtmlElement.cpp:
              * html/HTMLHtmlElement.h:
              * html/HTMLImageElement.cpp:
              * html/HTMLImageElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLInputElement.h:
              * html/HTMLIsIndexElement.cpp:
              * html/HTMLIsIndexElement.h:
              * html/HTMLLIElement.cpp:
              * html/HTMLLIElement.h:
              * html/HTMLLabelElement.cpp:
              * html/HTMLLabelElement.h:
              * html/HTMLLegendElement.cpp:
              * html/HTMLLegendElement.h:
              * html/HTMLLinkElement.cpp:
              * html/HTMLLinkElement.h:
              * html/HTMLMapElement.cpp:
              * html/HTMLMapElement.h:
              * html/HTMLMenuElement.cpp:
              * html/HTMLMenuElement.h:
              * html/HTMLMetaElement.cpp:
              * html/HTMLMetaElement.h:
              * html/HTMLModElement.cpp:
              * html/HTMLModElement.h:
              * html/HTMLOListElement.cpp:
              * html/HTMLOListElement.h:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLOptGroupElement.cpp:
              * html/HTMLOptGroupElement.h:
              * html/HTMLOptionElement.cpp:
              * html/HTMLOptionElement.h:
              * html/HTMLParagraphElement.cpp:
              * html/HTMLParagraphElement.h:
              * html/HTMLParamElement.cpp:
              * html/HTMLParamElement.h:
              * html/HTMLPlugInElement.cpp:
              * html/HTMLPlugInElement.h:
              * html/HTMLPreElement.cpp:
              * html/HTMLPreElement.h:
              * html/HTMLQuoteElement.cpp:
              * html/HTMLQuoteElement.h:
              * html/HTMLScriptElement.cpp:
              * html/HTMLScriptElement.h:
              * html/HTMLTableCaptionElement.cpp:
              * html/HTMLTableCaptionElement.h:
              * html/HTMLTableCellElement.cpp:
              * html/HTMLTableCellElement.h:
              * html/HTMLTableColElement.cpp:
              * html/HTMLTableColElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTableElement.h:
              * html/HTMLTableRowElement.cpp:
              * html/HTMLTableRowElement.h:
              * html/HTMLTextAreaElement.cpp:
              * html/HTMLTextAreaElement.h:
              * html/HTMLUListElement.cpp:
              * html/HTMLUListElement.h:
              * html/HTMLVideoElement.cpp:
              * html/HTMLVideoElement.h:
              Removed unused functions.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      817d2779
  30. 13 Jun, 2010 1 commit
    • darin@apple.com's avatar
      2010-06-12 Darin Adler <darin@apple.com> · f5247d17
      darin@apple.com authored
              Reviewed by Alexey Proskuryakov.
      
              Partly done support for alternate ID attributes should be removed
              https://bugs.webkit.org/show_bug.cgi?id=39692
      
              Removed the include of "HTMLNames.h" from "Element.h". This prevents
              near-world-rebuilds every time you change HTMLTagNames.in.
      
              Renamed the getIDAttribute function in the Element class to
              idForStyleResolution, since it returns a value of the id attribute
              that has been lowercased as appropriate for style matching, not the
              actual value of the attribute. With the old name it was easy to
              misuse it in non-style contexts.
      
              Got rid of the idAttributeName function on Element, since it is
              easy to use it wrong. Replace it with isIdAttributeName, getIdAttribute,
              and setIdAttribute functions, which are a good fit for the needs of
              most call sites that were dealing with the id attribute.
      
              Added an idAttributeName function to Document. This is for a future
              where a document can have a custom id attribute name specified in its
              doctype. It's possible this will be insufficient because the same
              document might have XHTML or SVG elements in it, and it's possible
              that on those elements we will want the attribute named "id" with
              no namespace to still work. We can deal with that when we implement
              the actual feature, though. For now, it seems OK to fetch the name
              of the id attribute from the document.
      
              * dom/DynamicNodeList.cpp:
              (WebCore::DynamicNodeList::itemWithName):
              * dom/StaticNodeList.cpp:
              (WebCore::StaticNodeList::itemWithName):
              * rendering/RenderSVGResourceContainer.h:
              (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
              (WebCore::RenderSVGResourceContainer::idChanged):
              * svg/SVGUseElement.cpp:
              (WebCore::SVGUseElement::handleDeepUseReferencing):
              * svg/animation/SMILTimeContainer.cpp:
              (WebCore::SMILTimeContainer::updateAnimations):
              Use the new idForStyleResolution function, which is the new name of
              the getIDAttribute function. There's a good chance these call sites are
              incorrect, which is something we should investigate later, so there's
              a FIXME at each call site.
      
              * dom/Document.cpp:
              (WebCore::Document::Document): Initialize m_idAttributeName to the
              standard id attribute from HTML.
              (WebCore::Document::getElementById): Use Element::getIdAttribute.
              * dom/Document.h: Added Document::idAttributeName.
      
              * dom/Element.cpp:
              (WebCore::Element::setAttribute): Use Document::idAttributeName.
              (WebCore::Element::setAttributeMap): Use Element::isIdAttributeName.
              (WebCore::Element::insertedIntoDocument): Use Document::idAttributeName.
              (WebCore::Element::removedFromDocument): Ditto.
              (WebCore::Element::formatForDebugger): Use Element::getIdAttribute.
              * dom/Element.h: Added isIdAttributeName, getIdAttribute, setIdAttribute,
              idForStyleResolution. Removed rareIDAttributeName.
      
              * dom/ElementRareData.h: Removed m_idAttributeName.
      
              * dom/NamedNodeMap.cpp:
              (WebCore::NamedNodeMap::setAttributes): Use Document::idAttributeName.
              * dom/NamedNodeMap.h: Renamed id, setID, and m_id to idForStyleResolution,
              setIdForStyleResolution, and m_idForStyleResolution since this is not the
              value of the id attribute because it gets lowercased for compatibility-mode
              documents.
      
              * rendering/RenderIFrame.cpp:
              * rendering/RenderLayerCompositor.cpp:
              * rendering/RenderProgress.cpp:
              Added include of HTMLNames.h now that Element.h no longer includes it.
      
              * editing/SetNodeAttributeCommand.h:
              * editing/markup.cpp:
              * html/HTMLParser.cpp:
              Removed unneeded includes.
      
              * html/HTMLParser.h: Sorted includes.
      
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::matchRules): Use idForStyleResolution.
              (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Use idForStyleResolution.
              * dom/Attr.cpp:
              (WebCore::Attr::isId): Use Document::idAttributeName.
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::parseMappedAttribute): Use isIdAttributeName,
              and setIdForStyleResolution.
              * editing/DeleteButtonController.cpp:
              (WebCore::DeleteButtonController::createDeletionUI): Use setIdAttribute.
              * editing/EditorCommand.cpp:
              (WebCore::executeInsertHorizontalRule): Ditto.
              * html/HTMLAppletElement.cpp:
              (WebCore::HTMLAppletElement::parseMappedAttribute): Use isIdAttributeName.
              (WebCore::HTMLAppletElement::createRenderer): Use getIdAttribute.
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::checkForNameMatch): Use getIdAttribute.
              (WebCore::HTMLCollection::updateNameCache): Use getIdAttribute.
              * html/HTMLDataGridColElement.cpp:
              (WebCore::HTMLDataGridColElement::ensureColumn): Use getIdAttribute.
              (WebCore::HTMLDataGridColElement::parseMappedAttribute): Use isIdAttributeName.
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::parseMappedAttribute): Use isIdAttributeName.
              * html/HTMLFormCollection.cpp:
              (WebCore::HTMLFormCollection::nextNamedItem): Added missing braces.
              (WebCore::HTMLFormCollection::updateNameCache): Use getIdAttribute.
              * html/HTMLFrameElementBase.cpp:
              (WebCore::HTMLFrameElementBase::parseMappedAttribute): Use isIdAttributeName.
              (WebCore::HTMLFrameElementBase::setName): Use getIdAttribute.
              * html/HTMLImageElement.cpp:
              (WebCore::HTMLImageElement::parseMappedAttribute): Use isIdAttributeName.
              * html/HTMLMapElement.cpp:
              (WebCore::HTMLMapElement::parseMappedAttribute): Use isIdAttributeName.
              Also restructured the function a bit to make its structure clearer and added
              a comment pointing out that it can't be quite right.
              * html/HTMLNameCollection.cpp:
              (WebCore::HTMLNameCollection::itemAfter): Use getIdAttribute.
              * html/HTMLObjectElement.cpp:
              (WebCore::HTMLObjectElement::parseMappedAttribute): Use isIdAttributeName.
              * html/HTMLParamElement.cpp:
              (WebCore::HTMLParamElement::parseMappedAttribute): Use isIdAttributeName.
              * loader/CachedFont.cpp:
              (WebCore::CachedFont::getSVGFontById): Use getIdAttribute.
              * rendering/RenderLayerBacking.cpp:
              (WebCore::RenderLayerBacking::nameForLayer): Use getIdAttribute.
              * rendering/SVGRenderTreeAsText.cpp:
              (WebCore::writeSVGPaintingResource): Use getIdAttribute.
              (WebCore::writeSVGResourceContainer): Ditto.
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::insertedIntoDocument): Use getIdAttribute.
              * svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::isKnownAttribute): Use isIdAttributeName.
              (WebCore::SVGStyledElement::svgAttributeChanged): Use isIdAttributeName.
              * wml/WMLElement.cpp:
              (WebCore::WMLElement::parseMappedAttribute): Use isIdAttributeName.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5247d17
  31. 19 May, 2010 1 commit
  32. 18 Dec, 2009 1 commit
    • eric@webkit.org's avatar
      2009-12-18 Shu Chang <Chang.Shu@nokia.com> · 6b156cf4
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              New test cases for isId support.
              https://bugs.webkit.org/show_bug.cgi?id=5578
      
              * dom/xhtml/level3/core/attrisid04-expected.txt:
              * dom/xhtml/level3/core/attrisid04.js:
              (setUpPage):
              * dom/xhtml/level3/core/attrisid05-expected.txt:
              * dom/xhtml/level3/core/attrisid05.js:
              (setUpPage):
              * fast/dom/Element/attrisid-extra01-expected.txt: Added.
              * fast/dom/Element/attrisid-extra01.html: Added.
              * fast/dom/Element/id-in-applet-expected.txt: Added.
              * fast/dom/Element/id-in-applet.html: Added.
              * fast/dom/Element/id-in-deletebutton-expected.txt: Added.
              * fast/dom/Element/id-in-deletebutton.html: Added.
              * fast/dom/Element/id-in-formcollection-expected.txt: Added.
              * fast/dom/Element/id-in-formcollection.html: Added.
              * fast/dom/Element/id-in-frame-expected.txt: Added.
              * fast/dom/Element/id-in-frame.html: Added.
              * fast/dom/Element/id-in-frameset-expected.txt: Added.
              * fast/dom/Element/id-in-frameset.html: Added.
              * fast/dom/Element/id-in-getelement01-expected.txt: Added.
              * fast/dom/Element/id-in-getelement01.html: Added.
              * fast/dom/Element/id-in-insert-hr-expected.txt: Added.
              * fast/dom/Element/id-in-insert-hr.html: Added.
              * fast/dom/Element/id-in-map-expected.txt: Added.
              * fast/dom/Element/id-in-map.html: Added.
              * fast/dom/Element/id-in-param-expected.txt: Added.
              * fast/dom/Element/id-in-param.html: Added.
      2009-12-18  Shu Chang  <Chang.Shu@nokia.com>
      
              Reviewed by Darin Adler.
      
              Implemented isId as specified by DOM Level 3. See detailed description below.
              https://bugs.webkit.org/show_bug.cgi?id=5578
      
              Added isId property and implementation:
              Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
                     fast/dom/Element/attrisid-extra01.html
              * dom/Attr.cpp:
              (WebCore::Attr::isId):
              * dom/Attr.h:
              * dom/Attr.idl:
      
              Replaced instances of HTMLNames::idAttr with Element::idAttributeName()
              for the reason that id attribute name could be customized to a different
              string other than "id". A test case is associated to each code change.
              * dom/Document.cpp:
              (WebCore::Document::getElementById): Test: fast/dom/Element/id-in-getelement01.html
              * dom/Element.cpp: Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
              (WebCore::Element::setAttribute):
              (WebCore::Element::setAttributeMap):
              (WebCore::Element::insertedIntoDocument):
              (WebCore::Element::removedFromDocument):
              (WebCore::Element::formatForDebugger):
              (WebCore::Element::rareIDAttributeName):
              * dom/Element.h: Added function idAttributeName().
              (WebCore::Element::idAttributeName):
              * dom/ElementRareData.h: Added member variable to store customized id name in ElementRareData.
              (WebCore::ElementRareData::ElementRareData):
              * dom/NamedAttrMap.cpp: Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
              (WebCore::NamedNodeMap::setNamedItem):
              (WebCore::NamedNodeMap::removeNamedItem):
              (WebCore::NamedNodeMap::setAttributes):
              * dom/Node.cpp: Removed ASSERT as it may not hold any more.
              (WebCore::Node::querySelector):
              * dom/SelectorNodeList.cpp: Removed ASSERT as it may not hold any more.
              (WebCore::createSelectorNodeList):
              * dom/StyledElement.cpp: Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
              (WebCore::StyledElement::parseMappedAttribute):
              * editing/DeleteButtonController.cpp: Test: fast/dom/Element/id-in-deletebutton.html
              (WebCore::DeleteButtonController::createDeletionUI):
              * editing/EditorCommand.cpp: Test: fast/dom/Element/id-in-insert-hr.html
              (WebCore::executeInsertHorizontalRule):
              * html/HTMLAppletElement.cpp: Test: fast/dom/Element/id-in-applet.html
              (WebCore::HTMLAppletElement::parseMappedAttribute):
              (WebCore::HTMLAppletElement::createRenderer):
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::checkForNameMatch): Test: fast/forms/select-namedItem.html
              (WebCore::HTMLCollection::updateNameCache): Test: fast/dom/collection-namedItem-via-item.html
              * html/HTMLDataGridColElement.cpp:
              (WebCore::HTMLDataGridColElement::ensureColumn): Test: fast/dom/HTMLDataGridElement/DataGridColumns-dom.html
              (WebCore::HTMLDataGridColElement::parseMappedAttribute): Test: fast/dom/HTMLDataGridElement/DataGridColumns-dom-attributes.html
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::parseMappedAttribute):
              * html/HTMLFormCollection.cpp: Test: fast/dom/Element/id-in-formcollection.html
              (WebCore::HTMLFormCollection::getNamedFormItem):
              (WebCore::HTMLFormCollection::nextNamedItem):
              (WebCore::HTMLFormCollection::updateNameCache):
              * html/HTMLFrameElementBase.cpp: Test: fast/dom/Element/id-in-frame.html
              (WebCore::HTMLFrameElementBase::parseMappedAttribute):
              (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
              * html/HTMLImageElement.cpp: Test: fast/dom/Element/id-in-deletebutton.html
              (WebCore::HTMLImageElement::parseMappedAttribute):
              * html/HTMLMapElement.cpp: Test: fast/dom/Element/id-in-map.html
              (WebCore::HTMLMapElement::parseMappedAttribute):
              * html/HTMLNameCollection.cpp: Test: fast/dom/Element/id-in-frameset.html
              (WebCore::HTMLNameCollection::itemAfter):
              * html/HTMLObjectElement.cpp: Test: fast/dom/HTMLDocument/object-by-name-or-id.html
              (WebCore::HTMLObjectElement::parseMappedAttribute):
              * html/HTMLParamElement.cpp: Test: fast/dom/Element/id-in-param.html
              (WebCore::HTMLParamElement::parseMappedAttribute):
              * loader/CachedFont.cpp: Test: svg/custom/acid3-test-77.html
              (WebCore::CachedFont::getSVGFontById):
              * rendering/RenderLayerBacking.cpp:
              (WebCore::RenderLayerBacking::createGraphicsLayer): Debug-only code
              * rendering/SVGRenderTreeAsText.cpp: Test: svg/text/text-gradient-positioning.svg
              (WebCore::writeRenderResources):
              * svg/SVGElement.cpp: Test: svg/custom/acid3-test-77.html
              (WebCore::SVGElement::insertedIntoDocument):
              * svg/SVGStyledElement.cpp: Test: svg/custom/js-update-image-and-display.svg
              (WebCore::SVGStyledElement::isKnownAttribute):
              * wml/WMLElement.cpp:
              (WebCore::WMLElement::parseMappedAttribute):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b156cf4
  33. 01 Dec, 2009 1 commit
    • abarth@webkit.org's avatar
      2009-12-01 Patrik Persson <patrik.j.persson@ericsson.com> · b8a10552
      abarth@webkit.org authored
              Reviewed by Darin Adler.
      
              Implement HTML5 sandbox attribute for iframes.
              http://www.w3.org/TR/html5/text-level-semantics.html#attr-iframe-sandbox
              https://bugs.webkit.org/show_bug.cgi?id=21288
      
              * fast/frames/resources/non-sandboxed-iframe-navigation.html: Added.
              * fast/frames/resources/sandboxed-iframe-attribute-parsing-allowed.html: Added.
              * fast/frames/resources/sandboxed-iframe-attribute-parsing-disallowed.html: Added.
              * fast/frames/resources/sandboxed-iframe-form-allowed.html: Added.
              * fast/frames/resources/sandboxed-iframe-form-disallowed.html: Added.
              * fast/frames/resources/sandboxed-iframe-navigated.html: Added.
              * fast/frames/resources/sandboxed-iframe-navigation-child.html: Added.
              * fast/frames/resources/sandboxed-iframe-navigation-navigated.html: Added.
              * fast/frames/resources/sandboxed-iframe-navigation-parent.html: Added.
              * fast/frames/resources/sandboxed-iframe-navigation-source.html: Added.
              * fast/frames/resources/sandboxed-iframe-navigation-targetlink.html: Added.
              * fast/frames/resources/sandboxed-iframe-navigation-windowopen.html: Added.
              * fast/frames/resources/sandboxed-iframe-plugins-frame-applet.html: Added.
              * fast/frames/resources/sandboxed-iframe-plugins-frame-embed.html: Added.
              * fast/frames/resources/sandboxed-iframe-plugins-frame-object.html: Added.
              * fast/frames/resources/sandboxed-iframe-script-dynamic.html: Added.
              * fast/frames/resources/sandboxed-iframe-storage-allowed.html: Added.
              * fast/frames/resources/sandboxed-iframe-storage-disallowed.html: Added.
              * fast/frames/sandboxed-iframe-attribute-parsing-expected.txt: Added.
              * fast/frames/sandboxed-iframe-attribute-parsing.html: Added.
              * fast/frames/sandboxed-iframe-forms-expected.txt: Added.
              * fast/frames/sandboxed-iframe-forms.html: Added.
              * fast/frames/sandboxed-iframe-navigation-allowed-expected.txt: Added.
              * fast/frames/sandboxed-iframe-navigation-allowed.html: Added.
              * fast/frames/sandboxed-iframe-navigation-parent-expected.txt: Added.
              * fast/frames/sandboxed-iframe-navigation-parent.html: Added.
              * fast/frames/sandboxed-iframe-navigation-targetlink-expected.txt: Added.
              * fast/frames/sandboxed-iframe-navigation-targetlink.html: Added.
              * fast/frames/sandboxed-iframe-navigation-windowopen-expected.txt: Added.
              * fast/frames/sandboxed-iframe-navigation-windowopen.html: Added.
              * fast/frames/sandboxed-iframe-plugins-expected.txt: Added.
              * fast/frames/sandboxed-iframe-plugins.html: Added.
              * fast/frames/sandboxed-iframe-scripting-expected.txt: Added.
              * fast/frames/sandboxed-iframe-scripting.html: Added.
              * fast/frames/sandboxed-iframe-storage-expected.txt: Added.
              * fast/frames/sandboxed-iframe-storage.html: Added.
              * http/tests/security/resources/sandboxed-iframe-document-cookie-read-denied.html: Added.
              * http/tests/security/resources/sandboxed-iframe-modify-self.html: Added.
              * http/tests/security/resources/xss-DENIED-sandboxed-iframe-attacker.html: Added.
              * http/tests/security/sandboxed-iframe-document-cookie-expected.txt: Added.
              * http/tests/security/sandboxed-iframe-document-cookie.html: Added.
              * http/tests/security/sandboxed-iframe-modify-self-expected.txt: Added.
              * http/tests/security/sandboxed-iframe-modify-self.html: Added.
              * http/tests/security/xss-DENIED-sandboxed-iframe-expected.txt: Added.
              * http/tests/security/xss-DENIED-sandboxed-iframe.html: Added.
              * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow-expected.txt: Added.
              * http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow.html: Added.
              * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-expected.txt: Added.
              * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard-expected.txt: Added.
              * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard.html: Added.
              * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied.html: Added.
              * http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-allow-iframe.html: Added.
              * http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-allow.cgi: Added.
              * http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-denied-iframe.html: Added.
              * http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-denied-without-wildcard-iframe.html: Added.
              * http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-denied-without-wildcard.cgi: Added.
              * http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-denied.cgi: Added.
      2009-12-01  Patrik Persson  <patrik.j.persson@ericsson.com>
      
              Reviewed by Darin Adler.
      
              Implement HTML5 sandbox attribute for iframes.
              http://www.w3.org/TR/html5/text-level-semantics.html#attr-iframe-sandbox
              https://bugs.webkit.org/show_bug.cgi?id=21288
      
              Tests: fast/frames/sandboxed-iframe-attribute-parsing.html
                     fast/frames/sandboxed-iframe-forms.html
                     fast/frames/sandboxed-iframe-navigation-allowed.html
                     fast/frames/sandboxed-iframe-navigation-parent.html
                     fast/frames/sandboxed-iframe-navigation-targetlink.html
                     fast/frames/sandboxed-iframe-navigation-windowopen.html
                     fast/frames/sandboxed-iframe-plugins.html
                     fast/frames/sandboxed-iframe-scripting.html
                     fast/frames/sandboxed-iframe-storage.html
                     http/tests/security/sandboxed-iframe-document-cookie.html
                     http/tests/security/sandboxed-iframe-modify-self.html
                     http/tests/security/xss-DENIED-sandboxed-iframe.html
                     http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow.html
                     http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard.html
                     http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied.html
      
              * bindings/js/JSDOMWindowCustom.cpp: sandboxing navigation
              (WebCore::createWindow):
              * bindings/js/ScriptController.cpp: sandboxing scripts
              (WebCore::ScriptController::isEnabled):
              * dom/Document.cpp:
              (WebCore::Document::processHttpEquiv):
              (WebCore::Document::cookie): raise exception when accessed from sandbox
              (WebCore::Document::setCookie): raise exception when accessed from sandbox
              (WebCore::Document::initSecurityContext): updae sandbox status
              (WebCore::Document::updateSandboxFlags):
              * dom/Document.h:
              * dom/Document.idl:
              * html/HTMLAppletElement.cpp: sandboxing applets
              (WebCore::HTMLAppletElement::createRenderer):
              (WebCore::HTMLAppletElement::renderWidgetForJSBindings):
              (WebCore::HTMLAppletElement::canEmbedJava):
              * html/HTMLAppletElement.h:
              * html/HTMLAttributeNames.in:
              * html/HTMLFrameOwnerElement.cpp: management of sandbox flags as stated in attribute
              (WebCore::HTMLFrameOwnerElement::HTMLFrameOwnerElement):
              (WebCore::HTMLFrameOwnerElement::setSandboxFlags):
              * html/HTMLFrameOwnerElement.h:
              (WebCore::HTMLFrameOwnerElement::sandboxFlags):
              * html/HTMLIFrameElement.cpp: sandbox attribute parsing
              (WebCore::parseSandboxAttribute):
              (WebCore::HTMLIFrameElement::parseMappedAttribute):
              * html/HTMLIFrameElement.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::getCookies):
              * loader/CrossOriginAccessControl.cpp:
              (WebCore::passesAccessControlCheck):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::FrameLoader):
              (WebCore::FrameLoader::init):
              (WebCore::FrameLoader::submitForm): sandboxing forms
              (WebCore::FrameLoader::requestObject): sandboxing plugins
              (WebCore::FrameLoader::shouldAllowNavigation): sandboxing navigation
              (WebCore::FrameLoader::updateSandboxFlags): propagation of sandbox flags
              * loader/FrameLoader.h:
              (WebCore::FrameLoader::ownerElementSandboxFlagsChanged):
              (WebCore::FrameLoader::isSandboxed):
              (WebCore::FrameLoader::sandboxFlags):
              * loader/FrameLoaderTypes.h:
              (WebCore::):
              * page/DOMWindow.cpp: disable storage and databases in sandboxed frames
              (WebCore::DOMWindow::sessionStorage):
              (WebCore::DOMWindow::localStorage):
              (WebCore::DOMWindow::openDatabase):
              * page/SecurityOrigin.cpp: added sandboxing status
              (WebCore::SecurityOrigin::SecurityOrigin):
              (WebCore::SecurityOrigin::canAccess):
              (WebCore::SecurityOrigin::canRequest):
              (WebCore::SecurityOrigin::toString):
              * page/SecurityOrigin.h:
              (WebCore::SecurityOrigin::setSandboxFlags):
              (WebCore::SecurityOrigin::isSandboxed):
              (WebCore::SecurityOrigin::canAccessDatabase):
              (WebCore::SecurityOrigin::canAccessStorage):
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::didReceiveData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8a10552
  34. 23 Aug, 2009 1 commit
    • darin@apple.com's avatar
      Make DOM classes start with a reference count of 1, like all other RefCounted · cf9dd0fa
      darin@apple.com authored
              
      Patch by Darin Adler <darin@apple.com> on 2009-08-22
      Reviewed by Oliver Hunt.
      
      Next step: Element, HTMLElement, HTMLAnchorElement, HTMLAppletElement,
      HTMLAreaElement, HTMLEmbedElement, HTMLFrameElement, HTMLIFrameElement,
      HTMLObjectElement, HTMLPlugInElement, HTMLPlugInImageElement.
      
      * DerivedSources.make: Fix error seen every time we build by escaping the $
      in the build rule, since you have to use $$ for that in make.
      
      * WebCore.base.exp: Updated.
      
      * bindings/objc/DOM.mm:
      Added now-needed include of SVGNames.h.
      
      * dom/Document.cpp: Added now-needed include of SVGNames.h.
      (WebCore::Document::createElement): Use create instead of new.
      
      * dom/Element.cpp:
      (WebCore::Element::Element): Added ConstructionType argument so the caller
      can determine whether this starts with a reference count of either 0 or 1.
      Later we will remove this again once they are all 1.
      (WebCore::Element::create): Added.
      
      * dom/Element.h: Added create and made constructor protected.
      
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::StyledElement): Added ConstructionType argument.
      * dom/StyledElement.h: Made many functions protected or private, including
      the constructor.
      
      * dom/make_names.pl: Use create to create the base elements HTMLElement,
      SVGElement, and WMLElement.
      
      * editing/CreateLinkCommand.cpp:
      (WebCore::CreateLinkCommand::doApply): Use create instead of new.
      * editing/UnlinkCommand.cpp:
      (WebCore::UnlinkCommand::doApply): Ditto.
      
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::create): Added.
      * html/HTMLAnchorElement.h: Made constructor protected and added create.
      Also made m_rootEditableElementForSelectionOnMouseDown a RefPtr.
      
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::create): Added.
      * html/HTMLAppletElement.h: Made constructor private and added create.
      
      * html/HTMLAreaElement.cpp:
      (WebCore::HTMLAreaElement::create): Added.
      * html/HTMLAreaElement.h: Made constructor private and added create.
      
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::create): Added.
      * html/HTMLElement.h: Made constructor protected and added create.
      Made other functions protected and private. Also added inline
      definition of constructor.
      
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::create): Added.
      * html/HTMLEmbedElement.h: Made constructor private and added create.
      Made other functions private.
      
      * html/HTMLFrameElement.cpp:
      (WebCore::HTMLFrameElement::create): Added.
      (WebCore::HTMLFrameElement::parseMappedAttribute):
      * html/HTMLFrameElement.h: Made constructor private and added create.
      Made other functions private.
      
      * html/HTMLFrameElementBase.h: Made functions protected and private.
      
      * html/HTMLFrameOwnerElement.cpp:
      (WebCore::HTMLFrameOwnerElement::HTMLFrameOwnerElement): Pass
      CreateElement so reference count starts at 1.
      
      * html/HTMLFrameOwnerElement.h: Made functions protected and private.
      
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::create): Added.
      * html/HTMLIFrameElement.h: Made constructor private and added create.
      Made other functions private.
      
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::create): Added.
      (WebCore::HTMLObjectElement::containsJavaApplet): Changed while loop
      into a for loop and tweaked formatting.
      
      * html/HTMLObjectElement.h: Made constructor private and added create.
      Made other functions private.
      
      * html/HTMLPlugInElement.h: Made constructor protected.
      Made other functions protected and private.
      
      * html/HTMLPlugInImageElement.h: Made constructor and another function
      protected.
      
      * html/HTMLTagNames.in: Removed createWithNew from all classes that
      now have create functions. Moved conditional noscript to a separate
      paragraph.
      
      * html/HTMLViewSourceDocument.cpp:
      (WebCore::HTMLViewSourceDocument::addSpanWithClassName): Use create.
      (WebCore::HTMLViewSourceDocument::addLink): Ditto.
      * page/DragController.cpp:
      (WebCore::documentFragmentFromDragData): Ditto.
      
      * svg/SVGElement.cpp:
      (WebCore::SVGElement::SVGElement): Pass CreateElementZeroRefCount
      so reference count still starts at 0. Will change this class later.
      (WebCore::SVGElement::create): Added.
      * svg/SVGElement.h: Added create, made constructor protected, and
      made other functions protected and private. Removed unneeded
      SVGNames.h include.
      
      * svg/SVGExternalResourcesRequired.h: Added now-needed SVGNames.h
      include.
      
      * svg/SVGStopElement.h: Added now-needed SVGNames.h include.
      Made functions private.
      
      * wml/WMLElement.cpp:
      (WebCore::WMLElement::WMLElement): Pass CreateElementZeroRefCount
      so reference count still starts at 0. Will change this class later.
      (WebCore::WMLElement::create): Added.
      * wml/WMLElement.h: Added create and made constructor protected.
      
      * wml/WMLTagNames.in: Removed createWithNew from WMLElement.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47688 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf9dd0fa