Changeset 177951 in webkit


Ignore:
Timestamp:
Jan 5, 2015 11:46:07 PM (9 years ago)
Author:
Darin Adler
Message:

WebCore:

Revert mistake in yesterday's HTMLDocumentParser refactor.
https://bugs.webkit.org/show_bug.cgi?id=140041

  • html/parser/HTMLDocumentParser.cpp:

(WebCore::HTMLDocumentParser::HTMLDocumentParser): Pass the parser content policy
from the parserContentPolicy function, not the raw policy that was passed in. This
restores the behavior from before r177883.

LayoutTests:

editing/pasteboard/drag-and-drop-objectimage-contenteditable.html,
now that it's fixed.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r177950 r177951  
     12015-01-05  Darin Adler  <darin@apple.com>
     2
     3        * TestExpectations: Re-enabled the test I broke yesterday,
     4        editing/pasteboard/drag-and-drop-objectimage-contenteditable.html,
     5        now that it's fixed.
     6
    172015-01-05  Chris Dumez  <cdumez@apple.com>
    28
  • trunk/LayoutTests/TestExpectations

    r177913 r177951  
    458458
    459459webkit.org/b/140043 [ Debug ] js/dom/Promise.html [ Pass Failure ]
    460 
    461 webkit.org/b/140041 editing/pasteboard/drag-and-drop-objectimage-contenteditable.html [ Skip ]
  • trunk/Source/WebCore/ChangeLog

    r177950 r177951  
     12015-01-05  Darin Adler  <darin@apple.com>
     2
     3        Revert mistake in yesterday's HTMLDocumentParser refactor.
     4        https://bugs.webkit.org/show_bug.cgi?id=140041
     5
     6        * html/parser/HTMLDocumentParser.cpp:
     7        (WebCore::HTMLDocumentParser::HTMLDocumentParser): Pass the parser content policy
     8        from the parserContentPolicy function, not the raw policy that was passed in. This
     9        restores the behavior from before r177883.
     10
    1112015-01-05  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp

    r177883 r177951  
    7979}
    8080
    81 inline HTMLDocumentParser::HTMLDocumentParser(DocumentFragment& fragment, Element& contextElement, ParserContentPolicy contentPolicy)
    82     : ScriptableDocumentParser(fragment.document(), contentPolicy)
     81inline HTMLDocumentParser::HTMLDocumentParser(DocumentFragment& fragment, Element& contextElement, ParserContentPolicy rawPolicy)
     82    : ScriptableDocumentParser(fragment.document(), rawPolicy)
    8383    , m_options(fragment.document())
    8484    , m_tokenizer(m_options)
    85     , m_treeBuilder(std::make_unique<HTMLTreeBuilder>(*this, fragment, contextElement, contentPolicy, m_options))
     85    , m_treeBuilder(std::make_unique<HTMLTreeBuilder>(*this, fragment, contextElement, parserContentPolicy(), m_options))
    8686    , m_xssAuditorDelegate(fragment.document())
    8787{
Note: See TracChangeset for help on using the changeset viewer.