Changeset 149831 in webkit


Ignore:
Timestamp:
May 9, 2013 12:00:22 PM (11 years ago)
Author:
mifenton@rim.com
Message:

[BlackBerry] Style updates required based on new check-webkit-style
https://bugs.webkit.org/show_bug.cgi?id=115857

Reviewed by Rob Buis.

Update iInRegionScroller, WebKitTextCodec and WebPageCompositor
to match check-webkit-style updates.

  • Api/InRegionScroller.cpp:

(BlackBerry::WebKit::InRegionScrollerPrivate::setScrollPositionCompositingThread):

  • Api/InRegionScroller_p.h:
  • Api/WebKitTextCodec.cpp:

(BlackBerry::WebKit::transcode):

  • Api/WebPageCompositor.cpp:

(BlackBerry::WebKit::WebPageCompositor::render):

  • Api/WebPageCompositor.h:
  • Api/WebPageCompositor_p.h:

(WebPageCompositorPrivate):

  • Api/WebSettings_p.h:
Location:
trunk/Source/WebKit/blackberry
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/InRegionScroller.cpp

    r149816 r149831  
    135135
    136136    // Position is offset on the layer by the layer anchor point.
    137     FloatPoint layerPosition(-scrollPosition.x() + anchor.x() * bounds.width(),
    138                              -scrollPosition.y() + anchor.y() * bounds.height());
     137    FloatPoint layerPosition(-scrollPosition.x() + anchor.x() * bounds.width(), -scrollPosition.y() + anchor.y() * bounds.height());
    139138
    140139    scrollLayer->override()->setPosition(FloatPoint(layerPosition.x(), layerPosition.y()));
  • trunk/Source/WebKit/blackberry/Api/InRegionScroller_p.h

    r145553 r149831  
    2020#define InRegionScroller_p_h
    2121
     22#include "IntPoint.h"
    2223#include "IntSize.h"
    23 #include "IntPoint.h"
    2424
    2525#include <interaction/ScrollViewBase.h>
  • trunk/Source/WebKit/blackberry/Api/WebKitTextCodec.cpp

    r149769 r149831  
    7171}
    7272
    73 TranscodeResult transcode(const char* sourceEncoding, const char* targetEncoding, const char*& sourceStart, int sourceLength, char*& targetStart, unsigned int targetLength)
     73TranscodeResult transcode(const char* sourceEncoding, const char* targetEncoding, const char*& sourceStart, int sourceLength, char*& targetStart, unsigned targetLength)
    7474{
    7575    TextEncoding textEncodingSource(sourceEncoding);
  • trunk/Source/WebKit/blackberry/Api/WebPageCompositor.cpp

    r149137 r149831  
    2222
    2323#if USE(ACCELERATED_COMPOSITING)
    24 #include "WebPageCompositorClient.h"
    25 #include "WebPageCompositor_p.h"
    26 
    2724#include "BackingStore_p.h"
    2825#include "LayerWebKitThread.h"
    2926#include "WebOverlay_p.h"
     27#include "WebPageCompositorClient.h"
     28#include "WebPageCompositor_p.h"
    3029#include "WebPage_p.h"
    3130
     
    396395
    397396void WebPageCompositor::render(Platform::Graphics::GLES2Context*,
    398                                const Platform::IntRect&,
    399                                const Platform::IntRect&,
    400                                const Platform::TransformationMatrix&,
    401                                const Platform::FloatRect&,
    402                                const Platform::FloatRect&)
     397    const Platform::IntRect&,
     398    const Platform::IntRect&,
     399    const Platform::TransformationMatrix&,
     400    const Platform::FloatRect&,
     401    const Platform::FloatRect&)
    403402{
    404403}
  • trunk/Source/WebKit/blackberry/Api/WebPageCompositor.h

    r147136 r149831  
    5252
    5353    void render(Platform::Graphics::GLES2Context*,
    54                 const Platform::IntRect& targetRect,
    55                 const Platform::IntRect& clipRect,
    56                 const Platform::TransformationMatrix&,
    57                 const Platform::FloatRect& documentContents,
    58                 const Platform::FloatRect& viewport);
     54        const Platform::IntRect& targetRect,
     55        const Platform::IntRect& clipRect,
     56        const Platform::TransformationMatrix&,
     57        const Platform::FloatRect& documentContents,
     58        const Platform::FloatRect& viewport);
    5959
    6060    void cleanup(Platform::Graphics::GLES2Context*);
  • trunk/Source/WebKit/blackberry/Api/WebPageCompositor_p.h

    r149137 r149831  
    6060    void prepareFrame(double animationTime);
    6161    void render(const WebCore::IntRect& targetRect,
    62                 const WebCore::IntRect& clipRect,
    63                 const WebCore::TransformationMatrix&,
    64                 const WebCore::FloatRect& documentContents,
    65                 const WebCore::FloatRect& viewport);
     62        const WebCore::IntRect& clipRect,
     63        const WebCore::TransformationMatrix&,
     64        const WebCore::FloatRect& documentContents,
     65        const WebCore::FloatRect& viewport);
    6666
    6767    Platform::Graphics::GLES2Context* context() const { return m_context; }
     
    9797
    9898    WebPagePrivate* page() const { return m_webPage; }
    99     void setPage(WebPagePrivate* page);
     99    void setPage(WebPagePrivate*);
    100100    void detach();
    101101    WebPageCompositorClient* client() const { return m_client; }
  • trunk/Source/WebKit/blackberry/Api/WebSettings_p.h

    r107764 r149831  
    2626
    2727#define synthesizeAccessorsForPrimitiveValuePrefixAndType(prefix, type) \
    28      void set##prefix(const String& key, type newValue) { \
    29          ASSERT(impl); \
    30          if (get##prefix(key) == newValue) \
     28    void set##prefix(const String& key, type newValue) { \
     29        ASSERT(impl); \
     30        if (get##prefix(key) == newValue) \
    3131            return; \
    32          if (copyOnWrite) { \
     32        if (copyOnWrite) { \
    3333            copyOnWrite = false; \
    3434            impl = new WebSettingsPrivateImpl(*impl); \
    35          } \
    36          PrimitiveValue primitiveValue; \
    37          primitiveValue.prefix##Value = newValue; \
    38          impl->primitiveValues.set(key, primitiveValue); \
    39          if (delegate) \
     35        } \
     36        PrimitiveValue primitiveValue; \
     37        primitiveValue.prefix##Value = newValue; \
     38        impl->primitiveValues.set(key, primitiveValue); \
     39        if (delegate) \
    4040            delegate->didChangeSettings(sender); \
    41      } \
    42      type get##prefix(const String& key) const { \
    43           ASSERT(impl); \
    44           if (!impl->primitiveValues.contains(key)) \
    45               return static_cast<type>(false); \
    46           return impl->primitiveValues.get(key).prefix##Value; \
    47       }
     41        } \
     42        type get##prefix(const String& key) const { \
     43        ASSERT(impl); \
     44        if (!impl->primitiveValues.contains(key)) \
     45            return static_cast<type>(false); \
     46        return impl->primitiveValues.get(key).prefix##Value; \
     47    }
    4848
    4949namespace BlackBerry {
  • trunk/Source/WebKit/blackberry/ChangeLog

    r149830 r149831  
     12013-05-09  Mike Fenton  <mifenton@rim.com>
     2
     3        [BlackBerry] Style updates required based on new check-webkit-style
     4        https://bugs.webkit.org/show_bug.cgi?id=115857
     5
     6        Reviewed by Rob Buis.
     7
     8        Update iInRegionScroller, WebKitTextCodec and WebPageCompositor
     9        to match check-webkit-style updates.
     10
     11        * Api/InRegionScroller.cpp:
     12        (BlackBerry::WebKit::InRegionScrollerPrivate::setScrollPositionCompositingThread):
     13        * Api/InRegionScroller_p.h:
     14        * Api/WebKitTextCodec.cpp:
     15        (BlackBerry::WebKit::transcode):
     16        * Api/WebPageCompositor.cpp:
     17        (BlackBerry::WebKit::WebPageCompositor::render):
     18        * Api/WebPageCompositor.h:
     19        * Api/WebPageCompositor_p.h:
     20        (WebPageCompositorPrivate):
     21        * Api/WebSettings_p.h:
     22
    1232013-05-09  Max Feil  <mfeil@rim.com>
    224
Note: See TracChangeset for help on using the changeset viewer.