Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Issue 17450016: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI. (Closed)

Created:
7 years, 6 months ago by Krzysztof Olczyk
Modified:
4 years, 7 months ago
Reviewers:
tkent, Timothy Loh, esprehn, fs, rune
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, dglazkov+blink, eae+blinkwatch, giuseppep_opera.com, jchaffraix+rendering, leviw+renderwatch, Mostyn Bramley-Moore
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI. (http://dev.w3.org/csswg/css-ui/#nav-dir) The CSS parser and RenderStyle is extended to to keep the information about CSS nav-* properties for HTML elements. The ID of element in current and other frames can be set as well as a special value "auto". This patch reuses fragments of similar WebKit patch submitted by Kyounga Ra: https://bugs.webkit.org/show_bug.cgi?id=66027 Note that spatial navigation feature (see https://codereview.chromium.org/13811041 and https://codereview.chromium.org/14110006) needs to be enabled for this patch to be effective. Info on tests: Opera has agreed to submit tests to the CSS-WG and the WG has agreed to keep these properties in if tests are submitted. The layout test to validate the added properties is also a part of this patch. BUG=

Patch Set 1 : Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI #

Total comments: 28

Patch Set 2 : Rebase to newer HEAD. #

Patch Set 3 : Code revised after code review #

Patch Set 4 : Rebase to newer HEAD. #

Patch Set 5 : Added tests #

Total comments: 28

Patch Set 6 : Rebased to new Blink CSS model, addressed issues. #

Patch Set 7 : Rebased once again to master, fixed layout test. #

Total comments: 42

Patch Set 8 : Applied code review suggestions. Also rebased. #

Total comments: 16

Patch Set 9 : Review fixes, rebase, added more tests, made Style Navigation Data refcounted. #

Total comments: 9

Patch Set 10 : Fixed compilation error in mac and crash in linux/window that were reported by trybots. #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -2 lines) Patch
A LayoutTests/fast/spatial-navigation/snav-css-nav-direction.html View 1 2 3 4 5 6 7 8 1 chunk +114 lines, -0 lines 1 comment Download
A LayoutTests/fast/spatial-navigation/snav-css-nav-direction-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/css/CSSCalculationValue.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 4 chunks +54 lines, -0 lines 2 comments Download
M Source/core/css/CSSPrimitiveValue.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 4 5 6 7 8 6 chunks +8 lines, -0 lines 0 comments Download
M Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 1 comment Download
M Source/core/css/CSSValueKeywords.in View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/parser/BisonCSSParser-in.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 1 comment Download
M Source/core/css/parser/CSSGrammar.y View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -0 lines 4 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -0 lines 4 comments Download
M Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/page/FocusController.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/page/FocusController.cpp View 1 2 3 4 5 6 7 8 3 chunks +74 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 3 4 5 6 7 8 9 5 chunks +13 lines, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyleConstants.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 1 comment Download
A Source/core/rendering/style/StyleNavigationData.h View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -0 lines 0 comments Download
A Source/core/rendering/style/StyleNavigationData.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -0 lines 2 comments Download
A Source/core/rendering/style/StyleNavigationValue.h View 1 2 3 4 5 6 7 8 9 1 chunk +80 lines, -0 lines 0 comments Download
M Source/core/rendering/style/StyleRareNonInheritedData.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 1 comment Download
M Source/core/rendering/style/StyleRareNonInheritedData.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (2 generated)
Krzysztof Olczyk
7 years, 6 months ago (2013-06-20 13:52:28 UTC) #1
esprehn
This needs an intent to implement email and also tests. https://codereview.chromium.org/17450016/diff/6001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/17450016/diff/6001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode1415 ...
7 years, 6 months ago (2013-06-20 19:45:09 UTC) #2
Mostyn Bramley-Moore
Adam Barth gave a thumbs-up on implementing (but not shipping) this: https://groups.google.com/a/chromium.org/d/msg/blink-dev/u2lKAP3EiU4/qRn4YTJrtm8J
7 years, 6 months ago (2013-06-21 21:16:58 UTC) #3
jamesr
7 years, 5 months ago (2013-07-10 20:52:14 UTC) #4
Krzysztof Olczyk
Thank you for the review. I have rebased the diff to latest version and applied ...
7 years, 5 months ago (2013-07-22 14:14:15 UTC) #5
Krzysztof Olczyk
@esprehn, could you please take a look at my changes related to your comments?
7 years, 5 months ago (2013-07-24 07:13:03 UTC) #6
Krzysztof Olczyk
Hi reviewers, I have added tests to this feature.
7 years, 4 months ago (2013-08-02 13:14:50 UTC) #7
esprehn
https://codereview.chromium.org/17450016/diff/52001/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/17450016/diff/52001/Source/core/css/CSSParser-in.cpp#newcode2304 Source/core/css/CSSParser-in.cpp:2304: return false; indent is wrong https://codereview.chromium.org/17450016/diff/52001/Source/core/css/resolver/StyleBuilderCustom.cpp File Source/core/css/resolver/StyleBuilderCustom.cpp (right): ...
7 years, 4 months ago (2013-08-08 03:39:40 UTC) #8
Krzysztof Olczyk
Hi esprehn, after long time, I've finally come back to this CL. Can you please ...
7 years ago (2013-12-04 13:56:50 UTC) #9
Krzysztof Olczyk
6 years, 8 months ago (2014-04-04 13:27:06 UTC) #10
Krzysztof Olczyk
Hi esprehn & tkent, could you please take a look at the CL, I've rebased ...
6 years, 8 months ago (2014-04-07 10:36:19 UTC) #11
Krzysztof Olczyk
On 2014/04/07 10:36:19, Krzysztof Olczyk wrote: > Hi esprehn & tkent, > > could you ...
6 years, 8 months ago (2014-04-14 06:59:14 UTC) #12
fs
I think you want to edit the description to be less "excusive", and more about ...
6 years, 8 months ago (2014-04-14 12:32:00 UTC) #13
Krzysztof Olczyk
Hi fs, I've applied your suggestions. Could you please take a look at CL again? ...
6 years, 8 months ago (2014-04-17 13:48:39 UTC) #14
fs
Still missing tests for parsing/serialization and maybe there a should be test for target-frame navigation? ...
6 years, 8 months ago (2014-04-17 15:33:47 UTC) #15
Krzysztof Olczyk
Hi Fredrik, could you please take a look at my new changes? It took a ...
6 years, 2 months ago (2014-09-30 15:41:47 UTC) #16
Krzysztof Olczyk
Hi Fredrik, could you please take a look at my new changes? It took a ...
6 years, 2 months ago (2014-09-30 15:41:48 UTC) #17
fs
https://codereview.chromium.org/17450016/diff/153001/LayoutTests/fast/spatial-navigation/snav-css-nav-direction.html File LayoutTests/fast/spatial-navigation/snav-css-nav-direction.html (right): https://codereview.chromium.org/17450016/diff/153001/LayoutTests/fast/spatial-navigation/snav-css-nav-direction.html#newcode27 LayoutTests/fast/spatial-navigation/snav-css-nav-direction.html:27: function testParsingAndSerialization() There's no need to stuff all the ...
6 years, 2 months ago (2014-10-01 10:52:15 UTC) #18
rune
This CL adds new web-facing properties. It should be supported by an intent-to-implement + a ...
6 years, 2 months ago (2014-10-01 11:04:18 UTC) #20
Krzysztof Olczyk
On 2014/10/01 at 11:04:18, rune wrote: > This CL adds new web-facing properties. It should ...
6 years, 2 months ago (2014-10-01 11:29:47 UTC) #21
rune
On 2014/10/01 at 11:29:47, kolczyk wrote: > On 2014/10/01 at 11:04:18, rune wrote: > > ...
6 years, 2 months ago (2014-10-01 11:53:21 UTC) #22
Timothy Loh
I only looked over the CSS parts since I'm not at all familiar with the ...
6 years, 2 months ago (2014-10-01 13:14:54 UTC) #24
rune
https://codereview.chromium.org/17450016/diff/173001/Source/core/css/CSSComputedStyleDeclaration.cpp File Source/core/css/CSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/17450016/diff/173001/Source/core/css/CSSComputedStyleDeclaration.cpp#newcode7 Source/core/css/CSSComputedStyleDeclaration.cpp:7: * Copyright (C) 2014 Opera Software ASA. All rights ...
6 years, 2 months ago (2014-10-01 13:40:49 UTC) #25
rune
Is still being worked on?
6 years ago (2014-12-17 10:34:23 UTC) #26
Julien Isorce Samsung
On 2014/12/17 10:34:23, rune wrote: > Is still being worked on? Hi Krzysztof, do you ...
4 years, 8 months ago (2016-04-15 15:27:02 UTC) #27
Anton Obzhirov
4 years, 8 months ago (2016-04-25 12:54:52 UTC) #28
On 2016/04/15 15:27:02, j.isorce wrote:
> On 2014/12/17 10:34:23, rune wrote:
> > Is still being worked on?
> 
> Hi Krzysztof, do you plan to continue that work ? If not, any reason ?

Hi guys,

We need this feature for our products so I've rebased the patch.
Since I couldn't submitted the patch here I created new issue:
https://codereview.chromium.org/1919813002
.
Please have a look.

Powered by Google App Engine
This is Rietveld 408576698