Fix minimal build warnings
authorevab.u-szeged@partner.samsung.com <evab.u-szeged@partner.samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Oct 2014 09:47:27 +0000 (09:47 +0000)
committerevab.u-szeged@partner.samsung.com <evab.u-szeged@partner.samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Oct 2014 09:47:27 +0000 (09:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137066

Reviewed by Daniel Bates.

No new tests, no behavior change.

* css/CSSParser.cpp:
(WebCore::isValidKeywordPropertyAndValue):
* html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
* page/Page.cpp:
(WebCore::Page::setPageScaleFactor):
* platform/graphics/WidthIterator.cpp:
(WebCore::WidthIterator::glyphDataForCharacter):
* rendering/svg/SVGInlineTextBox.cpp:
(WebCore::SVGInlineTextBox::prepareGraphicsContextForTextPainting):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174206 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp
Source/WebCore/html/parser/HTMLPreloadScanner.cpp
Source/WebCore/page/Page.cpp
Source/WebCore/platform/graphics/WidthIterator.cpp
Source/WebCore/rendering/svg/SVGInlineTextBox.cpp

index a45be1c..cf38bff 100644 (file)
@@ -1,3 +1,23 @@
+2014-10-02  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
+
+        Fix minimal build warnings
+        https://bugs.webkit.org/show_bug.cgi?id=137066
+
+        Reviewed by Daniel Bates.
+
+        No new tests, no behavior change.
+
+        * css/CSSParser.cpp:
+        (WebCore::isValidKeywordPropertyAndValue):
+        * html/parser/HTMLPreloadScanner.cpp:
+        (WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
+        * page/Page.cpp:
+        (WebCore::Page::setPageScaleFactor):
+        * platform/graphics/WidthIterator.cpp:
+        (WebCore::WidthIterator::glyphDataForCharacter):
+        * rendering/svg/SVGInlineTextBox.cpp:
+        (WebCore::SVGInlineTextBox::prepareGraphicsContextForTextPainting):
+
 2014-10-01  Benjamin Poulain  <bpoulain@apple.com>
 
         Click events offset in webkit-overflow-scrolling iframes
index bf95fb6..c18a4b3 100644 (file)
@@ -1035,6 +1035,9 @@ static inline bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, int
         ASSERT_NOT_REACHED();
         return false;
     }
+#if !ENABLE(CSS_COMPOSITING) && !ENABLE(CSS_REGIONS)
+    UNUSED_PARAM(parserContext);
+#endif
     return false;
 }
 
index 5695cd6..9121339 100644 (file)
@@ -110,6 +110,8 @@ public:
             unsigned sourceSize = 0;
 #if ENABLE(PICTURE_SIZES)
             sourceSize = SourceSizeList::parseSizesAttribute(m_sizesAttribute, document.renderView(), document.frame());
+#else
+            UNUSED_PARAM(document);
 #endif
             ImageCandidate imageCandidate = bestFitSourceForImageAttributes(m_deviceScaleFactor, m_urlToLoad, m_srcSetAttribute, sourceSize);
             setUrlToLoad(imageCandidate.string.toString(), true);
index 26b8d17..d9b9c42 100644 (file)
@@ -788,6 +788,8 @@ void Page::setPageScaleFactor(float scale, const IntPoint& origin, bool inStable
         for (Frame* frame = &mainFrame(); frame; frame = frame->tree().traverseNext())
             frame->document()->pageScaleFactorChangedAndStable();
     }
+#else
+    UNUSED_PARAM(inStableState);
 #endif
 }
 
index 7c51de7..bd74a1d 100644 (file)
@@ -78,6 +78,7 @@ GlyphData WidthIterator::glyphDataForCharacter(UChar32 character, bool mirror, i
 #else
     UNUSED_PARAM(currentCharacter);
     UNUSED_PARAM(advanceLength);
+    UNUSED_PARAM(normalizedSpacesStringCache);
 #endif
 
     return m_font->glyphDataForCharacter(character, mirror);
index 4116a4c..0b3d7db 100644 (file)
@@ -398,6 +398,8 @@ bool SVGInlineTextBox::prepareGraphicsContextForTextPainting(GraphicsContext*& c
     TextRun::RenderingContext* renderingContext = textRun.renderingContext();
     if (renderingContext)
         static_cast<SVGTextRunRenderingContext*>(renderingContext)->setActivePaintingResource(m_paintingResource);
+#else
+    UNUSED_PARAM(textRun);
 #endif
 
     return true;