Changeset 50675 in webkit
- Timestamp:
- Nov 9, 2009 12:04:49 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r50634 r50675 1 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings 6 https://bugs.webkit.org/show_bug.cgi?id=31040 7 8 * interpreter/Interpreter.cpp: 9 (JSC::Interpreter::privateExecute): 10 1 11 2009-11-08 David Levin <levin@chromium.org> 2 12 -
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r50608 r50675 1496 1496 JSValue src1 = callFrame->r(vPC[2].u.operand).jsValue(); 1497 1497 JSValue src2 = callFrame->r(vPC[3].u.operand).jsValue(); 1498 if (src1.isInt32() && src2.isInt32() && !(src1.asInt32() | src2.asInt32() & 0xc0000000)) // no overflow1498 if (src1.isInt32() && src2.isInt32() && !(src1.asInt32() | (src2.asInt32() & 0xc0000000))) // no overflow 1499 1499 callFrame->r(dst) = jsNumber(callFrame, src1.asInt32() + src2.asInt32()); 1500 1500 else { … … 1583 1583 JSValue src1 = callFrame->r(vPC[2].u.operand).jsValue(); 1584 1584 JSValue src2 = callFrame->r(vPC[3].u.operand).jsValue(); 1585 if (src1.isInt32() && src2.isInt32() && !(src1.asInt32() | src2.asInt32() & 0xc0000000)) // no overflow1585 if (src1.isInt32() && src2.isInt32() && !(src1.asInt32() | (src2.asInt32() & 0xc0000000))) // no overflow 1586 1586 callFrame->r(dst) = jsNumber(callFrame, src1.asInt32() - src2.asInt32()); 1587 1587 else { -
trunk/WebCore/ChangeLog
r50674 r50675 1 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings 6 https://bugs.webkit.org/show_bug.cgi?id=31040 7 8 No new tests as there is no functional change. 9 10 * dom/Document.cpp: 11 (WebCore::Document::recalcStyleSelector): 12 * editing/TextIterator.cpp: 13 (WebCore::pushFullyClippedState): 14 * editing/VisibleSelection.cpp: 15 (WebCore::VisibleSelection::appendTrailingWhitespace): 16 * html/HTMLLinkElement.cpp: 17 (WebCore::HTMLLinkElement::process): 18 * loader/RedirectScheduler.cpp: 19 (WebCore::RedirectScheduler::mustLockBackForwardList): 20 * loader/appcache/ApplicationCacheGroup.cpp: 21 (WebCore::ApplicationCacheGroup::didFinishLoadingManifest): 22 * platform/graphics/qt/FontCacheQt.cpp: 23 (WebCore::FontPlatformDataCacheKey::computeHash): 24 * rendering/RenderBlock.cpp: 25 (WebCore::RenderBlock::handleRunInChild): 26 * rendering/RenderBox.cpp: 27 (WebCore::RenderBox::calcHeight): 28 * rendering/RenderTextControlMultiLine.cpp: 29 (WebCore::RenderTextControlMultiLine::nodeAtPoint): 30 * rendering/style/RenderStyle.cpp: 31 (WebCore::RenderStyle::diff): 32 * svg/SVGAnimateElement.cpp: 33 (WebCore::parseNumberValueAndUnit): 34 * svg/SVGAnimationElement.cpp: 35 (WebCore::SVGAnimationElement::startedActiveInterval): 36 * svg/SVGPreserveAspectRatio.cpp: 37 (WebCore::SVGPreserveAspectRatio::getCTM): 38 1 39 2009-11-09 Shinichiro Hamaji <hamaji@chromium.org> 2 40 -
trunk/WebCore/dom/Document.cpp
r50523 r50675 2491 2491 } 2492 2492 } 2493 } else if ( n->isHTMLElement() && (n->hasTagName(linkTag) || n->hasTagName(styleTag))2493 } else if ((n->isHTMLElement() && (n->hasTagName(linkTag) || n->hasTagName(styleTag))) 2494 2494 #if ENABLE(SVG) 2495 2495 || (n->isSVGElement() && n->hasTagName(SVGNames::styleTag)) -
trunk/WebCore/editing/TextIterator.cpp
r49926 r50675 219 219 // Push true if this node full clips its contents, or if a parent already has fully 220 220 // clipped and this is not a node that ignores its container's clip. 221 stack.push(fullyClipsContents(node) || stack.top() && !ignoresContainerClip(node));221 stack.push(fullyClipsContents(node) || (stack.top() && !ignoresContainerClip(node))); 222 222 } 223 223 -
trunk/WebCore/editing/VisibleSelection.cpp
r49767 r50675 238 238 for (; charIt.length(); charIt.advance(1)) { 239 239 UChar c = charIt.characters()[0]; 240 if ( !isSpaceOrNewline(c) && c != noBreakSpace|| c == '\n')240 if ((!isSpaceOrNewline(c) && c != noBreakSpace) || c == '\n') 241 241 break; 242 242 m_end = charIt.range()->endPosition(); -
trunk/WebCore/html/HTMLLinkElement.cpp
r49208 r50675 189 189 // Stylesheet 190 190 // This was buggy and would incorrectly match <link rel="alternate">, which has a different specified meaning. -dwh 191 if (m_disabledState != 2 && (m_isStyleSheet || acceptIfTypeContainsTextCSS && type.contains("text/css")) && document()->frame() && m_url.isValid()) {191 if (m_disabledState != 2 && (m_isStyleSheet || (acceptIfTypeContainsTextCSS && type.contains("text/css"))) && document()->frame() && m_url.isValid()) { 192 192 // also, don't load style sheets for standalone documents 193 193 -
trunk/WebCore/loader/RedirectScheduler.cpp
r50658 r50675 173 173 for (Frame* ancestor = targetFrame->tree()->parent(); ancestor; ancestor = ancestor->tree()->parent()) { 174 174 Document* document = ancestor->document(); 175 if (!ancestor->loader()->isComplete() || document && document->processingLoadEvent())175 if (!ancestor->loader()->isComplete() || (document && document->processingLoadEvent())) 176 176 return true; 177 177 } -
trunk/WebCore/loader/appcache/ApplicationCacheGroup.cpp
r50427 r50675 623 623 624 624 if (!m_manifestResource || // The resource will be null if HTTP response was 304 Not Modified. 625 newestManifest->data()->size() == m_manifestResource->data()->size() && !memcmp(newestManifest->data()->data(), m_manifestResource->data()->data(), newestManifest->data()->size())) {625 (newestManifest->data()->size() == m_manifestResource->data()->size() && !memcmp(newestManifest->data()->data(), m_manifestResource->data()->data(), newestManifest->data()->size()))) { 626 626 627 627 m_completionType = NoUpdate; -
trunk/WebCore/platform/graphics/qt/FontCacheQt.cpp
r50510 r50675 124 124 unsigned hashCodes[] = { 125 125 CaseFoldingHash::hash(m_familyName), 126 m_size | static_cast<unsigned>(m_bold << sizeof(unsigned) * 8 - 1)127 | static_cast<unsigned>(m_italic) << sizeof(unsigned) *8 - 2128 | static_cast<unsigned>(m_smallCaps) << sizeof(unsigned) * 8 - 3126 m_size | static_cast<unsigned>(m_bold << (sizeof(unsigned) * 8 - 1)) 127 | static_cast<unsigned>(m_italic) << (sizeof(unsigned) * 8 - 2) 128 | static_cast<unsigned>(m_smallCaps) << (sizeof(unsigned) * 8 - 3) 129 129 }; 130 130 m_hash = StringImpl::computeHash(reinterpret_cast<UChar*>(hashCodes), sizeof(hashCodes) / sizeof(UChar)); -
trunk/WebCore/rendering/RenderBlock.cpp
r50623 r50675 961 961 // been regenerated by the new inline. 962 962 for (RenderObject* runInChild = blockRunIn->firstChild(); runInChild; runInChild = runInChild->nextSibling()) { 963 if (runInIsGenerated || runInChild->style()->styleType() != BEFORE && runInChild->style()->styleType() != AFTER) {963 if (runInIsGenerated || (runInChild->style()->styleType() != BEFORE && runInChild->style()->styleType() != AFTER)) { 964 964 blockRunIn->children()->removeChildNode(blockRunIn, runInChild, false); 965 965 inlineRunIn->addChild(runInChild); // Use addChild instead of appendChildNode since it handles correct placement of the children relative to :after-generated content. -
trunk/WebCore/rendering/RenderBox.cpp
r50341 r50675 1472 1472 // height has nothing to be a percentage of, and it ends up being 0. That is bad. 1473 1473 bool printingNeedsBaseHeight = document()->printing() && h.isPercent() 1474 && (isRoot() || isBody() && document()->documentElement()->renderer()->style()->height().isPercent());1474 && (isRoot() || (isBody() && document()->documentElement()->renderer()->style()->height().isPercent())); 1475 1475 if (stretchesToViewHeight() || printingNeedsBaseHeight) { 1476 1476 int margins = collapsedMarginTop() + collapsedMarginBottom(); -
trunk/WebCore/rendering/RenderTextControlMultiLine.cpp
r49105 r50675 65 65 66 66 bool resultIsTextValueOrPlaceholder 67 = !m_placeholderVisible && result.innerNode() == innerTextElement()68 || m_placeholderVisible && result.innerNode()->isDescendantOf(innerTextElement());67 = (!m_placeholderVisible && result.innerNode() == innerTextElement()) 68 || (m_placeholderVisible && result.innerNode()->isDescendantOf(innerTextElement())); 69 69 if (result.innerNode() == node() || resultIsTextValueOrPlaceholder) 70 70 hitInnerTextElement(result, x, y, tx, ty); -
trunk/WebCore/rendering/style/RenderStyle.cpp
r47805 r50675 455 455 return StyleDifferenceLayout; 456 456 457 if ( rareNonInheritedData->opacity == 1 && other->rareNonInheritedData->opacity < 1||458 rareNonInheritedData->opacity < 1 && other->rareNonInheritedData->opacity == 1) {457 if ((rareNonInheritedData->opacity == 1 && other->rareNonInheritedData->opacity < 1) || 458 (rareNonInheritedData->opacity < 1 && other->rareNonInheritedData->opacity == 1)) { 459 459 // FIXME: We should add an optimized form of layout that just recomputes visual overflow. 460 460 return StyleDifferenceLayout; -
trunk/WebCore/svg/SVGAnimateElement.cpp
r50583 r50675 63 63 String newUnit = parse.right(unitLength); 64 64 String number = parse.left(parse.length() - unitLength); 65 if ( !unit.isEmpty() && newUnit != unit|| number.isEmpty())65 if ((!unit.isEmpty() && newUnit != unit) || number.isEmpty()) 66 66 return false; 67 67 UChar last = number[number.length() - 1]; -
trunk/WebCore/svg/SVGAnimationElement.cpp
r50583 r50675 488 488 && (calcMode == CalcModePaced || !hasAttribute(SVGNames::keyTimesAttr) || hasAttribute(SVGNames::keyPointsAttr) || (m_values.size() == m_keyTimes.size())) 489 489 && (calcMode == CalcModeDiscrete || !m_keyTimes.size() || m_keyTimes.last() == 1.0) 490 && (calcMode != CalcModeSpline || ( m_keySplines.size() && (m_keySplines.size() == m_values.size() - 1) || m_keySplines.size() == m_keyPoints.size() - 1))490 && (calcMode != CalcModeSpline || ((m_keySplines.size() && (m_keySplines.size() == m_values.size() - 1)) || m_keySplines.size() == m_keyPoints.size() - 1)) 491 491 && (!hasAttribute(SVGNames::keyPointsAttr) || (m_keyTimes.size() > 1 && m_keyTimes.size() == m_keyPoints.size())); 492 492 if (calcMode == CalcModePaced && m_animationValid) -
trunk/WebCore/svg/SVGPreserveAspectRatio.cpp
r50583 r50675 179 179 temp.scaleNonUniform(physWidth / logicWidth, physHeight / logicHeight); 180 180 temp.translate(-logicX, -logicY); 181 } else if ( vpar < svgar && (meetOrSlice() == SVG_MEETORSLICE_MEET) || vpar >= svgar && (meetOrSlice() == SVG_MEETORSLICE_SLICE)) {181 } else if ((vpar < svgar && (meetOrSlice() == SVG_MEETORSLICE_MEET)) || (vpar >= svgar && (meetOrSlice() == SVG_MEETORSLICE_SLICE))) { 182 182 temp.scaleNonUniform(physHeight / logicHeight, physHeight / logicHeight); 183 183 -
trunk/WebKit/qt/Api/qwebpage.cpp
r50656 r50675 1304 1304 direction = ScrollDown; 1305 1305 } else if (ev == QKeySequence::MoveToPreviousPage 1306 || ( ev->key() == Qt::Key_Space) && (ev->modifiers() & Qt::ShiftModifier)) {1306 || ((ev->key() == Qt::Key_Space) && (ev->modifiers() & Qt::ShiftModifier))) { 1307 1307 granularity = ScrollByPage; 1308 1308 direction = ScrollUp; 1309 1309 } else 1310 1310 #endif // QT_NO_SHORTCUT 1311 if ( ev->key() == Qt::Key_Up && ev->modifiers() & Qt::ControlModifier1311 if ((ev->key() == Qt::Key_Up && ev->modifiers() & Qt::ControlModifier) 1312 1312 || ev->key() == Qt::Key_Home) { 1313 1313 granularity = ScrollByDocument; 1314 1314 direction = ScrollUp; 1315 } else if ( ev->key() == Qt::Key_Down && ev->modifiers() & Qt::ControlModifier1315 } else if ((ev->key() == Qt::Key_Down && ev->modifiers() & Qt::ControlModifier) 1316 1316 || ev->key() == Qt::Key_End) { 1317 1317 granularity = ScrollByDocument; -
trunk/WebKit/qt/ChangeLog
r50665 r50675 1 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings 6 https://bugs.webkit.org/show_bug.cgi?id=31040 7 8 * Api/qwebpage.cpp: 9 (QWebPagePrivate::handleScrolling): 10 1 11 2009-11-09 Mark Mentovai <mark@chromium.org> 2 12
Note: See TracChangeset
for help on using the changeset viewer.