Commit 064861af authored by weinig@apple.com's avatar weinig@apple.com

JavaScriptCore:

2008-09-14  Sam Weinig  <sam@webkit.org>

        Reviewed by Mark Rowe.

        Remove extraneous semicolons.

        * kjs/nodes.cpp:
        (JSC::PrefixResolveNode::emitCode):
        * wtf/FastMalloc.cpp:
        (WTF::TCMalloc_PageHeap::GrowHeap):

WebCore:

2008-09-14  Sam Weinig  <sam@webkit.org>

        Reviewed by Mark Rowe.

        Remove extraneous semicolons.

        * bindings/scripts/CodeGeneratorObjC.pm:
        * html/HTMLLinkElement.cpp:
        (WebCore::HTMLLinkElement::tokenizeRelAttribute):
        * html/HTMLScriptElement.cpp:
        (WebCore::HTMLScriptElement::charsetAttributeValue):
        (WebCore::HTMLScriptElement::typeAttributeValue):
        * platform/graphics/qt/GradientQt.cpp:
        (WebCore::Gradient::platformGradient):
        * platform/qt/ScrollViewQt.cpp:
        (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
        * platform/win/ScrollViewWin.cpp:
        (WebCore::ScrollView::updateScrollbars):
        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::paintEllipsisBoxes):
        * svg/SVGPathSegList.cpp:
        (WebCore::SVGPathSegList::toPathData):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 31311a6b
