Home
last modified time | relevance | path

Searched refs:FloatSize (Results 1 – 25 of 216) sorted by relevance

123456789

/external/webkit/Source/WebCore/platform/graphics/
DFloatSize.h50 class FloatSize {
52 FloatSize() : m_width(0), m_height(0) { } in FloatSize() function
53 FloatSize(float width, float height) : m_width(width), m_height(height) { } in FloatSize() function
54 FloatSize(const IntSize&);
56 static FloatSize narrowPrecision(double width, double height);
74 FloatSize expandedTo(const FloatSize& other) const in expandedTo()
76 return FloatSize(m_width > other.m_width ? m_width : other.m_width, in expandedTo()
80 FloatSize shrunkTo(const FloatSize& other) const in shrunkTo()
82 return FloatSize(m_width < other.m_width ? m_width : other.m_width, in shrunkTo()
93 explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy
[all …]
DFloatSize.cpp36 FloatSize::FloatSize(const IntSize& size) : m_width(size.width()), m_height(size.height()) in FloatSize() function in WebCore::FloatSize
40 float FloatSize::diagonalLength() const in diagonalLength()
45 FloatSize FloatSize::narrowPrecision(double width, double height) in narrowPrecision()
47 return FloatSize(narrowPrecisionToFloat(width), narrowPrecisionToFloat(height)); in narrowPrecision()
DPath.h80 class FloatSize; variable
139 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii);
140 …nst FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& …
143 void translate(const FloatSize&);
DGlyphBuffer.h68 typedef FloatSize GlyphBufferAdvance;
108 FloatSize offset = m_offsets[index1]; in swap()
134 FloatSize offsetAt(int index) const in offsetAt()
140 return FloatSize(); in offsetAt()
144 void add(Glyph glyph, const SimpleFontData* font, float width, const FloatSize* offset = 0)
162 m_advances.append(FloatSize(width, 0));
169 m_offsets.append(FloatSize());
200 lastAdvance += FloatSize(width, 0); in expandLastAdvance()
209 Vector<FloatSize, 2048> m_offsets;
DTiledBackingStore.h63 void getKeepAndCoverAreaMultipliers(FloatSize& keepMultiplier, FloatSize& coverMultiplier) in getKeepAndCoverAreaMultipliers()
68 …void setKeepAndCoverAreaMultipliers(const FloatSize& keepMultiplier, const FloatSize& coverMultipl…
113 FloatSize m_keepAreaMultiplier;
114 FloatSize m_coverAreaMultiplier;
DShadowBlur.h47 ShadowBlur(float radius, const FloatSize& offset, const Color&, ColorSpace);
91 FloatSize m_offset;
97 FloatSize m_layerSize; // Size of m_layerImage pixels that need blurring.
98FloatSize m_layerContextTranslation; // Translation to apply to m_layerContext for the shadow to b…
DFloatQuad.cpp49 inline float dot(const FloatSize& a, const FloatSize& b) in dot()
57 FloatSize v0 = t3 - t1; in isPointInTriangle()
58 FloatSize v1 = t2 - t1; in isPointInTriangle()
59 FloatSize v2 = p - t1; in isPointInTriangle()
DFloatPoint.h146 inline FloatPoint& operator+=(FloatPoint& a, const FloatSize& b)
158 inline FloatPoint& operator-=(FloatPoint& a, const FloatSize& b)
164 inline FloatPoint operator+(const FloatPoint& a, const FloatSize& b)
174 inline FloatSize operator-(const FloatPoint& a, const FloatPoint& b)
176 return FloatSize(a.x() - b.x(), a.y() - b.y());
179 inline FloatPoint operator-(const FloatPoint& a, const FloatSize& b)
DImage.cpp90 static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, I… in calculatePatternScale()
104 return FloatSize(scaleX, scaleY); in calculatePatternScale()
108 …ext* ctxt, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& scaledTileSize,… in drawTiled()
115 FloatSize intrinsicTileSize = size(); in drawTiled()
121 FloatSize scale(scaledTileSize.width() / intrinsicTileSize.width(), in drawTiled()
161 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule); in drawTiled()
DFloatRect.h77 FloatRect(const FloatPoint& location, const FloatSize& size) in FloatRect()
80 : m_location(FloatPoint(x, y)), m_size(FloatSize(width, height)) { } in FloatRect()
86 FloatSize size() const { return m_size; } in size()
89 void setSize(const FloatSize& size) { m_size = size; } in setSize()
107 void move(const FloatSize& delta) { m_location += delta; } in move()
183 FloatSize m_size;
DPath.cpp73 FloatSize change = traversalState.m_current - traversalState.m_previous; in pathLengthApplierFunction()
112 void Path::addRoundedRect(const FloatRect& rect, const FloatSize& roundingRadii) in addRoundedRect()
117 FloatSize radius(roundingRadii); in addRoundedRect()
118 FloatSize halfSize(rect.width() / 2, rect.height() / 2); in addRoundedRect()
155 …loatRect& rect, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& … in addRoundedRect()
DContextShadow.cpp52 ContextShadow::ContextShadow(const Color& color, float radius, const FloatSize& offset) in ContextShadow()
83 m_offset = FloatSize(); in clear()
195 const FloatSize xUnitChange = transformedUnitQuad.p2() - transformedUnitQuad.p1(); in adjustBlurDistance()
200 const FloatSize yUnitChange = transformedUnitQuad.p3() - transformedUnitQuad.p1(); in adjustBlurDistance()
255 const FloatSize clippedOut = m_unclippedLayerOrigin - m_layerOrigin; in calculateLayerBoundingRect()
/external/webkit/Source/WebCore/page/
DPrintContext.h32 class FloatSize; variable
50 … void computePageRectsWithPageSize(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling);
57 float computeAutomaticScaleFactor(const FloatSize& availablePaperSize);
72 …static int pageNumberForElement(Element*, const FloatSize& pageSizeInPixels); // Returns -1 if pag…
76 static int numberOfPages(Frame*, const FloatSize& pageSizeInPixels);
80 …static void spoolAllPagesWithBoundaries(Frame*, GraphicsContext&, const FloatSize& pageSizeInPixel…
87 …void computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels, bool allowHorizontalT…
DPrintContext.cpp95 …computePageRectsWithPageSizeInternal(FloatSize(pageWidth / userScaleFactor, pageHeight / userScale… in computePageRects()
98 void PrintContext::computePageRectsWithPageSize(const FloatSize& pageSizeInPixels, bool allowHorizo… in computePageRectsWithPageSize()
104 void PrintContext::computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels, bool all… in computePageRectsWithPageSizeInternal()
182 …m_frame->setPrinting(true, FloatSize(minLayoutWidth, minLayoutHeight), printingMaximumShrinkFactor… in begin()
185 float PrintContext::computeAutomaticScaleFactor(const FloatSize& availablePaperSize) in computeAutomaticScaleFactor()
210 ctx.scale(FloatSize(scale, scale)); in spoolPage()
231 m_frame->setPrinting(false, FloatSize(), 0, Frame::AdjustViewSize); in end()
244 int PrintContext::pageNumberForElement(Element* element, const FloatSize& pageSizeInPixels) in pageNumberForElement()
258 FloatSize scaledPageSize = pageSizeInPixels; in pageNumberForElement()
314 int PrintContext::numberOfPages(Frame* frame, const FloatSize& pageSizeInPixels) in numberOfPages()
[all …]
/external/webkit/Source/WebCore/platform/mac/
DScrollAnimatorMac.h136 FloatSize m_overflowScrollDelta;
137 FloatSize m_stretchScrollForce;
138 FloatSize m_momentumVelocity;
142 FloatSize m_startStretch;
144 FloatSize m_origVelocity;
/external/webkit/Source/WebKit2/Shared/gtk/
DWebEventFactory.cpp141 FloatSize wheelTicks; in createWebWheelEvent()
144 wheelTicks = FloatSize(0, 1); in createWebWheelEvent()
147 wheelTicks = FloatSize(0, -1); in createWebWheelEvent()
150 wheelTicks = FloatSize(1, 0); in createWebWheelEvent()
153 wheelTicks = FloatSize(-1, 0); in createWebWheelEvent()
162 FloatSize delta(wheelTicks.width() * step, wheelTicks.height() * step); in createWebWheelEvent()
/external/webkit/Source/WebCore/platform/graphics/cg/
DFloatSizeCG.cpp36 FloatSize::FloatSize(const CGSize& s) : m_width(s.width), m_height(s.height) in FloatSize() function in WebCore::FloatSize
40 FloatSize::operator CGSize() const in operator CGSize()
/external/webkit/Source/WebKit2/UIProcess/
DTiledDrawingAreaProxy.h93 …void getKeepAndCoverAreaMultipliers(WebCore::FloatSize& keepMultiplier, WebCore::FloatSize& coverM… in getKeepAndCoverAreaMultipliers()
98 …void setKeepAndCoverAreaMultipliers(const WebCore::FloatSize& keepMultiplier, const WebCore::Float…
174 WebCore::FloatSize m_keepAreaMultiplier;
175 WebCore::FloatSize m_coverAreaMultiplier;
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
DDrawQuadData.h97 virtual FloatSize repeatScale() const { return FloatSize(); } in repeatScale()
147 FloatSize repeatScale = FloatSize())
176 virtual FloatSize repeatScale() const { return m_repeatScale; } in repeatScale()
181 FloatSize m_repeatScale;
/external/webkit/Source/WebKit2/Shared/
DWebEvent.h178 …onst WebCore::IntPoint& globalPosition, const WebCore::FloatSize& delta, const WebCore::FloatSize&…
180 …onst WebCore::IntPoint& globalPosition, const WebCore::FloatSize& delta, const WebCore::FloatSize&…
185 const WebCore::FloatSize delta() const { return m_delta; } in delta()
186 const WebCore::FloatSize wheelTicks() const { return m_wheelTicks; } in wheelTicks()
202 WebCore::FloatSize m_delta;
203 WebCore::FloatSize m_wheelTicks;
DWebWheelEvent.cpp36 …t IntPoint& position, const IntPoint& globalPosition, const FloatSize& delta, const FloatSize& whe… in WebWheelEvent()
52 …t IntPoint& position, const IntPoint& globalPosition, const FloatSize& delta, const FloatSize& whe… in WebWheelEvent()
/external/webkit/Source/WebCore/platform/graphics/filters/
DFilter.h44 FloatSize filterResolution() const { return m_filterResolution; } in filterResolution()
45 …void setFilterResolution(const FloatSize& filterResolution) { m_filterResolution = filterResolutio… in setFilterResolution()
61 FloatSize m_filterResolution;
/external/webkit/Source/WebCore/rendering/svg/
DRenderSVGResourceFilter.h56 FloatSize scale;
90 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&);
/external/webkit/Source/WebCore/platform/graphics/mac/
DFloatSizeMac.mm28 #include "FloatSize.h"
34 FloatSize::FloatSize(const NSSize& s) : m_width(s.width), m_height(s.height)
38 FloatSize::operator NSSize() const
/external/webkit/Source/WebCore/dom/
DCanvasSurface.cpp111 IntSize CanvasSurface::convertLogicalToDevice(const FloatSize& logicalSize) const in convertLogicalToDevice()
136 FloatSize unscaledSize(width(), height()); in createImageBuffer()
146 …m_imageBuffer->context()->scale(FloatSize(size.width() / unscaledSize.width(), size.height() / uns… in createImageBuffer()
165 FloatSize unscaledSize(width(), height()); in baseTransform()

123456789