2009-07-10 Shinichiro Hamaji <hamaji@chromium.org>
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jul 2009 05:36:29 +0000 (05:36 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jul 2009 05:36:29 +0000 (05:36 +0000)
commit9c4daccae82cc0d17bba36822c4da4118e74386a
treefcd0aa5797cd3f9ac206d99e5b081134d790c86f
parent2edf14c4ccbe885909ba90eb05647b05f8cc0b04
2009-07-10  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by David Kilzer.

        WebKit needs a style linting tool
        https://bugs.webkit.org/show_bug.cgi?id=25884

        Fix bunch of style issues by autofix of cpplint.
        This patch is created to demonstrate the autofix of cpplint.py.

        No new testcases because it's a style fix

        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseMediaQuery):
        (WebCore::CSSParser::validUnit):
        (WebCore::CSSParser::parseValue):
        (WebCore::skipCommaInDashboardRegion):
        (WebCore::CSSParser::parseDashboardRegions):
        (WebCore::ShadowParseContext::commitValue):
        (WebCore::ShadowParseContext::commitLength):
        (WebCore::ShadowParseContext::commitColor):
        (WebCore::BorderImageParseContext::commitNumber):
        (WebCore::BorderImageParseContext::commitWidth):
        (WebCore::BorderImageParseContext::commitRule):
        (WebCore::BorderImageParseContext::commitBorderImage):
        (WebCore::CSSParser::lex):
        (WebCore::CSSParser::text):
        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applyProperty):
        * css/MediaList.cpp:
        (WebCore::MediaList::deleteMedium):
        * css/MediaQuery.h:
        * css/MediaQueryEvaluator.cpp:
        (WebCore::parseAspectRatio):
        * css/MediaQueryEvaluator.h:
        * css/MediaQueryExp.h:
        (WebCore::MediaQueryExp::operator==):
        * css/WebKitCSSMatrix.h:
        * dom/Comment.h:
        * dom/Document.cpp:
        (WebCore::Document::setFocusedNode):
        * dom/Document.h:
        (WebCore::Document::setHasDashboardRegions):
        * dom/DocumentFragment.cpp:
        (WebCore::DocumentFragment::nodeName):
        * dom/DocumentFragment.h:
        * dom/DynamicNodeList.h:
        * dom/EditingText.h:
        * dom/Element.cpp:
        (WebCore::Element::dispatchAttrAdditionEvent):
        * dom/NamedAttrMap.cpp:
        (WebCore::NamedNodeMap::item):
        * dom/Node.cpp:
        (WebCore::Node::nodeValue):
        (WebCore::Node::nodeIndex):
        * dom/NodeRareData.h:
        (WebCore::NodeListsNodeData::create):
        * dom/Notation.h:
        * dom/ProcessingInstruction.h:
        * dom/Range.cpp:
        (WebCore::Range::processContents):
        * dom/StyledElement.cpp:
        (WebCore::toHex):
        * dom/XMLTokenizerLibxml2.cpp:
        (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback):
        (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
        (WebCore::PendingCallbacks::):
        (WebCore::OffsetBuffer::readOutBytes):
        (WebCore::handleElementNamespaces):
        (WebCore::handleElementAttributes):
        (WebCore::attributesStartElementNsHandler):
        * dom/XMLTokenizerQt.cpp:
        (WebCore::attributesStartElementNsHandler):
        (WebCore::XMLTokenizer::parseStartElement):
        * editing/ApplyStyleCommand.cpp:
        (WebCore::ApplyStyleCommand::applyInlineStyle):
        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::removeNode):
        * editing/Editor.cpp:
        (WebCore::Editor::pasteAsPlainText):
        * editing/SelectionController.cpp:
        (WebCore::SelectionController::directionOfEnclosingBlock):
        * editing/SmartReplaceICU.cpp:
        (WebCore::addAllCodePoints):
        * history/HistoryItem.cpp:
        (WebCore::HistoryItem::icon):
        (WebCore::HistoryItem::adoptVisitCounts):
        * html/CanvasStyle.cpp:
        (WebCore::CanvasStyle::applyFillColor):
        * html/HTMLAnchorElement.cpp:
        (WebCore::HTMLAnchorElement::setActive):
        (WebCore::HTMLAnchorElement::isLiveLink):
        * html/HTMLAppletElement.h:
        * html/HTMLAudioElement.h:
        * html/HTMLBRElement.h:
        * html/HTMLBaseElement.h:
        * html/HTMLBaseFontElement.h:
        * html/HTMLDListElement.h:
        * html/HTMLDirectoryElement.h:
        * html/HTMLFieldSetElement.cpp:
        (WebCore::HTMLFieldSetElement::HTMLFieldSetElement):
        * html/HTMLFormElement.cpp:
        (WebCore::HTMLFormElement::reset):
        * html/HTMLHRElement.cpp:
        (WebCore::HTMLHRElement::parseMappedAttribute):
        * html/HTMLHeadElement.h:
        * html/HTMLHtmlElement.h:
        * html/HTMLImageElement.h:
        (WebCore::HTMLImageElement::setLoadManually):
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::selection):
        * html/HTMLIsIndexElement.h:
        * html/HTMLMarqueeElement.cpp:
        * html/HTMLMediaElement.h:
        (WebCore::HTMLMediaElement::):
        * html/HTMLMenuElement.h:
        * html/HTMLMetaElement.h:
        * html/HTMLModElement.h:
        * html/HTMLOListElement.h:
        * html/HTMLOptionElement.cpp:
        (WebCore::HTMLOptionElement::childrenChanged):
        * html/HTMLParamElement.h:
        * html/HTMLQuoteElement.h:
        * html/HTMLStyleElement.h:
        * html/HTMLTableCaptionElement.h:
        * html/HTMLTableCellElement.h:
        * html/HTMLTableColElement.h:
        * html/HTMLTableSectionElement.cpp:
        (WebCore::HTMLTableSectionElement::deleteRow):
        * html/HTMLTitleElement.h:
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::parseNonHTMLText):
        (WebCore::HTMLTokenizer::parseEntity):
        (WebCore::HTMLTokenizer::parseTag):
        (WebCore::HTMLTokenizer::write):
        * html/HTMLUListElement.h:
        * html/HTMLVideoElement.h:
        * html/TimeRanges.h:
        (WebCore::TimeRanges::Range::Range):
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::enableResourceTracking):
        (WebCore::InspectorController::disableResourceTracking):
        * inspector/InspectorFrontend.cpp:
        (WebCore::InspectorFrontend::newInspectorJSONObject):
        * page/Console.cpp:
        (WebCore::Console::addMessage):
        * page/EventHandler.cpp:
        (WebCore::EventHandler::handleMousePressEvent):
        (WebCore::EventHandler::selectCursor):
        (WebCore::EventHandler::defaultKeyboardEventHandler):
        * page/Frame.cpp:
        (WebCore::Frame::jsDefaultStatusBarText):
        * page/android/DragControllerAndroid.cpp:
        (WebCore::DragController::dragOperation):
        * page/android/EventHandlerAndroid.cpp:
        (WebCore::EventHandler::tabsToAllControls):
        (WebCore::EventHandler::eventActivatedView):
        * page/animation/AnimationController.cpp:
        (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
        * page/gtk/DragControllerGtk.cpp:
        (WebCore::DragController::dragOperation):
        * page/qt/DragControllerQt.cpp:
        * page/win/DragControllerWin.cpp:
        (WebCore::DragController::isCopyKeyDown):
        * page/win/FrameWin.h:
        * rendering/RenderSlider.cpp:
        (WebCore::RenderSlider::mouseEventOffsetToThumb):
        * rendering/style/RenderStyle.h:
        (WebCore::InheritedFlags::setVerticalAlignLength):
        (WebCore::InheritedFlags::setUnicodeBidi):
        (WebCore::InheritedFlags::setCursor):
        * rendering/style/RenderStyleConstants.h:
        (WebCore::):
        * rendering/style/SVGRenderStyleDefs.h:
        * rendering/style/StyleInheritedData.h:
        (WebCore::StyleInheritedData::operator!=):
        * storage/DatabaseTask.h:
        * svg/GradientAttributes.h:
        * svg/LinearGradientAttributes.h:
        * svg/PatternAttributes.h:
        * svg/RadialGradientAttributes.h:
        * svg/SVGAnimatedPathData.h:
        * svg/SVGAnimatedPoints.h:
        * svg/SVGAnimationElement.h:
        * svg/SVGClipPathElement.h:
        * svg/SVGElementInstance.h:
        * svg/SVGFEBlendElement.cpp:
        (WebCore::SVGFEBlendElement::build):
        * svg/SVGFEBlendElement.h:
        * svg/SVGFEColorMatrixElement.cpp:
        (WebCore::SVGFEColorMatrixElement::build):
        * svg/SVGFEComponentTransferElement.cpp:
        (WebCore::SVGFEComponentTransferElement::build):
        * svg/SVGFECompositeElement.cpp:
        (WebCore::SVGFECompositeElement::build):
        * svg/SVGFEDiffuseLightingElement.cpp:
        (WebCore::SVGFEDiffuseLightingElement::build):
        * svg/SVGFEDisplacementMapElement.cpp:
        (WebCore::SVGFEDisplacementMapElement::build):
        * svg/SVGFEDistantLightElement.h:
        * svg/SVGFEFloodElement.cpp:
        (WebCore::SVGFEFloodElement::build):
        * svg/SVGFEFloodElement.h:
        * svg/SVGFEFuncAElement.h:
        * svg/SVGFEFuncBElement.h:
        * svg/SVGFEFuncGElement.h:
        * svg/SVGFEFuncRElement.h:
        * svg/SVGFEGaussianBlurElement.cpp:
        (WebCore::SVGFEGaussianBlurElement::build):
        * svg/SVGFEImageElement.cpp:
        (WebCore::SVGFEImageElement::build):
        * svg/SVGFEMergeElement.cpp:
        (WebCore::SVGFEMergeElement::build):
        * svg/SVGFEOffsetElement.cpp:
        (WebCore::SVGFEOffsetElement::build):
        * svg/SVGFEPointLightElement.h:
        * svg/SVGFESpecularLightingElement.cpp:
        (WebCore::SVGFESpecularLightingElement::build):
        * svg/SVGFESpotLightElement.h:
        * svg/SVGFETileElement.cpp:
        (WebCore::SVGFETileElement::build):
        * svg/SVGLineElement.cpp:
        (WebCore::SVGLineElement::parseMappedAttribute):
        * svg/SVGList.h:
        * svg/SVGListTraits.h:
        (WebCore::):
        * svg/SVGMPathElement.h:
        * svg/SVGMetadataElement.h:
        * svg/SVGParserUtilities.cpp:
        (WebCore::SVGPathParser::parseSVG):
        (WebCore::SVGPathParser::calculateArc):
        * svg/SVGPathElement.h:
        * svg/SVGPathSegClosePath.h:
        * svg/SVGSVGElement.h:
        * svg/SVGSetElement.h:
        * svg/SVGSwitchElement.h:
        * svg/SVGTextPathElement.cpp:
        (WebCore::SVGTextPathElement::parseMappedAttribute):
        * svg/SVGTextPathElement.h:
        * svg/SVGTitleElement.h:
        * svg/SVGTransformable.cpp:
        (WebCore::):
        * svg/SVGViewSpec.cpp:
        (WebCore::):
        * svg/animation/SMILTime.cpp:
        (WebCore::operator+):
        (WebCore::operator-):
        (WebCore::operator*):
        * svg/animation/SVGSMILElement.h:
        * svg/graphics/SVGResource.cpp:
        (WebCore::clientMap):
        * wml/WMLPostfieldElement.cpp:
        (WebCore::WMLPostfieldElement::value):
        * wml/WMLSetvarElement.cpp:
        (WebCore::WMLSetvarElement::value):
        * workers/WorkerRunLoop.cpp:
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::dropProtection):
        * xml/XPathPath.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@45747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
