Changeset 83032 in webkit


Ignore:
Timestamp:
Apr 6, 2011 1:10:05 AM (13 years ago)
Author:
Joseph Pecoraro
Message:

2011-04-06 Joseph Pecoraro <Joseph Pecoraro>

Reviewed by Antti Koivisto.

Add <head> to the simpleUserAgentStyleSheet
https://bugs.webkit.org/show_bug.cgi?id=57915

  • css/CSSStyleSelector.cpp: (WebCore::elementCanUseSimpleDefaultStyle): add head to the simple stylesheet, display:none.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83031 r83032  
     12011-04-06  Joseph Pecoraro  <joepeck@webkit.org>
     2
     3        Reviewed by Antti Koivisto.
     4
     5        Add <head> to the simpleUserAgentStyleSheet
     6        https://bugs.webkit.org/show_bug.cgi?id=57915
     7
     8        * css/CSSStyleSelector.cpp:
     9        (WebCore::elementCanUseSimpleDefaultStyle): add head to the
     10        simple stylesheet, display:none.
     11
    1122011-04-05  Mikhail Naganov  <mnaganov@chromium.org>
    213
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r82942 r83032  
    440440static void loadSimpleDefaultStyle();
    441441// FIXME: It would be nice to use some mechanism that guarantees this is in sync with the real UA stylesheet.
    442 static const char* simpleUserAgentStyleSheet = "html,body,div{display:block}body{margin:8px}div:focus,span:focus{outline:auto 5px -webkit-focus-ring-color}a:-webkit-any-link{color:-webkit-link;text-decoration:underline}a:-webkit-any-link:active{color:-webkit-activelink}";
     442static const char* simpleUserAgentStyleSheet = "html,body,div{display:block}head{display:none}body{margin:8px}div:focus,span:focus{outline:auto 5px -webkit-focus-ring-color}a:-webkit-any-link{color:-webkit-link;text-decoration:underline}a:-webkit-any-link:active{color:-webkit-activelink}";
    443443
    444444static inline bool elementCanUseSimpleDefaultStyle(Element* e)
    445445{
    446     return e->hasTagName(htmlTag) || e->hasTagName(bodyTag) || e->hasTagName(divTag) || e->hasTagName(spanTag) || e->hasTagName(brTag) || e->hasTagName(aTag);
     446    return e->hasTagName(htmlTag) || e->hasTagName(headTag) || e->hasTagName(bodyTag) || e->hasTagName(divTag) || e->hasTagName(spanTag) || e->hasTagName(brTag) || e->hasTagName(aTag);
    447447}
    448448
Note: See TracChangeset for help on using the changeset viewer.