2008-09-14 Sam Weinig <sam@webkit.org>
Reviewed by Mark Rowe.
Remove extraneous semicolons.
* kjs/nodes.cpp:
(JSC::PrefixResolveNode::emitCode):
* wtf/FastMalloc.cpp:
(WTF::TCMalloc_PageHeap::GrowHeap):
2008-09-14 Sam Weinig <sam@webkit.org>
Reviewed by Cameron Zwarich.
......
......@@ -680,7 +680,7 @@ RegisterID* PrefixResolveNode::emitCode(CodeGenerator& generator, RegisterID* ds
RefPtr<RegisterID> propDst = generator.emitGetScopedVar(generator.tempDestination(dst), depth, index, globalObject);
emitPreIncOrDec(generator, propDst.get(), m_operator);
generator.emitPutScopedVar(depth, index, propDst.get(), globalObject);
return generator.moveToDestinationIfNeeded(dst, propDst.get());;
return generator.moveToDestinationIfNeeded(dst, propDst.get());
}
generator.emitExpressionInfo(m_divot, m_startOffset, m_endOffset);
......
......@@ -1545,7 +1545,7 @@ bool TCMalloc_PageHeap::GrowHeap(Length n) {
if (n < ask) {
// Try growing just "n" pages
ask = n;
ptr = TCMalloc_SystemAlloc(ask << kPageShift, &actual_size, kPageSize);;
ptr = TCMalloc_SystemAlloc(ask << kPageShift, &actual_size, kPageSize);
}
if (ptr == NULL) return false;
}
......
2008-09-14 Sam Weinig <sam@webkit.org>
Reviewed by Mark Rowe.
Remove extraneous semicolons.
* bindings/scripts/CodeGeneratorObjC.pm:
* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::tokenizeRelAttribute):
* html/HTMLScriptElement.cpp:
(WebCore::HTMLScriptElement::charsetAttributeValue):
(WebCore::HTMLScriptElement::typeAttributeValue):
* platform/graphics/qt/GradientQt.cpp:
(WebCore::Gradient::platformGradient):
* platform/qt/ScrollViewQt.cpp:
(WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
* platform/win/ScrollViewWin.cpp:
(WebCore::ScrollView::updateScrollbars):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::paintEllipsisBoxes):
* svg/SVGPathSegList.cpp:
(WebCore::SVGPathSegList::toPathData):
2008-09-14 Sam Weinig <sam@webkit.org>
Qt build fix.
......
......@@ -761,7 +761,7 @@ sub GenerateHeader
if (@ivars > 0) {
push(@headerContent, "{\n");
foreach my $attribute (@ivars) {
my $type = GetObjCType($attribute->signature->type);;
my $type = GetObjCType($attribute->signature->type);
my $name = "m_" . $attribute->signature->name;
my $ivarDeclaration = "$type $name";
push(@headerContent, " $ivarDeclaration;\n");
......
......@@ -131,7 +131,7 @@ void HTMLLinkElement::tokenizeRelAttribute(const AtomicString& rel, bool& styleS
{
styleSheet = false;
icon = false;
alternate = false;;
alternate = false;
if (equalIgnoringCase(rel, "stylesheet"))
styleSheet = true;
else if (equalIgnoringCase(rel, "icon") || equalIgnoringCase(rel, "shortcut icon"))
......
......@@ -199,12 +199,12 @@ String HTMLScriptElement::sourceAttributeValue() const
String HTMLScriptElement::charsetAttributeValue() const
{
return getAttribute(charsetAttr).string();;
return getAttribute(charsetAttr).string();
}
String HTMLScriptElement::typeAttributeValue() const
{
return getAttribute(typeAttr).string();;
return getAttribute(typeAttr).string();
}
String HTMLScriptElement::languageAttributeValue() const
......
......@@ -51,7 +51,7 @@ QGradient* Gradient::platformGradient()
m_gradient = new QLinearGradient(m_p0.x(), m_p0.y(), m_p1.x(), m_p1.y());
QColor stopColor;
Vector<ColorStop>::iterator stopIterator = m_stops.begin();;
Vector<ColorStop>::iterator stopIterator = m_stops.begin();
qreal lastStop;
const qreal lastStopDiff = 0.0000001;
while (stopIterator != m_stops.end()) {
......
......@@ -112,7 +112,7 @@ void ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar(bool hasBar)
m_hBar = PlatformScrollbar::create(this, HorizontalScrollbar, RegularScrollbar);
m_view->addChild(m_hBar.get());
} else if (!hasBar && m_hBar) {
m_view->removeChild(m_hBar.get());;
m_view->removeChild(m_hBar.get());
m_hBar = 0;
}
}
......
......@@ -503,9 +503,9 @@ void ScrollView::updateScrollbars(const IntSize& desiredOffset)
bool oldHasHorizontal = hasHorizontalScrollbar;
ScrollbarMode hScroll = m_data->m_hScrollbarMode;
ScrollbarMode vScroll = m_data->m_vScrollbarMode;
const int scrollbarThickness = ScrollbarTheme::nativeTheme()->scrollbarThickness();;
const int scrollbarThickness = ScrollbarTheme::nativeTheme()->scrollbarThickness();
for (int pass = 0; pass < 2; pass++) {
bool scrollsVertically;
bool scrollsHorizontally;
......
......@@ -1723,7 +1723,7 @@ void RenderBlock::paintEllipsisBoxes(PaintInfo& paintInfo, int tx, int ty)
if (style()->visibility() == VISIBLE && paintInfo.phase == PaintPhaseForeground) {
// We can check the first box and last box and avoid painting if we don't
// intersect.
int yPos = ty + firstLineBox()->yPos();;
int yPos = ty + firstLineBox()->yPos();
int h = lastLineBox()->yPos() + lastLineBox()->height() - firstLineBox()->yPos();
if (yPos >= paintInfo.rect.bottom() || yPos + h <= paintInfo.rect.y())
return;
......
......@@ -107,9 +107,8 @@ Path SVGPathSegList::toPathData()
ExceptionCode ec = 0;
int len = numberOfItems();
for (int i = 0; i < len; ++i) {
SVGPathSeg* segment = getItem(i, ec).get();;
switch (segment->pathSegType())
{
SVGPathSeg* segment = getItem(i, ec).get();
switch (segment->pathSegType()) {
case SVGPathSeg::PATHSEG_MOVETO_ABS:
{
SVGPathSegMovetoAbs* moveTo = static_cast<SVGPathSegMovetoAbs*>(segment);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment