Ignore:
Timestamp:
Jan 19, 2011, 9:01:12 AM (14 years ago)
Author:
[email protected]
Message:

2011-01-19 Pavel Podivilov <[email protected]>

Reviewed by Yury Semikhatsky.

Web Inspector: [JSC] scripts have incorrect starting line (always 1).
https://bugs.webkit.org/show_bug.cgi?id=52721

  • inspector/debugger-scripts-expected.txt: Added.
  • inspector/debugger-scripts.html: Added.

2011-01-19 Pavel Podivilov <[email protected]>

Reviewed by Yury Semikhatsky.

Web Inspector: [JSC] scripts have incorrect starting line (always 1).
https://bugs.webkit.org/show_bug.cgi?id=52721

  • debugger/Debugger.cpp: (JSC::Debugger::recompileAllJSFunctions):
  • debugger/Debugger.h:
  • parser/Parser.h: (JSC::Parser::parse):
  • parser/SourceCode.h: (JSC::SourceCode::SourceCode):
  • parser/SourceProvider.h: (JSC::SourceProvider::startPosition):

2011-01-19 Pavel Podivilov <[email protected]>

Reviewed by Yury Semikhatsky.

Web Inspector: [JSC] scripts have incorrect starting line (always 1).
https://bugs.webkit.org/show_bug.cgi?id=52721

Test: inspector/debugger-scripts.html

  • bindings/js/ScriptDebugServer.cpp: (WebCore::ScriptDebugServer::dispatchDidParseSource): (WebCore::ScriptDebugServer::dispatchFailedToParseSource): (WebCore::ScriptDebugServer::sourceParsed):
  • bindings/js/ScriptDebugServer.h:
  • bindings/js/ScriptSourceCode.h: (WebCore::ScriptSourceCode::ScriptSourceCode):
  • bindings/js/StringSourceProvider.h: (WebCore::StringSourceProvider::create): (WebCore::StringSourceProvider::startPosition): (WebCore::StringSourceProvider::StringSourceProvider):

2011-01-19 Pavel Podivilov <[email protected]>

Reviewed by Yury Semikhatsky.

Web Inspector: [JSC] scripts have incorrect starting line (always 1).
https://bugs.webkit.org/show_bug.cgi?id=52721

  • WebView/WebScriptDebugger.h:
  • WebView/WebScriptDebugger.mm: (toNSString): (WebScriptDebugger::sourceParsed):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/SourceCode.h

    r75794 r76129  
    3232#include "SourceProvider.h"
    3333#include <wtf/RefPtr.h>
    34 #include <wtf/text/TextPosition.h>
    3534
    3635namespace JSC {
     
    4342            , m_endChar(0)
    4443            , m_firstLine(0)
    45             , m_firstColumn(0)
    4644        {
    4745        }
    4846
    49         SourceCode(PassRefPtr<SourceProvider> provider, int firstLine = 1, int firstColumn = 1)
     47        SourceCode(PassRefPtr<SourceProvider> provider, int firstLine = 1)
    5048            : m_provider(provider)
    5149            , m_startChar(0)
    5250            , m_endChar(m_provider->length())
    5351            , m_firstLine(std::max(firstLine, 1))
    54             , m_firstColumn(std::max(firstColumn, 1))
    5552        {
    5653        }
    5754
    58         SourceCode(PassRefPtr<SourceProvider> provider, int start, int end, int firstLine, int firstColumn = 1)
     55        SourceCode(PassRefPtr<SourceProvider> provider, int start, int end, int firstLine)
    5956            : m_provider(provider)
    6057            , m_startChar(start)
    6158            , m_endChar(end)
    6259            , m_firstLine(std::max(firstLine, 1))
    63             , m_firstColumn(std::max(firstColumn, 1))
    64         {
    65         }
    66 
    67         SourceCode(PassRefPtr<SourceProvider> provider, const TextPosition1& startPosition)
    68             : m_provider(provider)
    69             , m_startChar(0)
    70             , m_endChar(m_provider->length())
    71             , m_firstLine(startPosition.m_line.oneBasedInt())
    72             , m_firstColumn(startPosition.m_column.oneBasedInt())
    7360        {
    7461        }
     
    8471        SourceProvider* provider() const { return m_provider.get(); }
    8572        int firstLine() const { return m_firstLine; }
    86         int firstColumn() const { return m_firstColumn; }
    8773        int startOffset() const { return m_startChar; }
    8874        int endOffset() const { return m_endChar; }
     
    9581        int m_endChar;
    9682        int m_firstLine;
    97         int m_firstColumn;
    9883    };
    9984
Note: See TracChangeset for help on using the changeset viewer.