Changeset 235820 in webkit


Ignore:
Timestamp:
Sep 7, 2018 4:47:20 PM (6 years ago)
Author:
Fujii Hironori
Message:

[Win][Clang] duplicated variable name advance in UniscribeController::shapeAndPlaceItem
https://bugs.webkit.org/show_bug.cgi?id=189399

Reviewed by Myles C. Maxfield.

Clang reports the following compilation error:

UniscribeController.cpp(372,56): error: invalid operands to binary expression ('float' and 'WebCore::GlyphBufferAdvance' (aka 'WebCore::FloatSize'))

GlyphBufferAdvance advance(-origin.width() + advance, -origin.height());

~ ~

No new tests (No behavior change).

  • platform/graphics/win/UniscribeController.cpp:

(WebCore::UniscribeController::shapeAndPlaceItem): Replaced the second variable named advance with glyphAdvance.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235817 r235820  
     12018-09-07  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] duplicated variable name `advance` in UniscribeController::shapeAndPlaceItem
     4        https://bugs.webkit.org/show_bug.cgi?id=189399
     5
     6        Reviewed by Myles C. Maxfield.
     7
     8        Clang reports the following compilation error:
     9
     10        UniscribeController.cpp(372,56):  error: invalid operands to binary expression ('float' and 'WebCore::GlyphBufferAdvance' (aka 'WebCore::FloatSize'))
     11             GlyphBufferAdvance advance(-origin.width() + advance, -origin.height());
     12                                        ~~~~~~~~~~~~~~~ ^ ~~~~~~~
     13        No new tests (No behavior change).
     14
     15        * platform/graphics/win/UniscribeController.cpp:
     16        (WebCore::UniscribeController::shapeAndPlaceItem): Replaced the second variable named `advance` with `glyphAdvance`.
     17
    1182018-09-07  Youenn Fablet  <youenn@apple.com>
    219
  • trunk/Source/WebCore/platform/graphics/win/UniscribeController.cpp

    r234318 r235820  
    370370            else
    371371                glyphBuffer->expandLastAdvance(origin);
    372             GlyphBufferAdvance advance(-origin.width() + advance, -origin.height());
    373             glyphBuffer->add(glyph, fontData, advance);
     372            GlyphBufferAdvance glyphAdvance(-origin.width() + advance, -origin.height());
     373            glyphBuffer->add(glyph, fontData, glyphAdvance);
    374374        }
    375375
Note: See TracChangeset for help on using the changeset viewer.