Changeset 52618 in webkit


Ignore:
Timestamp:
Dec 29, 2009 5:21:55 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-29 Laszlo Gombos <Laszlo Gombos>

Reviewed by Eric Seidel.

Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
https://bugs.webkit.org/show_bug.cgi?id=33003

No new tests as there is no new functionality.

  • editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph):
  • page/animation/ImplicitAnimation.cpp: (WebCore::ImplicitAnimation::sendTransitionEvent):
  • page/animation/KeyframeAnimation.cpp: (WebCore::KeyframeAnimation::sendAnimationEvent):
  • rendering/RenderSVGContainer.h: (WebCore::toRenderSVGContainer):
  • rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::setTextShadow):
  • svg/graphics/SVGPaintServerGradient.cpp: (WebCore::SVGPaintServerGradient::setup):
  • svg/graphics/SVGPaintServerPattern.cpp: (WebCore::SVGPaintServerPattern::setup):
Location:
trunk/WebCore
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52610 r52618  
     12009-12-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
     6        https://bugs.webkit.org/show_bug.cgi?id=33003
     7
     8        No new tests as there is no new functionality.
     9
     10        * editing/CompositeEditCommand.cpp:
     11        (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph):
     12        * page/animation/ImplicitAnimation.cpp:
     13        (WebCore::ImplicitAnimation::sendTransitionEvent):
     14        * page/animation/KeyframeAnimation.cpp:
     15        (WebCore::KeyframeAnimation::sendAnimationEvent):
     16        * rendering/RenderSVGContainer.h:
     17        (WebCore::toRenderSVGContainer):
     18        * rendering/style/RenderStyle.cpp:
     19        (WebCore::RenderStyle::setTextShadow):
     20        * svg/graphics/SVGPaintServerGradient.cpp:
     21        (WebCore::SVGPaintServerGradient::setup):
     22        * svg/graphics/SVGPaintServerPattern.cpp:
     23        (WebCore::SVGPaintServerPattern::setup):
     24
    1252009-12-28  Andrei Popescu  <andreip@google.com>
    226
  • trunk/WebCore/editing/CompositeEditCommand.cpp

    r52465 r52618  
    10911091    Position caretPos(caret.deepEquivalent());
    10921092    // A line break is either a br or a preserved newline.
    1093     ASSERT(caretPos.node()->hasTagName(brTag) || caretPos.node()->isTextNode() && caretPos.node()->renderer()->style()->preserveNewline());
     1093    ASSERT(caretPos.node()->hasTagName(brTag) || (caretPos.node()->isTextNode() && caretPos.node()->renderer()->style()->preserveNewline()));
    10941094   
    10951095    if (caretPos.node()->hasTagName(brTag)) {
  • trunk/WebCore/page/animation/ImplicitAnimation.cpp

    r52019 r52618  
    162162                element = static_cast<Element*>(m_object->node());
    163163
    164             ASSERT(!element || element->document() && !element->document()->inPageCache());
     164            ASSERT(!element || (element->document() && !element->document()->inPageCache()));
    165165            if (!element)
    166166                return false;
  • trunk/WebCore/page/animation/KeyframeAnimation.cpp

    r52022 r52618  
    282282            element = static_cast<Element*>(m_object->node());
    283283
    284         ASSERT(!element || element->document() && !element->document()->inPageCache());
     284        ASSERT(!element || (element->document() && !element->document()->inPageCache()));
    285285        if (!element)
    286286            return false;
  • trunk/WebCore/rendering/RenderSVGContainer.h

    r46815 r52618  
    7979{
    8080    // Note: isSVGContainer is also true for RenderSVGViewportContainer, which is not derived from this.
    81     ASSERT(!object || object->isSVGContainer() && strcmp(object->renderName(), "RenderSVGViewportContainer"));
     81    ASSERT(!object || (object->isSVGContainer() && strcmp(object->renderName(), "RenderSVGViewportContainer")));
    8282    return static_cast<RenderSVGContainer*>(object);
    8383}
     
    8686{
    8787    // Note: isSVGContainer is also true for RenderSVGViewportContainer, which is not derived from this.
    88     ASSERT(!object || object->isSVGContainer() && strcmp(object->renderName(), "RenderSVGViewportContainer"));
     88    ASSERT(!object || (object->isSVGContainer() && strcmp(object->renderName(), "RenderSVGViewportContainer")));
    8989    return static_cast<const RenderSVGContainer*>(object);
    9090}
  • trunk/WebCore/rendering/style/RenderStyle.cpp

    r50675 r52618  
    703703void RenderStyle::setTextShadow(ShadowData* val, bool add)
    704704{
    705     ASSERT(!val || !val->spread && val->style == Normal);
     705    ASSERT(!val || (!val->spread && val->style == Normal));
    706706
    707707    StyleRareInheritedData* rareData = rareInheritedData.access();
  • trunk/WebCore/svg/graphics/SVGPaintServerGradient.cpp

    r50760 r52618  
    194194    bool isStroked = (type & ApplyToStrokeTargetType) && style->hasStroke();
    195195
    196     ASSERT(isFilled && !isStroked || !isFilled && isStroked);
     196    ASSERT((isFilled && !isStroked) || (!isFilled && isStroked));
    197197
    198198    context->save();
  • trunk/WebCore/svg/graphics/SVGPaintServerPattern.cpp

    r51823 r52618  
    104104    bool isStroked = (type & ApplyToStrokeTargetType) && style->hasStroke();
    105105
    106     ASSERT(isFilled && !isStroked || !isFilled && isStroked);
     106    ASSERT((isFilled && !isStroked) || (!isFilled && isStroked));
    107107
    108108    m_ownerElement->buildPattern(targetRect);
Note: See TracChangeset for help on using the changeset viewer.