Changeset 103401 in webkit


Ignore:
Timestamp:
Dec 21, 2011 2:20:36 AM (12 years ago)
Author:
reni@webkit.org
Message:

Fulfill FIXME in HTMLLinkElement.h.
https://bugs.webkit.org/show_bug.cgi?id=74278

Rename isStyleSheetLoading() method to styleSheetIsLoading().
This new one has the correct grammar.

Reviewed by Darin Adler.

No new tests because the functionality remains the same.

  • dom/Document.cpp:

(WebCore::Document::recalcStyleSelector):

  • html/HTMLLinkElement.cpp:

(WebCore::HTMLLinkElement::setDisabledState):
(WebCore::HTMLLinkElement::styleSheetIsLoading):
(WebCore::HTMLLinkElement::sheetLoaded):

  • html/HTMLLinkElement.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r103400 r103401  
     12011-12-21  Renata Hodovan  <reni@webkit.org>
     2
     3        Fulfill FIXME in  HTMLLinkElement.h.
     4        https://bugs.webkit.org/show_bug.cgi?id=74278
     5
     6        Rename isStyleSheetLoading() method to styleSheetIsLoading().
     7        This new one has the correct grammar.
     8
     9        Reviewed by Darin Adler.
     10
     11        No new tests because the functionality remains the same.
     12
     13        * dom/Document.cpp:
     14        (WebCore::Document::recalcStyleSelector):
     15        * html/HTMLLinkElement.cpp:
     16        (WebCore::HTMLLinkElement::setDisabledState):
     17        (WebCore::HTMLLinkElement::styleSheetIsLoading):
     18        (WebCore::HTMLLinkElement::sheetLoaded):
     19        * html/HTMLLinkElement.h:
     20
    1212011-12-21  Yosifumi Inoue  <yosin@chromium.org>
    222
  • trunk/Source/WebCore/dom/Document.cpp

    r103296 r103401  
    30973097                    continue;
    30983098                enabledViaScript = linkElement->isEnabledViaScript();
    3099                 if (linkElement->isStyleSheetLoading()) {
     3099                if (linkElement->styleSheetIsLoading()) {
    31003100                    // it is loading but we should still decide which style sheet set to use
    31013101                    if (!enabledViaScript && !title.isEmpty() && m_preferredStylesheetSet.isEmpty()) {
  • trunk/Source/WebCore/html/HTMLLinkElement.cpp

    r102580 r103401  
    9191        // If we change the disabled state while the sheet is still loading, then we have to
    9292        // perform three checks:
    93         if (isStyleSheetLoading()) {
     93        if (styleSheetIsLoading()) {
    9494            // Check #1: The sheet becomes disabled while loading.
    9595            if (m_disabledState == Disabled)
     
    334334}
    335335
    336 bool HTMLLinkElement::isStyleSheetLoading() const
     336bool HTMLLinkElement::styleSheetIsLoading() const
    337337{
    338338    if (m_loading)
     
    355355bool HTMLLinkElement::sheetLoaded()
    356356{
    357     if (!isStyleSheetLoading()) {
     357    if (!styleSheetIsLoading()) {
    358358        removePendingSheet();
    359359        return true;
  • trunk/Source/WebCore/html/HTMLLinkElement.h

    r102580 r103401  
    5454    CSSStyleSheet* sheet() const { return m_sheet.get(); }
    5555
    56     bool isStyleSheetLoading() const;
     56    bool styleSheetIsLoading() const;
    5757
    5858    bool isDisabled() const { return m_disabledState == Disabled; }
Note: See TracChangeset for help on using the changeset viewer.