⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118885 in webkit


Ignore:
Timestamp:
May 29, 2012, 8:30:23 PM (14 years ago)
Author:
macpherson@chromium.org
Message:

Implement post-landing feedback for WebKitCSSTransformValue::customCSSText().
https://bugs.webkit.org/show_bug.cgi?id=87684

Reviewed by Darin Adler.

Darin provided some style suggesting on https://bugs.webkit.org/show_bug.cgi?id=87462 after it landed.
This patch incorporates those suggestions, namely using 0 instead of empty string for UnknownTransformOperation
and WTF_ARRAY_LENGTH instead of hard coding the array length.

Covered by existing transform tests.

  • css/WebKitCSSTransformValue.cpp:

(WebCore):
(WebCore::WebKitCSSTransformValue::customCssText):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r118883 r118885  
     12012-05-29  Luke Macpherson  <macpherson@chromium.org>
     2
     3        Implement post-landing feedback for WebKitCSSTransformValue::customCSSText().
     4        https://bugs.webkit.org/show_bug.cgi?id=87684
     5
     6        Reviewed by Darin Adler.
     7
     8        Darin provided some style suggesting on https://bugs.webkit.org/show_bug.cgi?id=87462 after it landed.
     9        This patch incorporates those suggestions, namely using 0 instead of empty string for UnknownTransformOperation
     10        and WTF_ARRAY_LENGTH instead of hard coding the array length.
     11
     12        Covered by existing transform tests.
     13
     14        * css/WebKitCSSTransformValue.cpp:
     15        (WebCore):
     16        (WebCore::WebKitCSSTransformValue::customCssText):
     17
    1182012-05-29  Eric Seidel  <eric@webkit.org>
    219
  • trunk/Source/WebCore/css/WebKitCSSTransformValue.cpp

    r118639 r118885  
    3434namespace WebCore {
    3535
    36 const int transformNameSize = 22;
    37 const char* const transformName[transformNameSize] = {
    38      "",
     36// These names must be kept in sync with TransformOperationType.
     37const char* const transformName[] = {
     38     0,
    3939     "translate",
    4040     "translateX",
     
    7070    StringBuilder result;
    7171    if (m_type != UnknownTransformOperation) {
    72         ASSERT(m_type < transformNameSize);
     72        ASSERT(static_cast<size_t>(m_type) < WTF_ARRAY_LENGTH(transformName));
    7373        result.append(transformName[m_type]);
    7474        result.append('(');
Note: See TracChangeset for help on using the changeset viewer.