-
Notifications
You must be signed in to change notification settings - Fork 384
Remove very old FireFox version checks #10308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zbynek
wants to merge
9
commits into
gwtproject:main
Choose a base branch
from
zbynek:ff-checks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7766156
Rough notes, some fixes removed, untested
niloc132 9c371e5
Remove very old FireFox version checks
zbynek 943b24b
Merge branch '10295-remove-old-ff-fixes' into ff-checks
niloc132 a69f715
Remove a few more impls, fix comments
niloc132 a431966
Fix typo
zbynek c6817ef
Merge pull request #6 from niloc132/ff-checks
zbynek 02ace04
Remove redundant overrides and simplify event creation
zbynek 67c60fa
Remove comment
zbynek 0e9ec31
Simplify body offset code
zbynek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -638,44 +638,14 @@ protected void replaceAllRowsImpl(AbstractCellTable<?> table, TableSectionElemen | |
| } | ||
| } | ||
|
|
||
| /** | ||
| * Implementation of {@link CellTable} used by Firefox. | ||
| */ | ||
| @SuppressWarnings("unused") | ||
| private static class ImplMozilla extends Impl { | ||
|
Comment on lines
-641
to
-645
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking more carefully, maybe we should keep the class with no contents, as the Trident classes, just in case someone has a custom replace-with |
||
| /** | ||
| * Firefox 3.6 and earlier convert td elements to divs if the tbody is | ||
| * removed from the table element. | ||
| */ | ||
| @Override | ||
| protected void detachSectionElement(TableSectionElement section) { | ||
| if (isGecko192OrBefore()) { | ||
| return; | ||
| } | ||
| super.detachSectionElement(section); | ||
| } | ||
|
|
||
| @Override | ||
| protected void reattachSectionElement(Element parent, TableSectionElement section, | ||
| Element nextSection) { | ||
| if (isGecko192OrBefore()) { | ||
| return; | ||
| } | ||
| super.reattachSectionElement(parent, section, nextSection); | ||
| } | ||
|
|
||
| /** | ||
| * Return true if using Gecko 1.9.2 (Firefox 3.6) or earlier. | ||
| */ | ||
| private native boolean isGecko192OrBefore() /*-{ | ||
| return @com.google.gwt.dom.client.DOMImplMozilla::isGecko192OrBefore()(); | ||
| }-*/; | ||
| } | ||
|
|
||
| /** | ||
| * Implementation of {@link AbstractCellTable} used by IE. | ||
| * | ||
| * @deprecated Unused since 2.10.0, left in place to permit downstream users to continue to | ||
| * use it in GWT module files. | ||
| */ | ||
| @SuppressWarnings("unused") | ||
| @Deprecated | ||
| private static class ImplTrident extends Impl { | ||
|
|
||
| /** | ||
|
|
@@ -1664,7 +1634,7 @@ public void setSkipRowHoverFloatElementCheck(boolean skipRowHoverFloatElementChe | |
| * Sets the skipRowHoverStyleUpdate flag. If set, the CellTable will not update | ||
| * the row's style on row-level hover events (MOUSEOVER and MOUSEOUT). | ||
| * | ||
| * @param skipRowHoverCheck the new flag value | ||
| * @param skipRowHoverStyleUpdate the new flag value | ||
| */ | ||
| public void setSkipRowHoverStyleUpdate(boolean skipRowHoverStyleUpdate) { | ||
| this.skipRowHoverStyleUpdate = skipRowHoverStyleUpdate; | ||
|
|
@@ -1949,8 +1919,8 @@ protected void onBrowserEvent2(Event event) { | |
| boolean unhover = true; | ||
| if (!skipRowHoverFloatElementCheck) { | ||
| // Ignore events happening directly over the hovering row. If there are floating element | ||
| // on top of the row, mouseout event should not be triggered. This is to avoid the flickring | ||
| // effect if the floating element is shown/hide based on hover event. | ||
| // on top of the row, mouseout event should not be triggered. This is to avoid the | ||
| // flickering effect if the floating element is shown/hide based on hover event. | ||
| int clientX = event.getClientX() + Window.getScrollLeft(); | ||
| int clientY = event.getClientY() + Window.getScrollTop(); | ||
| int rowLeft = hoveringRow.getAbsoluteLeft(); | ||
|
|
@@ -1959,7 +1929,8 @@ protected void onBrowserEvent2(Event event) { | |
| int rowHeight = hoveringRow.getOffsetHeight(); | ||
| int rowBottom = rowTop + rowHeight; | ||
| int rowRight = rowLeft + rowWidth; | ||
| unhover = clientX < rowLeft || clientX > rowRight || clientY < rowTop || clientY > rowBottom; | ||
| unhover = clientX < rowLeft || clientX > rowRight | ||
| || clientY < rowTop || clientY > rowBottom; | ||
| } | ||
| if (unhover) { | ||
| setRowHover(hoveringRow, event, false, isRowChange); | ||
|
|
@@ -2587,7 +2558,7 @@ private <C> boolean resetFocusOnCellImpl(Context context, T value, HasCell<T, C> | |
| } | ||
|
|
||
| /** | ||
| * Set a row's hovering style and fire a {@link RowHoverEvent} | ||
| * Set a row's hovering style and fire a {@link RowHoverEvent}. | ||
| * | ||
| * @param tr the row element | ||
| * @param event the original event | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I think this might be wrong in other browsers - the superclass only returns 0, mozilla is the only impl that actually reads values from the dom. Ditto offsettop below. Probably out of scope here, just seeking to remove this extra null check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FF implementation matches the name, but the WebKit implementation results in more sensible behavior.
document.documentElement.style.margin="100px";in the consoleExpected: popup centered
Actual: popup too far left in FF (but centered in WebKit)