Timeline
Sep 17, 2017:
- 10:22 PM Changeset in webkit [222141] by
-
- 2 edits in trunk/Source/WebCore
REGRESSION(r221974): [Harfbuzz] Test fast/text/international/hebrew-selection.html is failing since r221974
https://bugs.webkit.org/show_bug.cgi?id=177036
Reviewed by Michael Catanzaro.
In r221974 I rewrote the characterIndexForXPosition implementation without taking into account that there can be
multiple glyphs for the same character, so we can't simply do index++ and index-- to get the next and previous
character index.
- platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
(WebCore::HarfBuzzShaper::HarfBuzzRun::characterIndexForXPosition): Always get the character index from
m_glyphToCharacterIndexes array.
- 10:05 PM Changeset in webkit [222140] by
-
- 1 edit1 add in trunk/Tools
Start working on WSL documentation
https://bugs.webkit.org/show_bug.cgi?id=177064
Reviewed by Mylex Maxfield.
This is a work in progress. I'd like to check it in and then keep adding to it.
- WebGPUShadingLanguageRI/WSL.md: Added.
- 8:39 PM Changeset in webkit [222139] by
-
- 11 edits1 add in trunk/Tools
WSL needs to understand && and https://bugs.webkit.org/show_bug.cgi?id=177062
Reviewed by Filip Pizlo.
Very similar to LogicalNot.
- WebGPUShadingLanguageRI/All.js:
- WebGPUShadingLanguageRI/Checker.js:
- WebGPUShadingLanguageRI/EBufferBuilder.js:
(EBufferBuilder.prototype.visitLogicalExpression):
- WebGPUShadingLanguageRI/Evaluator.js:
(Evaluator.prototype.visitLogicalExpression):
- WebGPUShadingLanguageRI/Lexer.js:
(Lexer.prototype.next):
(Lexer):
- WebGPUShadingLanguageRI/LogicalExpression.js: Added.
(LogicalExpression):
(LogicalExpression.prototype.get text):
(LogicalExpression.prototype.get left):
(LogicalExpression.prototype.get right):
(LogicalExpression.prototype.toString):
- WebGPUShadingLanguageRI/Parse.js:
(parseLeftLogicalExpression):
- WebGPUShadingLanguageRI/Rewriter.js:
(Rewriter.prototype.visitLogicalExpression):
- WebGPUShadingLanguageRI/Test.html:
- WebGPUShadingLanguageRI/Test.js:
- WebGPUShadingLanguageRI/Visitor.js:
(Visitor.prototype.visitProtocolDecl):
- 5:31 PM Changeset in webkit [222138] by
-
- 11 edits4 copies in trunk/Tools
WSL needs float and double support
https://bugs.webkit.org/show_bug.cgi?id=177058
Reviewed by Filip Pizlo.
Use the existing int and uint types as a model. The types themselves are straighforward. Just like int and uint,
you can't pass a float as a double argument and vice-versa. This patch adds operator+, -, *, and / for floats
and doubles.
Float literals are more complicated. If your number has a "." character in it, it is treated as a float literal.
You can add a suffix of "f" or "d" to force the literal to pretend to be a float or a double. These literals are
able to masquerade as either floats or doubles (unlike an explicit type). However, these literals are not able
to masquerade as ints or uints. There's also a nice check that your float literal can actually fit in a float.
- WebGPUShadingLanguageRI/All.js:
- WebGPUShadingLanguageRI/DoubleLiteral.js: Copied from Tools/WebGPUShadingLanguageRI/Type.js.
(let.DoubleLiteral.createLiteral.createType):
- WebGPUShadingLanguageRI/DoubleLiteralType.js: Copied from Tools/WebGPUShadingLanguageRI/Type.js.
(let.DoubleLiteralType.createLiteralType.verifyAsArgument):
- WebGPUShadingLanguageRI/FloatLiteral.js: Copied from Tools/WebGPUShadingLanguageRI/Type.js.
(let.FloatLiteral.createLiteral.createType):
- WebGPUShadingLanguageRI/FloatLiteralType.js: Copied from Tools/WebGPUShadingLanguageRI/Type.js.
(let.FloatLiteralType.createLiteralType.verifyAsArgument):
- WebGPUShadingLanguageRI/Intrinsics.js:
(Intrinsics):
- WebGPUShadingLanguageRI/Lexer.js:
(Lexer.prototype.next):
(Lexer):
- WebGPUShadingLanguageRI/NativeType.js:
(NativeType):
(NativeType.prototype.get isFloating):
(NativeType.prototype.set isFloating):
(NativeType.prototype.get isFloat): Deleted.
(NativeType.prototype.set isFloat): Deleted.
- WebGPUShadingLanguageRI/Parse.js:
(parseTerm):
- WebGPUShadingLanguageRI/Rewriter.js:
(Rewriter.prototype.visitGenericLiteral):
- WebGPUShadingLanguageRI/StandardLibrary.js:
(uint.operator):
(int.operator):
- WebGPUShadingLanguageRI/Test.html:
- WebGPUShadingLanguageRI/Test.js:
(makeFloat):
(makeDouble):
(checkNumber):
(checkFloat):
(checkDouble):
- WebGPUShadingLanguageRI/Type.js:
(Type.prototype.get isFloating):
(Type.prototype.get isFloat): Deleted.
- 1:11 PM Changeset in webkit [222137] by
-
- 15 edits in trunk
Web Inspector: Styles Redesign: support toggling properties
https://bugs.webkit.org/show_bug.cgi?id=176643
Reviewed by Matt Baker.
Source/WebInspectorUI:
Add checkboxes to toggle (comment/uncomment) CSS properties.
- UserInterface/Base/Utilities.js:
(String.prototype.get lineCount):
(String.prototype.get lastLine):
Add string methods that are used by WI.CSSProperty.prototype._updateOwnerStyleText.
- UserInterface/Models/CSSProperty.js:
(WI.CSSProperty.prototype.commentOut):
(WI.CSSProperty.prototype.set text):
(WI.CSSProperty.prototype.get editable):
(WI.CSSProperty.prototype._updateOwnerStyleText):
Add methods necessary for property toggling.
- UserInterface/Models/CSSStyleDeclaration.js:
(WI.CSSStyleDeclaration):
(WI.CSSStyleDeclaration.prototype.get allVisibleProperties):
Add a getter that is used by SpreadsheetCSSStyleDeclarationEditor.prototype._propertiesToRender.
(WI.CSSStyleDeclaration.prototype.get visibleProperties):
- UserInterface/Models/TextRange.js:
(WI.TextRange.prototype.clone):
(WI.TextRange.prototype.cloneAndModify):
(WI.TextRange.prototype.relativeTo):
Add methods that are used by WI.CSSProperty.prototype._updateOwnerStyleText.
- UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css:
(.spreadsheet-style-declaration-editor):
(.spreadsheet-style-declaration-editor .property-toggle):
(.spreadsheet-css-declaration:matches(:hover, :focus) .property-toggle,):
(.spreadsheet-style-declaration-editor .property.disabled,):
- UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:
(WI.SpreadsheetCSSStyleDeclarationEditor.prototype.layout):
(WI.SpreadsheetCSSStyleDeclarationEditor.prototype.set style):
(WI.SpreadsheetCSSStyleDeclarationEditor.prototype.get _propertiesToRender):
(WI.SpreadsheetCSSStyleDeclarationEditor):
(WI.SpreadsheetStyleProperty):
(WI.SpreadsheetStyleProperty.prototype.get element):
(WI.SpreadsheetStyleProperty.prototype._update):
- UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.css:
- UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js:
(WI.SpreadsheetCSSStyleDeclarationSection.prototype.initialLayout):
- UserInterface/Views/SpreadsheetRulesStyleDetailsPanel.js:
(WI.SpreadsheetRulesStyleDetailsPanel.prototype.refresh):
(WI.SpreadsheetRulesStyleDetailsPanel):
- UserInterface/Views/SyntaxHighlightingDefaultTheme.css:
(.cm-s-default .cm-comment,):
- UserInterface/Views/Variables.css:
(:root):
Make comment color a CSS variable.
LayoutTests:
Add tests for String.prototype.lineCount and String.prototype.lastLine.
- inspector/unit-tests/string-utilities-expected.txt:
- inspector/unit-tests/string-utilities.html:
- 10:28 AM Changeset in webkit [222136] by
-
- 20 edits2 deletes in trunk/Source/JavaScriptCore
Merge JSLexicalEnvironment and JSEnvironmentRecord
https://bugs.webkit.org/show_bug.cgi?id=175492
Reviewed by Saam Barati.
JSEnvironmentRecord is only inherited by JSLexicalEnvironment.
We can merge JSEnvironmentRecord and JSLexicalEnvironment.
- CMakeLists.txt:
- JavaScriptCore.xcodeproj/project.pbxproj:
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetByValOnScopedArguments):
- dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
- dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
- ftl/FTLAbstractHeapRepository.h:
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileGetByVal):
(JSC::FTL::DFG::LowerDFGToB3::compileCreateActivation):
(JSC::FTL::DFG::LowerDFGToB3::compileGetClosureVar):
(JSC::FTL::DFG::LowerDFGToB3::compilePutClosureVar):
(JSC::FTL::DFG::LowerDFGToB3::compileMaterializeCreateActivation):
- jit/JITPropertyAccess.cpp:
(JSC::JIT::emitGetClosureVar):
(JSC::JIT::emitPutClosureVar):
(JSC::JIT::emitScopedArgumentsGetByVal):
- jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::emitGetClosureVar):
(JSC::JIT::emitPutClosureVar):
- llint/LLIntOffsetsExtractor.cpp:
- llint/LowLevelInterpreter.asm:
- llint/LowLevelInterpreter32_64.asm:
- llint/LowLevelInterpreter64.asm:
- runtime/JSEnvironmentRecord.cpp: Removed.
- runtime/JSEnvironmentRecord.h: Removed.
- runtime/JSLexicalEnvironment.cpp:
(JSC::JSLexicalEnvironment::visitChildren):
(JSC::JSLexicalEnvironment::heapSnapshot):
(JSC::JSLexicalEnvironment::getOwnNonIndexPropertyNames):
- runtime/JSLexicalEnvironment.h:
(JSC::JSLexicalEnvironment::subspaceFor):
(JSC::JSLexicalEnvironment::variables):
(JSC::JSLexicalEnvironment::isValidScopeOffset):
(JSC::JSLexicalEnvironment::variableAt):
(JSC::JSLexicalEnvironment::offsetOfVariables):
(JSC::JSLexicalEnvironment::offsetOfVariable):
(JSC::JSLexicalEnvironment::allocationSizeForScopeSize):
(JSC::JSLexicalEnvironment::allocationSize):
(JSC::JSLexicalEnvironment::finishCreationUninitialized):
(JSC::JSLexicalEnvironment::finishCreation):
- runtime/JSModuleEnvironment.cpp:
(JSC::JSModuleEnvironment::create):
- runtime/JSObject.h:
(JSC::JSObject::isEnvironment const):
(JSC::JSObject::isEnvironmentRecord const): Deleted.
- runtime/JSSegmentedVariableObject.h:
- runtime/StringPrototype.cpp:
(JSC::checkObjectCoercible):
- 8:39 AM Changeset in webkit [222135] by
-
- 4 edits in trunk
https://bugs.webkit.org/show_bug.cgi?id=177038
Add an option to run-jsc-stress-tests to limit tests variations to a basic set
Reviewed by JF Bastien.
JSTests:
- stress/unshiftCountSlowCase-correct-postCapacity.js: Disabled this test on ARM64 iOS devices
as it dies using too much memory.
Tools:
Added the --basic option that runs defaults tests with the following modes, default, no-llint,
no-cjit-validate-phases, no-cjit-collect-continuously, dfg-eager and for FTL platforms: no-ftl,
ftl-eager-no-cjit and ftl-no-cjit-small-pool. This takes about half the time as running all
16 modes of a full run.
- Scripts/run-jsc-stress-tests:
- 7:37 AM Changeset in webkit [222134] by
-
- 2 edits in trunk/Source/WebKit
[WPE][GTK] Merge ProcessLauncher[WPE,GTK]
https://bugs.webkit.org/show_bug.cgi?id=177041
Unreviewed fixup, I broke the size of the argv buffer when experimenting with how to respond
to review comments. Not sure why this didn't blow up everything during testing.
- UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:
(WebKit::ProcessLauncher::launchProcess):
- 7:34 AM Changeset in webkit [222133] by
-
- 3 edits1 copy1 add2 deletes in trunk/Source/WebKit
[WPE][GTK] Merge ProcessLauncher[WPE,GTK]
https://bugs.webkit.org/show_bug.cgi?id=177041
Reviewed by Carlos Garcia Campos.
- PlatformGTK.cmake:
- PlatformWPE.cmake:
- UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: Renamed from Source/WebKit/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp.
(WebKit::childSetupFunction):
(WebKit::ProcessLauncher::launchProcess):
(WebKit::ProcessLauncher::terminateProcess):
(WebKit::ProcessLauncher::platformInvalidate):
- UIProcess/Launcher/wpe/ProcessLauncherWPE.cpp: Removed.
- 1:06 AM Changeset in webkit [222132] by
-
- 2 edits in trunk/Source/WebCore
[Harfbuzz] Test fast/text/complex-text-selection.html is failing since r222090
https://bugs.webkit.org/show_bug.cgi?id=177035
Reviewed by Michael Catanzaro.
The problem was not actually introduced in r222090, but revelaed by that change. The bug was added in r222086,
when adding the support for shaping a range of characters. We are not correctly filtering the characters in case
of rtl in some cases.
Fixes: fast/text/complex-text-selection.html
- platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
(WebCore::HarfBuzzShaper::fillGlyphBufferFromHarfBuzzRun): When checking if the current character is inside
the given range, continue or break the loop depending on whether text is rtl or not.
Sep 16, 2017:
- 11:46 AM Changeset in webkit [222131] by
-
- 6 edits in trunk
Fix the Tools build with CMake on macOS
https://bugs.webkit.org/show_bug.cgi?id=177030
Reviewed by Geoffrey Garen.
Source/WebKit:
- PlatformMac.cmake:
Add some WebKitLegacy headers to forward (for use by the tools).
Source/WebKitLegacy:
- PlatformMac.cmake:
Add some forwarding headers.
Tools:
- TestWebKitAPI/CMakeLists.txt:
Add a workaround identical to what the gtest CMakeLists has.
- 8:02 AM WebKitGTK/2.18.x edited by
- (diff)
- 8:01 AM Changeset in webkit [222130] by
-
- 2 edits in trunk/Source/WebCore
[GTK] Build failure with enchant-2.1.1
https://bugs.webkit.org/show_bug.cgi?id=176877
Unreviewed build fix for enchant 2.1.1.
enchant_dict_free_suggestions() has been deprecated since at least 2005. Use its
replacement, enchant_dict_free_string_list(), instead. That's also been around since at
least 2005.
- platform/text/enchant/TextCheckerEnchant.cpp:
(WebCore::TextCheckerEnchant::getGuessesForWord):
- 5:33 AM Changeset in webkit [222129] by
-
- 12 edits2 adds in trunk
Computing animated style should not require renderers
https://bugs.webkit.org/show_bug.cgi?id=171926
<rdar://problem/34428035>
Reviewed by Sam Weinig.
Source/WebCore:
CSS animation system is now element rather than renderer based. This allows cleaning up
style resolution and render tree update code.
This also fixes bug animation doesn't run if display property is animated from one rendered type
to another. Added a test case for this.
Test: transitions/transition-display-property-2.html
- page/animation/CSSAnimationController.cpp:
(WebCore::CSSAnimationController::updateAnimations):
Pass in the old style instead of getting it from the renderer.
Factor to return the animated style as a return value.
- page/animation/CSSAnimationController.h:
- rendering/RenderElement.cpp:
(WebCore::RenderElement::RenderElement):
(WebCore::RenderElement::willBeDestroyed):
Animation are now canceled by RenderTreeUpdater::tearDownRenderers.
- rendering/RenderElement.h:
(WebCore::RenderElement::hasInitialAnimatedStyle const): Deleted.
(WebCore::RenderElement::setHasInitialAnimatedStyle): Deleted.
We no longer need to this concept.
- style/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::updateElementRenderer):
(WebCore::RenderTreeUpdater::createRenderer):
We now get correct animated style from style resolution in all cases so we don't need to compute
it separately for new renderers.
(WebCore::RenderTreeUpdater::tearDownRenderers):
Cancel animations when render tree is fully torn down. Keep them when updating style.
- style/RenderTreeUpdater.h:
- style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::createAnimatedElementUpdate):
We can now compute animated style without renderer. Special cases dealing with rendererless case
can be removed.
LayoutTests:
- transitions/transition-display-property-2-expected.html: Added.
- transitions/transition-display-property-2.html: Added.
- transitions/transition-display-property.html:
- 2:27 AM Changeset in webkit [222128] by
-
- 3 edits4 deletes in trunk/Tools
[GTK] Bump fontconfig version to 2.12.4
https://bugs.webkit.org/show_bug.cgi?id=176997
Reviewed by Michael Catanzaro.
It's the latest stable version and we can get rid of the patches we have.
- WebKitTestRunner/gtk/fonts/fonts.conf: Remove hinting config we no longer need with newer FreeType and
deprecated <blank> that current fontconfig just ignores.
- gtk/jhbuild.modules:
- gtk/patches/fontconfig-2.11.1-add-autogen.patch: Removed.
- gtk/patches/fontconfig-Avoid-conflicts-with-integer-width-macros-from-TS-18661-1-2014.patch: Removed.
- gtk/patches/fontconfig-Fix-the-build-issue-with-gperf-3.1.patch: Removed.
- gtk/patches/fontconfig-fix-osx-cache.diff: Removed.
- 1:28 AM Changeset in webkit [222127] by
-
- 15 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Rebaseline tests after r222090.
- platform/gtk/svg/W3C-I18N/g-dirRTL-ubNone-expected.png:
- platform/gtk/svg/W3C-I18N/g-dirRTL-ubNone-expected.txt:
- platform/gtk/svg/W3C-I18N/g-dirRTL-ubOverride-expected.png:
- platform/gtk/svg/W3C-I18N/g-dirRTL-ubOverride-expected.txt:
- platform/gtk/svg/W3C-I18N/text-dirRTL-ubNone-expected.png:
- platform/gtk/svg/W3C-I18N/text-dirRTL-ubNone-expected.txt:
- platform/gtk/svg/W3C-I18N/tspan-direction-rtl-expected.png:
- platform/gtk/svg/W3C-I18N/tspan-direction-rtl-expected.txt:
- platform/gtk/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.png:
- platform/gtk/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.txt:
- platform/gtk/svg/custom/glyph-selection-arabic-forms-expected.png:
- platform/gtk/svg/custom/glyph-selection-arabic-forms-expected.txt:
- platform/gtk/svg/text/bidi-tspans-expected.png:
- platform/gtk/svg/text/bidi-tspans-expected.txt: