⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 244702 in webkit


Ignore:
Timestamp:
Apr 26, 2019, 11:32:41 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r244683.
https://bugs.webkit.org/show_bug.cgi?id=197320

Causing crash on iOS Simulator and EWS failures (Requested by
sroberts on #webkit).

Reverted changeset:

"[iOS] Add internal setting to force -webkit-text-size-adjust
to "auto""
https://bugs.webkit.org/show_bug.cgi?id=197275
https://trac.webkit.org/changeset/244683

Location:
trunk/Source
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r244700 r244702  
     12019-04-26  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r244683.
     4        https://bugs.webkit.org/show_bug.cgi?id=197320
     5
     6        Causing crash on iOS Simulator and EWS failures (Requested by
     7        sroberts on #webkit).
     8
     9        Reverted changeset:
     10
     11        "[iOS] Add internal setting to force -webkit-text-size-adjust
     12        to "auto""
     13        https://bugs.webkit.org/show_bug.cgi?id=197275
     14        https://trac.webkit.org/changeset/244683
     15
    1162019-04-26  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/Source/WebCore/page/Settings.yaml

    r244683 r244702  
    445445  onChange: setNeedsRecalcStyleInAllFrames
    446446  conditional: TEXT_AUTOSIZING
    447 forceAutoBehaviorForTextSizeAdjust:
    448   initial: false
    449   onChange: setNeedsRecalcStyleInAllFrames
    450   conditional: TEXT_AUTOSIZING
    451447
    452448subpixelAntialiasedLayerTextEnabled:
  • trunk/Source/WebCore/rendering/RenderBlockFlow.cpp

    r244683 r244702  
    38163816            }
    38173817
    3818             if (candidateNewSize > specifiedSize && candidateNewSize != fontDescription.computedSize() && text.textNode() && (text.document().settings().forceAutoBehaviorForTextSizeAdjust() || oldStyle.textSizeAdjust().isAuto()))
     3818            if (candidateNewSize > specifiedSize && candidateNewSize != fontDescription.computedSize() && text.textNode() && oldStyle.textSizeAdjust().isAuto())
    38193819                document().textAutoSizing().addTextNode(*text.textNode(), candidateNewSize);
    38203820        }
  • trunk/Source/WebCore/rendering/TextAutoSizing.cpp

    r244683 r244702  
    7777    for (auto& textNode : m_autoSizedNodes) {
    7878        auto* renderer = textNode->renderer();
    79         if (!renderer || (!textNode->document().settings().forceAutoBehaviorForTextSizeAdjust() && !renderer->style().textSizeAdjust().isAuto()) || !renderer->candidateComputedTextSize())
     79        if (!renderer || !renderer->style().textSizeAdjust().isAuto() || !renderer->candidateComputedTextSize())
    8080            nodesForRemoval.append(textNode.get());
    8181    }
  • trunk/Source/WebKit/ChangeLog

    r244700 r244702  
     12019-04-26  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r244683.
     4        https://bugs.webkit.org/show_bug.cgi?id=197320
     5
     6        Causing crash on iOS Simulator and EWS failures (Requested by
     7        sroberts on #webkit).
     8
     9        Reverted changeset:
     10
     11        "[iOS] Add internal setting to force -webkit-text-size-adjust
     12        to "auto""
     13        https://bugs.webkit.org/show_bug.cgi?id=197275
     14        https://trac.webkit.org/changeset/244683
     15
    1162019-04-26  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/Source/WebKit/Shared/WebPreferences.yaml

    r244683 r244702  
    433433  type: bool
    434434  defaultValue: false
     435
     436TextAutosizingEnabled:
     437  type: bool
     438  defaultValue: WebCore::Settings::defaultTextAutosizingEnabled()
     439  condition: ENABLE(TEXT_AUTOSIZING)
    435440
    436441AggressiveTileRetentionEnabled:
     
    16461651  type: bool
    16471652
    1648 TextAutosizingEnabled:
    1649   type: bool
    1650   defaultValue: WebCore::Settings::defaultTextAutosizingEnabled()
    1651   condition: ENABLE(TEXT_AUTOSIZING)
    1652   humanReadableName: "Text Autosizing"
    1653   humanReadableDescription: "Enable text autosizing, which increases text size so as to be more easily read"
    1654   category: internal
    1655 
    1656 ForceAutoBehaviorForTextSizeAdjust:
    1657   type: bool
    1658   defaultValue: false
    1659   condition: ENABLE(TEXT_AUTOSIZING)
    1660   humanReadableName: "Force text-size-adjust to auto"
    1661   humanReadableDescription: "Force -webkit-text-size-adjust to behave like auto, which means web authors can't opt-out of text autosizing heuristics"
    1662   category: internal
    1663 
    16641653# Deprecated
    16651654
  • trunk/Source/WebKit/UIProcess/WebPreferences.h

    r244683 r244702  
    3131#include "WebPreferencesDefinitions.h"
    3232#include "WebPreferencesStore.h"
    33 #include <WebCore/Settings.h>
    3433#include <wtf/HashSet.h>
    3534#include <wtf/RefPtr.h>
Note: See TracChangeset for help on using the changeset viewer.