141 files changed:
WebCore/ChangeLog
WebCore/css/CSSParser.cpp
WebCore/css/CSSStyleSelector.cpp
WebCore/css/MediaList.cpp
WebCore/css/MediaQuery.h
WebCore/css/MediaQueryEvaluator.cpp
WebCore/css/MediaQueryEvaluator.h
WebCore/css/MediaQueryExp.h
WebCore/css/WebKitCSSMatrix.h
WebCore/dom/Comment.h
WebCore/dom/Document.cpp
WebCore/dom/Document.h
WebCore/dom/DocumentFragment.cpp
WebCore/dom/DocumentFragment.h
WebCore/dom/DynamicNodeList.h
WebCore/dom/EditingText.h
WebCore/dom/Element.cpp
WebCore/dom/NamedAttrMap.cpp
WebCore/dom/Node.cpp
WebCore/dom/NodeRareData.h
WebCore/dom/Notation.h
WebCore/dom/ProcessingInstruction.h
WebCore/dom/Range.cpp
WebCore/dom/StyledElement.cpp
WebCore/dom/XMLTokenizerLibxml2.cpp
WebCore/dom/XMLTokenizerQt.cpp
WebCore/editing/ApplyStyleCommand.cpp
WebCore/editing/DeleteSelectionCommand.cpp
WebCore/editing/Editor.cpp
WebCore/editing/SelectionController.cpp
WebCore/editing/SmartReplaceICU.cpp
WebCore/history/HistoryItem.cpp
WebCore/html/CanvasStyle.cpp
WebCore/html/HTMLAnchorElement.cpp
WebCore/html/HTMLAppletElement.h
WebCore/html/HTMLAudioElement.h
WebCore/html/HTMLBRElement.h
WebCore/html/HTMLBaseElement.h
WebCore/html/HTMLBaseFontElement.h
WebCore/html/HTMLDListElement.h
WebCore/html/HTMLDirectoryElement.h
WebCore/html/HTMLFieldSetElement.cpp
WebCore/html/HTMLFormElement.cpp
WebCore/html/HTMLHRElement.cpp
WebCore/html/HTMLHeadElement.h
WebCore/html/HTMLHtmlElement.h
WebCore/html/HTMLImageElement.h
WebCore/html/HTMLInputElement.cpp
WebCore/html/HTMLIsIndexElement.h
WebCore/html/HTMLMarqueeElement.cpp
WebCore/html/HTMLMediaElement.h
WebCore/html/HTMLMenuElement.h
WebCore/html/HTMLMetaElement.h
WebCore/html/HTMLModElement.h
WebCore/html/HTMLOListElement.h
WebCore/html/HTMLOptionElement.cpp
WebCore/html/HTMLParamElement.h
WebCore/html/HTMLQuoteElement.h
WebCore/html/HTMLStyleElement.h
WebCore/html/HTMLTableCaptionElement.h
WebCore/html/HTMLTableCellElement.h
WebCore/html/HTMLTableColElement.h
WebCore/html/HTMLTableSectionElement.cpp
WebCore/html/HTMLTitleElement.h
WebCore/html/HTMLTokenizer.cpp
WebCore/html/HTMLUListElement.h
WebCore/html/HTMLVideoElement.h
WebCore/html/TimeRanges.h
WebCore/inspector/InspectorController.cpp
WebCore/inspector/InspectorFrontend.cpp
WebCore/page/Console.cpp
WebCore/page/EventHandler.cpp
WebCore/page/Frame.cpp
WebCore/page/android/DragControllerAndroid.cpp
WebCore/page/android/EventHandlerAndroid.cpp
WebCore/page/animation/AnimationController.cpp
WebCore/page/gtk/DragControllerGtk.cpp
WebCore/page/qt/DragControllerQt.cpp
WebCore/page/win/DragControllerWin.cpp
WebCore/page/win/FrameWin.h
WebCore/rendering/RenderSlider.cpp
WebCore/rendering/style/RenderStyle.h
WebCore/rendering/style/RenderStyleConstants.h
WebCore/rendering/style/SVGRenderStyleDefs.h
WebCore/rendering/style/StyleInheritedData.h
WebCore/storage/DatabaseTask.h
WebCore/svg/GradientAttributes.h
WebCore/svg/LinearGradientAttributes.h
WebCore/svg/PatternAttributes.h
WebCore/svg/RadialGradientAttributes.h
WebCore/svg/SVGAnimatedPathData.h
WebCore/svg/SVGAnimatedPoints.h
WebCore/svg/SVGAnimationElement.h
WebCore/svg/SVGClipPathElement.h
WebCore/svg/SVGElementInstance.h
WebCore/svg/SVGFEBlendElement.cpp
WebCore/svg/SVGFEBlendElement.h
WebCore/svg/SVGFEColorMatrixElement.cpp
WebCore/svg/SVGFEComponentTransferElement.cpp
WebCore/svg/SVGFECompositeElement.cpp
WebCore/svg/SVGFEDiffuseLightingElement.cpp
WebCore/svg/SVGFEDisplacementMapElement.cpp
WebCore/svg/SVGFEDistantLightElement.h
WebCore/svg/SVGFEFloodElement.cpp
WebCore/svg/SVGFEFloodElement.h
WebCore/svg/SVGFEFuncAElement.h
WebCore/svg/SVGFEFuncBElement.h
WebCore/svg/SVGFEFuncGElement.h
WebCore/svg/SVGFEFuncRElement.h
WebCore/svg/SVGFEGaussianBlurElement.cpp
WebCore/svg/SVGFEImageElement.cpp
WebCore/svg/SVGFEMergeElement.cpp
WebCore/svg/SVGFEOffsetElement.cpp
WebCore/svg/SVGFEPointLightElement.h
WebCore/svg/SVGFESpecularLightingElement.cpp
WebCore/svg/SVGFESpotLightElement.h
WebCore/svg/SVGFETileElement.cpp
WebCore/svg/SVGLineElement.cpp
WebCore/svg/SVGList.h
WebCore/svg/SVGListTraits.h
WebCore/svg/SVGMPathElement.h
WebCore/svg/SVGMetadataElement.h
WebCore/svg/SVGParserUtilities.cpp
WebCore/svg/SVGPathElement.h
WebCore/svg/SVGPathSegClosePath.h
WebCore/svg/SVGSVGElement.h
WebCore/svg/SVGSetElement.h
WebCore/svg/SVGSwitchElement.h
WebCore/svg/SVGTextPathElement.cpp
WebCore/svg/SVGTextPathElement.h
WebCore/svg/SVGTitleElement.h
WebCore/svg/SVGTransformable.cpp
WebCore/svg/SVGViewSpec.cpp
WebCore/svg/animation/SMILTime.cpp
WebCore/svg/animation/SVGSMILElement.h
WebCore/svg/graphics/SVGResource.cpp
WebCore/wml/WMLPostfieldElement.cpp
WebCore/wml/WMLSetvarElement.cpp
WebCore/workers/WorkerRunLoop.cpp
WebCore/xml/XMLHttpRequest.cpp
WebCore/xml/XPathPath.h