Changeset 107453 in webkit


Ignore:
Timestamp:
Feb 10, 2012 4:00:43 PM (12 years ago)
Author:
leviw@chromium.org
Message:

Add FractionalLayoutUnit type for sub-pixel layout
https://bugs.webkit.org/show_bug.cgi?id=77485

Reviewed by Eric Seidel.

Add fixed point implementation (FractionalLayoutUnit).

FractionalLayoutUnit represents values as multiples of 1/60th pixel. This allows us
to represent sub-pixel values using integer math and avoids floating point precision
problems.

No new tests.

  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • platform/FractionalLayoutUnit.h: Added.
Location:
trunk/Source/WebCore
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107450 r107453  
     12012-02-10  Emil A Eklund  <eae@chromium.org> and Levi Weintraub  <leviw@chromium.org>
     2
     3        Add FractionalLayoutUnit type for sub-pixel layout
     4        https://bugs.webkit.org/show_bug.cgi?id=77485
     5
     6        Reviewed by Eric Seidel.
     7
     8        Add fixed point implementation (FractionalLayoutUnit).
     9
     10        FractionalLayoutUnit represents values as multiples of 1/60th pixel. This allows us
     11        to represent sub-pixel values using integer math and avoids floating point precision
     12        problems.
     13
     14        No new tests.
     15
     16        * WebCore.vcproj/WebCore.vcproj:
     17        * WebCore.xcodeproj/project.pbxproj:
     18        * platform/FractionalLayoutUnit.h: Added.
     19
    1202012-02-10  Adam Langley  <agl@chromium.org>
    221
  • trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj

    r107365 r107453  
    2661526615                        </File>
    2661626616                        <File
     26617                                RelativePath="..\platform\FractionalLayoutUnit.h"
     26618                                >
     26619                        </File>
     26620                        <File
    2661726621                                RelativePath="..\platform\GeolocationService.cpp"
    2661826622                                >
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r107435 r107453  
    49864986                B8DBDB4D130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B8DBDB49130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp */; };
    49874987                B8DBDB4E130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = B8DBDB4A130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h */; };
     4988                BAB22AD414B7A02D00D8ABA6 /* FractionalLayoutUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = BAB771501444CBB400EC4C4C /* FractionalLayoutUnit.h */; settings = {ATTRIBUTES = (Private, ); }; };
    49884989                BACF290113B2A0D500781F90 /* LayoutTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = BACF290013B2A0D500781F90 /* LayoutTypes.h */; settings = {ATTRIBUTES = (Private, ); }; };
    49894990                BC00F0040E0A185500FD04E3 /* DOMFile.h in Headers */ = {isa = PBXBuildFile; fileRef = BC00EFFE0E0A185500FD04E3 /* DOMFile.h */; };
     
    1189111892                B8DBDB49130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SpellingCorrectionCommand.cpp; sourceTree = "<group>"; };
    1189211893                B8DBDB4A130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpellingCorrectionCommand.h; sourceTree = "<group>"; };
     11894                BAB771501444CBB400EC4C4C /* FractionalLayoutUnit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FractionalLayoutUnit.h; sourceTree = "<group>"; };
    1189311895                BACF290013B2A0D500781F90 /* LayoutTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayoutTypes.h; sourceTree = "<group>"; };
    1189411896                BC00EFFE0E0A185500FD04E3 /* DOMFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMFile.h; sourceTree = "<group>"; };
     
    1971319715                                514B3F720C722047000530DF /* FileSystem.h */,
    1971419716                                BC073BA90C399B1F000F5979 /* FloatConversion.h */,
     19717                                BAB771501444CBB400EC4C4C /* FractionalLayoutUnit.h */,
    1971519718                                A8748BDF12CBF2DC001FBA41 /* HashTools.h */,
    1971619719                                D6FDAEF2149C06190037B1E1 /* HistogramSupport.cpp */,
     
    2110921112                                9B417064125662B3006B28FC /* ApplyBlockElementCommand.h in Headers */,
    2111021113                                93309DD9099E64920056E581 /* ApplyStyleCommand.h in Headers */,
     21114                                BAB22AD414B7A02D00D8ABA6 /* FractionalLayoutUnit.h in Headers */,
    2111121115                                512DD8F60D91E6AF000F89EE /* Archive.h in Headers */,
    2111221116                                512DD8FD0D91E6AF000F89EE /* ArchiveFactory.h in Headers */,
Note: See TracChangeset for help on using the changeset viewer.