Changeset 147832 in webkit


Ignore:
Timestamp:
Apr 5, 2013, 9:41:38 PM (12 years ago)
Author:
kangil.han@samsung.com
Message:

Prefer prefix ++/-- operators for non-primitive types
https://bugs.webkit.org/show_bug.cgi?id=114033

Reviewed by Alexey Proskuryakov.

Post ++/-- creates a copy of current value and it is not necessary, so use prefix instead.

  • bindings/js/Dictionary.cpp:

(WebCore::Dictionary::getOwnPropertiesAsStringHashMap):
(WebCore::Dictionary::getOwnPropertyNames):

  • bindings/js/ScriptCallStackFactory.cpp:

(WebCore::createScriptCallStack):

  • dom/ContainerNode.cpp:

(WebCore::willRemoveChildren):

  • dom/Range.cpp:

(WebCore::Range::processAncestorsAndTheirSiblings):

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::detachChildren):

  • platform/graphics/gpu/LoopBlinnPathProcessor.cpp:

(WebCore):
(WebCore::LoopBlinnPathProcessor::subdivideCurvesSlow):

  • rendering/InlineTextBox.cpp:

(WebCore::InlineTextBox::paintDocumentMarkers):

  • xml/XPathFunctions.cpp:

(WebCore::XPath::Function::setArguments):

Location:
trunk/Source/WebCore
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147831 r147832  
     12013-04-05  Kangil Han  <kangil.han@samsung.com>
     2
     3        Prefer prefix ++/-- operators for non-primitive types
     4        https://bugs.webkit.org/show_bug.cgi?id=114033
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Post ++/-- creates a copy of current value and it is not necessary, so use prefix instead.
     9
     10        * bindings/js/Dictionary.cpp:
     11        (WebCore::Dictionary::getOwnPropertiesAsStringHashMap):
     12        (WebCore::Dictionary::getOwnPropertyNames):
     13        * bindings/js/ScriptCallStackFactory.cpp:
     14        (WebCore::createScriptCallStack):
     15        * dom/ContainerNode.cpp:
     16        (WebCore::willRemoveChildren):
     17        * dom/Range.cpp:
     18        (WebCore::Range::processAncestorsAndTheirSiblings):
     19        * loader/FrameLoader.cpp:
     20        (WebCore::FrameLoader::detachChildren):
     21        * platform/graphics/gpu/LoopBlinnPathProcessor.cpp:
     22        (WebCore):
     23        (WebCore::LoopBlinnPathProcessor::subdivideCurvesSlow):
     24        * rendering/InlineTextBox.cpp:
     25        (WebCore::InlineTextBox::paintDocumentMarkers):
     26        * xml/XPathFunctions.cpp:
     27        (WebCore::XPath::Function::setArguments):
     28
    1292013-04-05  Hans Muller  <hmuller@adobe.com>
    230
  • trunk/Source/WebCore/bindings/js/Dictionary.cpp

    r127958 r147832  
    6565    PropertyNameArray propertyNames(exec);
    6666    JSObject::getOwnPropertyNames(object, exec, propertyNames, ExcludeDontEnumProperties);
    67     for (PropertyNameArray::const_iterator it = propertyNames.begin(); it != propertyNames.end(); it++) {
     67    for (PropertyNameArray::const_iterator it = propertyNames.begin(); it != propertyNames.end(); ++it) {
    6868        String stringKey = it->string();
    6969        if (stringKey.isEmpty())
     
    9090    PropertyNameArray propertyNames(exec);
    9191    JSObject::getOwnPropertyNames(object, exec, propertyNames, ExcludeDontEnumProperties);
    92     for (PropertyNameArray::const_iterator it = propertyNames.begin(); it != propertyNames.end(); it++) {
     92    for (PropertyNameArray::const_iterator it = propertyNames.begin(); it != propertyNames.end(); ++it) {
    9393        String stringKey = it->string();
    9494        if (!stringKey.isEmpty())
  • trunk/Source/WebCore/dom/ContainerNode.cpp

    r147795 r147832  
    463463
    464464    ChildListMutationScope mutation(container);
    465     for (NodeVector::const_iterator it = children.begin(); it != children.end(); it++) {
     465    for (NodeVector::const_iterator it = children.begin(); it != children.end(); ++it) {
    466466        Node* child = it->get();
    467467        mutation.willRemoveChild(child);
  • trunk/Source/WebCore/dom/Range.cpp

    r145818 r147832  
    874874
    875875    RefPtr<Node> firstChildInAncestorToProcess = direction == ProcessContentsForward ? container->nextSibling() : container->previousSibling();
    876     for (Vector<RefPtr<Node> >::const_iterator it = ancestors.begin(); it != ancestors.end(); it++) {
     876    for (Vector<RefPtr<Node> >::const_iterator it = ancestors.begin(); it != ancestors.end(); ++it) {
    877877        RefPtr<Node> ancestor = *it;
    878878        if (action == EXTRACT_CONTENTS || action == CLONE_CONTENTS) {
     
    893893            nodes.append(child);
    894894
    895         for (NodeVector::const_iterator it = nodes.begin(); it != nodes.end(); it++) {
     895        for (NodeVector::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
    896896            Node* child = it->get();
    897897            switch (action) {
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r147829 r147832  
    23062306        childrenToDetach.append(child);
    23072307    FrameVector::iterator end = childrenToDetach.end();
    2308     for (FrameVector::iterator it = childrenToDetach.begin(); it != end; it++)
     2308    for (FrameVector::iterator it = childrenToDetach.begin(); it != end; ++it)
    23092309        (*it)->loader()->detachFromParent();
    23102310}
  • trunk/Source/WebCore/platform/graphics/gpu/LoopBlinnPathProcessor.cpp

    r128204 r147832  
    10991099            Segment* seg = *iter;
    11001100            ASSERT(seg->kind() == Segment::Cubic);
    1101             for (Vector<Segment*>::iterator iter2 = curSegments.begin();
    1102                  iter2 != curSegments.end();
    1103                  iter2++) {
     1101            for (Vector<Segment*>::iterator iter2 = curSegments.begin(); iter2 != curSegments.end(); ++iter2) {
    11041102                Segment* seg2 = *iter2;
    11051103                ASSERT(seg2->kind() == Segment::Cubic);
  • trunk/Source/WebCore/rendering/InlineTextBox.cpp

    r147170 r147832  
    13991399    // Give any document markers that touch this run a chance to draw before the text has been drawn.
    14001400    // Note end() points at the last char, not one past it like endOffset and ranges do.
    1401     for ( ; markerIt != markers.end(); markerIt++) {
     1401    for ( ; markerIt != markers.end(); ++markerIt) {
    14021402        DocumentMarker* marker = *markerIt;
    14031403       
  • trunk/Source/WebCore/xml/XPathFunctions.cpp

    r143232 r147832  
    300300
    301301    Vector<Expression*>::const_iterator end = args.end();
    302     for (Vector<Expression*>::const_iterator it = args.begin(); it != end; it++)
     302    for (Vector<Expression*>::const_iterator it = args.begin(); it != end; ++it)
    303303        addSubExpression(*it);
    304304}
Note: See TracChangeset for help on using the changeset viewer.