Changeset 107887 in webkit
- Timestamp:
- Feb 15, 2012 10:40:30 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r107820 r107887 1099 1099 platform/graphics/Color.cpp 1100 1100 platform/graphics/CrossfadeGeneratedImage.cpp 1101 platform/graphics/FractionalLayoutRect.cpp 1102 platform/graphics/FractionalLayoutSize.cpp 1101 1103 platform/graphics/FloatPoint.cpp 1102 1104 platform/graphics/FloatPoint3D.cpp -
trunk/Source/WebCore/ChangeLog
r107886 r107887 1 2012-02-15 Emil A Eklund <eae@chromium.org> and Levi Weintraub <leviw@chromium.org> 2 3 Add FractionalLayoutPoint/Size/Rect for sub-pixel layout 4 https://bugs.webkit.org/show_bug.cgi?id=76571 5 6 Reviewed by Eric Seidel. 7 8 Add fixed point versions of the Point, Size and Rect classes using 9 the new FractionalLayoutPoint type and. 10 11 FractionalLayoutPoint, FractionalLayoutSize and FractionalLayoutRect are 12 Point, Size and Rect implementations respectively using this new type. 13 14 No new tests. 15 16 * CMakeLists.txt: 17 * GNUmakefile.list.am: 18 * WebCore.gypi: 19 * WebCore.order: 20 * WebCore.vcproj/WebCore.vcproj: 21 * WebCore.xcodeproj/project.pbxproj: 22 * platform/FractionalLayoutUnit.h: 23 Fixed a couple of typos and signed/unsigned bugs. 24 25 * platform/graphics/FloatPoint.cpp: 26 (WebCore::FloatPoint::FloatPoint): 27 Add explicit FloatPoint(FractionalLayoutPoint) constructor. 28 29 (WebCore::FloatPoint::move): 30 Add move(FractionalLayoutSize) implementation. 31 32 (WebCore::FloatPoint::moveBy): 33 Add moveBy(FractionalLayoutPoint) implementation. 34 35 * platform/graphics/FloatPoint.h: 36 * platform/graphics/FloatRect.cpp: 37 (WebCore::FloatRect::FloatRect): 38 Add explicit FloatRectFractionalLayoutRect) constructor. 39 40 * platform/graphics/FloatRect.h: 41 (WebCore): 42 (FloatRect): 43 * platform/graphics/FloatSize.cpp: 44 (WebCore::FloatSize::FloatSize): 45 Add explicit FloatSize(FractionalLayoutSize) constructor. 46 47 * platform/graphics/FloatSize.h: 48 * platform/graphics/FractionalLayoutPoint.h: Added. 49 * platform/graphics/FractionalLayoutRect.cpp: Added. 50 * platform/graphics/FractionalLayoutRect.h: Added. 51 * platform/graphics/FractionalLayoutSize.cpp: Added. 52 * platform/graphics/FractionalLayoutSize.h: Added. 53 * platform/graphics/IntRect.cpp: 54 (WebCore::IntRect::IntRect): 55 Add explicit IntRect(FractionalLayoutRect) constructor. 56 57 * platform/graphics/IntRect.h: 58 1 59 2012-02-15 Kentaro Hara <haraken@chromium.org> 2 60 -
trunk/Source/WebCore/GNUmakefile.list.am
r107787 r107887 2958 2958 Source/WebCore/platform/graphics/filters/arm/FELightingNEON.cpp \ 2959 2959 Source/WebCore/platform/graphics/filters/arm/FELightingNEON.h \ 2960 Source/WebCore/platform/graphics/FractionalLayoutPoint.h \ 2961 Source/WebCore/platform/graphics/FractionalLayoutRect.cpp \ 2962 Source/WebCore/platform/graphics/FractionalLayoutRect.h \ 2963 Source/WebCore/platform/graphics/FractionalLayoutSize.cpp \ 2964 Source/WebCore/platform/graphics/FractionalLayoutSize.h \ 2960 2965 Source/WebCore/platform/graphics/FloatPoint3D.cpp \ 2961 2966 Source/WebCore/platform/graphics/FloatPoint3D.h \ -
trunk/Source/WebCore/WebCore.gypi
r107804 r107887 3010 3010 'platform/graphics/CrossfadeGeneratedImage.h', 3011 3011 'platform/graphics/Extensions3D.h', 3012 'platform/graphics/FractionalLayoutRect.cpp', 3013 'platform/graphics/FractionalLayoutSize.cpp', 3012 3014 'platform/graphics/FloatPoint.cpp', 3013 3015 'platform/graphics/FloatPoint3D.cpp', -
trunk/Source/WebCore/WebCore.order
r107682 r107887 10321 10321 __ZNK7WebCore22CSSImageGeneratorValue21isImageGeneratorValueEv 10322 10322 __ZN7WebCore22CSSImageGeneratorValue14generatedImageEv 10323 __ZNK7WebCore14CSSCanvasValue11isF ixedSizeEv10323 __ZNK7WebCore14CSSCanvasValue11isFractionalLayoutSizeEv 10324 10324 __ZN7WebCore19StyleGeneratedImage9addClientEPNS_12RenderObjectE 10325 10325 __ZN7WebCore22CSSImageGeneratorValue9addClientEPNS_12RenderObjectERKNS_7IntSizeE … … 10455 10455 __ZN7WebCore23BorderImageParseContext17commitBorderImageEPNS_9CSSParserEb 10456 10456 __ZN7WebCore23BorderImageParseContextD1Ev 10457 __ZNK7WebCore22CSSImageGeneratorValue11isF ixedSizeEv10457 __ZNK7WebCore22CSSImageGeneratorValue11isFractionalLayoutSizeEv 10458 10458 __ZN7WebCore16CSSGradientValue5imageEPNS_12RenderObjectERKNS_7IntSizeE 10459 10459 __ZNK3WTF9HashTableIPN7WebCore12RenderObjectESt4pairIS3_S4_INS1_7IntSizeEiEENS_18PairFirstExtractorIS7_EENS_7PtrHashIS3_EENS_14PairHashTraitsINS_10HashTraitsIS3_EENSD_IS6_EEEESE_E8containsIS3_NS_22IdentityHashTranslatorIS3_S7_SB_EEEEbRKT_ -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r107824 r107887 27526 27526 </File> 27527 27527 <File 27528 RelativePath="..\platform\graphics\FractionalLayoutPoint.h" 27529 > 27530 </File> 27531 <File 27532 RelativePath="..\platform\graphics\FractionalLayoutRect.cpp" 27533 > 27534 </File> 27535 <File 27536 RelativePath="..\platform\graphics\FractionalLayoutRect.h" 27537 > 27538 </File> 27539 <File 27540 RelativePath="..\platform\graphics\FractionalLayoutSize.cpp" 27541 > 27542 </File> 27543 <File 27544 RelativePath="..\platform\graphics\FractionalLayoutSize.h" 27545 > 27546 </File> 27547 <File 27528 27548 RelativePath="..\platform\graphics\FloatPoint.cpp" 27529 27549 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r107778 r107887 298 298 1449E24C107D4A8400B5793F /* JSCallbackData.h in Headers */ = {isa = PBXBuildFile; fileRef = 1449E24A107D4A8400B5793F /* JSCallbackData.h */; }; 299 299 1449E287107D4DB400B5793F /* JSCallbackData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1449E286107D4DB400B5793F /* JSCallbackData.cpp */; }; 300 144FCE5214EC79BC000D17A3 /* FractionalLayoutUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = 144FCE5114EC79BC000D17A3 /* FractionalLayoutUnit.h */; settings = {ATTRIBUTES = (Private, ); }; }; 301 144FCE5914EC79E7000D17A3 /* FractionalLayoutPoint.h in Headers */ = {isa = PBXBuildFile; fileRef = 144FCE5414EC79E7000D17A3 /* FractionalLayoutPoint.h */; settings = {ATTRIBUTES = (Private, ); }; }; 302 144FCE5A14EC79E7000D17A3 /* FractionalLayoutRect.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 144FCE5514EC79E7000D17A3 /* FractionalLayoutRect.cpp */; }; 303 144FCE5B14EC79E7000D17A3 /* FractionalLayoutRect.h in Headers */ = {isa = PBXBuildFile; fileRef = 144FCE5614EC79E7000D17A3 /* FractionalLayoutRect.h */; settings = {ATTRIBUTES = (Private, ); }; }; 304 144FCE5C14EC79E7000D17A3 /* FractionalLayoutSize.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 144FCE5714EC79E7000D17A3 /* FractionalLayoutSize.cpp */; }; 305 144FCE5D14EC79E7000D17A3 /* FractionalLayoutSize.h in Headers */ = {isa = PBXBuildFile; fileRef = 144FCE5814EC79E7000D17A3 /* FractionalLayoutSize.h */; settings = {ATTRIBUTES = (Private, ); }; }; 300 306 1464E06C135EC10600FDB00A /* JSMediaListCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1464E06B135EC10600FDB00A /* JSMediaListCustom.cpp */; }; 301 307 1477E7760BF4134A00152872 /* PageCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1477E7740BF4134A00152872 /* PageCache.cpp */; }; … … 4991 4997 B8DBDB4D130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B8DBDB49130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp */; }; 4992 4998 B8DBDB4E130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = B8DBDB4A130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h */; }; 4993 BAB22AD414B7A02D00D8ABA6 /* FractionalLayoutUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = BAB771501444CBB400EC4C4C /* FractionalLayoutUnit.h */; settings = {ATTRIBUTES = (Private, ); }; };4994 4999 BACF290113B2A0D500781F90 /* LayoutTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = BACF290013B2A0D500781F90 /* LayoutTypes.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4995 5000 BC00F0040E0A185500FD04E3 /* DOMFile.h in Headers */ = {isa = PBXBuildFile; fileRef = BC00EFFE0E0A185500FD04E3 /* DOMFile.h */; }; … … 7017 7022 1449E24A107D4A8400B5793F /* JSCallbackData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCallbackData.h; sourceTree = "<group>"; }; 7018 7023 1449E286107D4DB400B5793F /* JSCallbackData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCallbackData.cpp; sourceTree = "<group>"; }; 7024 144FCE5114EC79BC000D17A3 /* FractionalLayoutUnit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FractionalLayoutUnit.h; sourceTree = "<group>"; }; 7025 144FCE5414EC79E7000D17A3 /* FractionalLayoutPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FractionalLayoutPoint.h; sourceTree = "<group>"; }; 7026 144FCE5514EC79E7000D17A3 /* FractionalLayoutRect.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FractionalLayoutRect.cpp; sourceTree = "<group>"; }; 7027 144FCE5614EC79E7000D17A3 /* FractionalLayoutRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FractionalLayoutRect.h; sourceTree = "<group>"; }; 7028 144FCE5714EC79E7000D17A3 /* FractionalLayoutSize.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FractionalLayoutSize.cpp; sourceTree = "<group>"; }; 7029 144FCE5814EC79E7000D17A3 /* FractionalLayoutSize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FractionalLayoutSize.h; sourceTree = "<group>"; }; 7019 7030 1464E06B135EC10600FDB00A /* JSMediaListCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMediaListCustom.cpp; sourceTree = "<group>"; }; 7020 7031 1477E7740BF4134A00152872 /* PageCache.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = PageCache.cpp; sourceTree = "<group>"; }; … … 11905 11916 B8DBDB49130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SpellingCorrectionCommand.cpp; sourceTree = "<group>"; }; 11906 11917 B8DBDB4A130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpellingCorrectionCommand.h; sourceTree = "<group>"; }; 11907 BAB771501444CBB400EC4C4C /* FractionalLayoutUnit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FractionalLayoutUnit.h; sourceTree = "<group>"; };11908 11918 BACF290013B2A0D500781F90 /* LayoutTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayoutTypes.h; sourceTree = "<group>"; }; 11909 11919 BC00EFFE0E0A185500FD04E3 /* DOMFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMFile.h; sourceTree = "<group>"; }; … … 18914 18924 3784C34A0E11AA34007D8D48 /* FontTraitsMask.h */, 18915 18925 BCE4413512F7490B009B84B8 /* FontWidthVariant.h */, 18926 144FCE5414EC79E7000D17A3 /* FractionalLayoutPoint.h */, 18927 144FCE5514EC79E7000D17A3 /* FractionalLayoutRect.cpp */, 18928 144FCE5614EC79E7000D17A3 /* FractionalLayoutRect.h */, 18929 144FCE5714EC79E7000D17A3 /* FractionalLayoutSize.cpp */, 18930 144FCE5814EC79E7000D17A3 /* FractionalLayoutSize.h */, 18916 18931 BC23F0DA0DAFF4A4009FDC91 /* GeneratedImage.h */, 18917 18932 BCE04C890DAFF7A0007A0F41 /* Generator.h */, … … 19789 19804 514B3F720C722047000530DF /* FileSystem.h */, 19790 19805 BC073BA90C399B1F000F5979 /* FloatConversion.h */, 19791 BAB771501444CBB400EC4C4C/* FractionalLayoutUnit.h */,19806 144FCE5114EC79BC000D17A3 /* FractionalLayoutUnit.h */, 19792 19807 A8748BDF12CBF2DC001FBA41 /* HashTools.h */, 19793 19808 D6FDAEF2149C06190037B1E1 /* HistogramSupport.cpp */, … … 21185 21200 9B417064125662B3006B28FC /* ApplyBlockElementCommand.h in Headers */, 21186 21201 93309DD9099E64920056E581 /* ApplyStyleCommand.h in Headers */, 21187 BAB22AD414B7A02D00D8ABA6 /* FractionalLayoutUnit.h in Headers */,21188 21202 512DD8F60D91E6AF000F89EE /* Archive.h in Headers */, 21189 21203 512DD8FD0D91E6AF000F89EE /* ArchiveFactory.h in Headers */, … … 24264 24278 C598905714E9C28000E8D18B /* PasteboardStrategy.h in Headers */, 24265 24279 C598905814E9C29900E8D18B /* PlatformPasteboard.h in Headers */, 24280 144FCE5214EC79BC000D17A3 /* FractionalLayoutUnit.h in Headers */, 24281 144FCE5914EC79E7000D17A3 /* FractionalLayoutPoint.h in Headers */, 24282 144FCE5B14EC79E7000D17A3 /* FractionalLayoutRect.h in Headers */, 24283 144FCE5D14EC79E7000D17A3 /* FractionalLayoutSize.h in Headers */, 24266 24284 ); 24267 24285 runOnlyForDeploymentPostprocessing = 0; … … 27207 27225 97CC3AE214E8E4A200894988 /* NavigatorSupplement.cpp in Sources */, 27208 27226 C598902E14E9B0F800E8D18B /* PlatformPasteboardMac.mm in Sources */, 27227 144FCE5A14EC79E7000D17A3 /* FractionalLayoutRect.cpp in Sources */, 27228 144FCE5C14EC79E7000D17A3 /* FractionalLayoutSize.cpp in Sources */, 27209 27229 ); 27210 27230 runOnlyForDeploymentPostprocessing = 0; -
trunk/Source/WebCore/platform/FractionalLayoutUnit.h
r107453 r107887 116 116 inline bool isInBounds(unsigned value) 117 117 { 118 return value < st d::numeric_limits<int>::max() / kFixedPointDenominator;118 return value < static_cast<unsigned>(std::numeric_limits<int>::max()) / kFixedPointDenominator; 119 119 } 120 120 inline bool isInBounds(double value) … … 263 263 inline bool operator==(const FractionalLayoutUnit& a, int b) 264 264 { 265 return a == Fraction LayoutUnit(b);265 return a == FractionalLayoutUnit(b); 266 266 } 267 267 268 268 inline bool operator==(const int a, const FractionalLayoutUnit& b) 269 269 { 270 return Fraction LayoutUnit(a) == b;270 return FractionalLayoutUnit(a) == b; 271 271 } 272 272 … … 298 298 FractionalLayoutUnit returnVal; 299 299 long long rawVal = static_cast<long long>(a.rawValue()) * b.rawValue() / kFixedPointDenominator; 300 returnVal.setRawValue( (a.rawValue() / kFixedPointDenominator) * b.rawValue());300 returnVal.setRawValue(rawVal); 301 301 return returnVal; 302 302 } -
trunk/Source/WebCore/platform/graphics/FloatPoint.cpp
r84273 r107887 29 29 30 30 #include "AffineTransform.h" 31 #include " TransformationMatrix.h"31 #include "FractionalLayoutPoint.h" 32 32 #include "FloatConversion.h" 33 33 #include "IntPoint.h" 34 #include "TransformationMatrix.h" 34 35 #include <limits> 35 36 #include <math.h> … … 38 39 39 40 FloatPoint::FloatPoint(const IntPoint& p) : m_x(p.x()), m_y(p.y()) 41 { 42 } 43 44 FloatPoint::FloatPoint(const FractionalLayoutPoint& p) : m_x(p.x()), m_y(p.y()) 40 45 { 41 46 } … … 54 59 { 55 60 return sqrtf(lengthSquared()); 61 } 62 63 void FloatPoint::move(const FractionalLayoutSize& size) 64 { 65 m_x += size.width(); 66 m_y += size.height(); 67 } 68 69 void FloatPoint::moveBy(const FractionalLayoutPoint& point) 70 { 71 m_x += point.x(); 72 m_y += point.y(); 56 73 } 57 74 -
trunk/Source/WebCore/platform/graphics/FloatPoint.h
r95922 r107887 61 61 class IntPoint; 62 62 class IntSize; 63 class FractionalLayoutPoint; 64 class FractionalLayoutSize; 63 65 64 66 class FloatPoint { … … 67 69 FloatPoint(float x, float y) : m_x(x), m_y(y) { } 68 70 FloatPoint(const IntPoint&); 69 71 FloatPoint(const FractionalLayoutPoint&); 70 72 71 73 static FloatPoint zero() { return FloatPoint(); } … … 93 95 m_y += a.height(); 94 96 } 97 void move(const FractionalLayoutSize&); 95 98 void move(const FloatSize& a) 96 99 { … … 103 106 m_y += a.y(); 104 107 } 108 void moveBy(const FractionalLayoutPoint&); 105 109 void moveBy(const FloatPoint& a) 106 110 { … … 130 134 { 131 135 return FloatPoint(std::max(m_x, other.m_x), std::max(m_y, other.m_y)); 136 } 137 138 FloatPoint shrunkTo(const FloatPoint& other) const 139 { 140 return FloatPoint(m_x < other.m_x ? m_x : other.m_x, 141 m_y < other.m_y ? m_y : other.m_y); 142 } 143 144 void clampNegativeToZero() 145 { 146 *this = expandedTo(zero()); 132 147 } 133 148 … … 240 255 } 241 256 257 inline FloatPoint toPoint(const FloatSize& size) 258 { 259 return FloatPoint(size.width(), size.height()); 260 } 261 242 262 float findSlope(const FloatPoint& p1, const FloatPoint& p2, float& c); 243 263 -
trunk/Source/WebCore/platform/graphics/FloatRect.cpp
r106383 r107887 29 29 30 30 #include "FloatConversion.h" 31 #include "FractionalLayoutRect.h" 31 32 #include "IntRect.h" 32 33 #include <algorithm> … … 40 41 41 42 FloatRect::FloatRect(const IntRect& r) : m_location(r.location()), m_size(r.size()) 43 { 44 } 45 46 FloatRect::FloatRect(const FractionalLayoutRect& r) : m_location(r.location()), m_size(r.size()) 42 47 { 43 48 } -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r106383 r107887 67 67 #endif 68 68 69 class FractionalLayoutRect; 69 70 class IntRect; 70 71 class IntPoint; … … 83 84 : m_location(FloatPoint(x, y)), m_size(FloatSize(width, height)) { } 84 85 FloatRect(const IntRect&); 86 FloatRect(const FractionalLayoutRect&); 85 87 86 88 static FloatRect narrowPrecision(double x, double y, double width, double height); -
trunk/Source/WebCore/platform/graphics/FloatSize.cpp
r94457 r107887 28 28 #include "FloatSize.h" 29 29 30 #include "FractionalLayoutSize.h" 30 31 #include "FloatConversion.h" 31 32 #include "IntSize.h" … … 38 39 39 40 FloatSize::FloatSize(const IntSize& size) : m_width(size.width()), m_height(size.height()) 41 { 42 } 43 44 FloatSize::FloatSize(const FractionalLayoutSize& size) : m_width(size.width()), m_height(size.height()) 40 45 { 41 46 } -
trunk/Source/WebCore/platform/graphics/FloatSize.h
r94457 r107887 47 47 48 48 class IntSize; 49 class FractionalLayoutSize; 49 50 50 51 class FloatSize { … … 53 54 FloatSize(float width, float height) : m_width(width), m_height(height) { } 54 55 FloatSize(const IntSize&); 56 FloatSize(const FractionalLayoutSize&); 55 57 56 58 static FloatSize narrowPrecision(double width, double height); -
trunk/Source/WebCore/platform/graphics/IntRect.cpp
r83075 r107887 27 27 #include "IntRect.h" 28 28 29 #include "FractionalLayoutRect.h" 29 30 #include "FloatRect.h" 30 31 #include <algorithm> … … 38 39 : m_location(IntPoint(static_cast<int>(r.x()), static_cast<int>(r.y()))) 39 40 , m_size(IntSize(static_cast<int>(r.width()), static_cast<int>(r.height()))) 41 { 42 } 43 44 IntRect::IntRect(const FractionalLayoutRect& r) 45 : m_location(flooredIntPoint(r.location())) 46 , m_size(flooredIntSize(r.size())) 40 47 { 41 48 } -
trunk/Source/WebCore/platform/graphics/IntRect.h
r95922 r107887 72 72 73 73 class FloatRect; 74 class FractionalLayoutRect; 74 75 75 76 class IntRect { … … 81 82 : m_location(IntPoint(x, y)), m_size(IntSize(width, height)) { } 82 83 83 explicit IntRect(const FloatRect& rect); // don't do this implicitly since it's lossy 84 explicit IntRect(const FloatRect&); // don't do this implicitly since it's lossy 85 explicit IntRect(const FractionalLayoutRect&); // don't do this implicitly since it's lossy 84 86 85 87 IntPoint location() const { return m_location; }
Note: See TracChangeset
for help on using the changeset viewer.