Changeset 62398 in webkit


Ignore:
Timestamp:
Jul 2, 2010 12:45:28 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-07-02 Peter Beverloo <peter@lvp-media.com>

Reviewed by Maciej Stachowiak.

Add the HTML5 <mark> element. Text content of the element will have
a yellow background color and black text.

Tests for <p> closing, phrasing child content and residual style.

  • fast/html/mark-element-expected.txt: Added.
  • fast/html/mark-element.html: Added.
  • fast/html/script-tests/mark-element.js: Added.

2010-07-02 Peter Beverloo <peter@lvp-media.com>

Reviewed by Maciej Stachowiak.

Add the HTML5 <mark> element. Text content of the element will have
a yellow background color and black text.

Test: fast/html/mark-element.html
Tests for <p> closing, phrasing child content and residual style.

  • css/html.css: (mark):
  • html/HTMLElement.cpp: (WebCore::inlineTagList):
  • html/HTMLTagNames.in:
  • html/LegacyHTMLTreeBuilder.cpp: (WebCore::LegacyHTMLTreeBuilder::getNode): (WebCore::LegacyHTMLTreeBuilder::isInline): (WebCore::LegacyHTMLTreeBuilder::isResidualStyleTag):
Location:
trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r62397 r62398  
     12010-07-02  Peter Beverloo  <peter@lvp-media.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Add the HTML5 <mark> element. Text content of the element will have
     6        a yellow background color and black text.
     7
     8        Tests for <p> closing, phrasing child content and residual style.
     9
     10        * fast/html/mark-element-expected.txt: Added.
     11        * fast/html/mark-element.html: Added.
     12        * fast/html/script-tests/mark-element.js: Added.
     13
    1142010-07-02  Zhenyao Mo  <zmo@google.com>
    215
  • trunk/WebCore/ChangeLog

    r62397 r62398  
     12010-07-02  Peter Beverloo  <peter@lvp-media.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Add the HTML5 <mark> element. Text content of the element will have
     6        a yellow background color and black text.
     7
     8        Test: fast/html/mark-element.html
     9        Tests for <p> closing, phrasing child content and residual style.
     10
     11        * css/html.css:
     12        (mark):
     13        * html/HTMLElement.cpp:
     14        (WebCore::inlineTagList):
     15        * html/HTMLTagNames.in:
     16        * html/LegacyHTMLTreeBuilder.cpp:
     17        (WebCore::LegacyHTMLTreeBuilder::getNode):
     18        (WebCore::LegacyHTMLTreeBuilder::isInline):
     19        (WebCore::LegacyHTMLTreeBuilder::isResidualStyleTag):
     20
    1212010-07-02  Zhenyao Mo  <zmo@google.com>
    222
  • trunk/WebCore/css/html.css

    r61993 r62398  
    632632}
    633633
     634mark {
     635    background-color: yellow;
     636    color: black
     637}
     638
    634639big {
    635640    font-size: larger
  • trunk/WebCore/html/HTMLElement.cpp

    r61637 r62398  
    859859        tagList.add(progressTag.localName().impl());
    860860        tagList.add(meterTag.localName().impl());
     861        tagList.add(markTag.localName().impl());
    861862    }
    862863    return &tagList;
  • trunk/WebCore/html/HTMLTagNames.in

    r60418 r62398  
    7575listing interfaceName=HTMLPreElement
    7676map
     77mark interfaceName=HTMLElement
    7778marquee
    7879menu
  • trunk/WebCore/html/LegacyHTMLTreeBuilder.cpp

    r62079 r62398  
    945945        mapTagsToFunc(gFunctionMap, nestedCreateErrorTags, &LegacyHTMLTreeBuilder::nestedCreateErrorCheck);
    946946
    947         QualifiedName nestedStyleCreateErrorTags[] = { bTag, bigTag, iTag, sTag, smallTag, strikeTag, ttTag, uTag };
     947        QualifiedName nestedStyleCreateErrorTags[] = { bTag, bigTag, iTag, markTag, sTag, smallTag, strikeTag, ttTag, uTag };
    948948        mapTagsToFunc(gFunctionMap, nestedStyleCreateErrorTags, &LegacyHTMLTreeBuilder::nestedStyleCreateErrorCheck);
    949949
     
    10581058            e->hasLocalName(supTag) || e->hasLocalName(spanTag) || e->hasLocalName(nobrTag) ||
    10591059            e->hasLocalName(noframesTag) || e->hasLocalName(nolayerTag) ||
    1060             e->hasLocalName(noembedTag))
     1060            e->hasLocalName(noembedTag) || e->hasLocalName(markTag))
    10611061            return true;
    10621062#if !ENABLE(XHTMLMP)
     
    10781078        QualifiedName tagNames[] = { aTag, fontTag, ttTag, uTag, bTag, iTag,
    10791079            sTag, strikeTag, bigTag, smallTag, emTag, strongTag, dfnTag,
    1080             codeTag, sampTag, kbdTag, varTag, nobrTag };
     1080            codeTag, sampTag, kbdTag, varTag, nobrTag, markTag };
    10811081        addTags(residualStyleTags, tagNames);
    10821082    }
Note: See TracChangeset for help on using the changeset viewer.