Bug 138273

Summary: Simple line layout: Cleanup line initialization and line closing.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, esprehn+autocc, glenn, koivisto, kondapallykalyan, mmaxfield, ossy, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion
none
Patch none

Description zalan 2014-10-31 20:07:25 PDT
This is in preparation to support multiple render elements.
Comment 1 zalan 2014-10-31 20:21:39 PDT
The next step to abstract out text handling so that a text fragment can manage continuation (can transition from one render element to another)
Comment 2 zalan 2014-10-31 20:28:19 PDT
Created attachment 240779 [details]
Patch
Comment 3 Antti Koivisto 2014-11-01 07:46:32 PDT
Comment on attachment 240779 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=240779&action=review

> Source/WebCore/rendering/SimpleLineLayout.cpp:313
> +        , committedLogicalRight(0)

Why is this one "logical"? If we are going to support vertical text should some others be logical too?

> Source/WebCore/rendering/SimpleLineLayout.cpp:314
> +        , currentPosition(0)

maybe just call it 'position'? Word "current" rarely adds much.
Comment 4 zalan 2014-11-01 20:46:23 PDT
Created attachment 240803 [details]
Patch
Comment 5 Build Bot 2014-11-01 22:01:29 PDT
Created attachment 240805 [details]
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-16  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 6 zalan 2014-11-01 22:24:28 PDT
(In reply to comment #3)
> Comment on attachment 240779 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=240779&action=review
> 
> > Source/WebCore/rendering/SimpleLineLayout.cpp:313
> > +        , committedLogicalRight(0)
> 
> Why is this one "logical"? If we are going to support vertical text should
> some others be logical too?
Done.

> 
> > Source/WebCore/rendering/SimpleLineLayout.cpp:314
> > +        , currentPosition(0)
> 
> maybe just call it 'position'? Word "current" rarely adds much.
Done.
Comment 7 Build Bot 2014-11-02 00:22:49 PDT
Created attachment 240808 [details]
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-06  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 8 zalan 2014-11-04 09:40:01 PST
Created attachment 240929 [details]
Patch
Comment 9 WebKit Commit Bot 2014-11-04 12:08:13 PST
Comment on attachment 240929 [details]
Patch

Clearing flags on attachment: 240929

Committed r175565: <http://trac.webkit.org/changeset/175565>
Comment 10 WebKit Commit Bot 2014-11-04 12:08:18 PST
All reviewed patches have been landed.  Closing bug.
Comment 11 Csaba Osztrogonác 2014-11-04 12:34:51 PST
(In reply to comment #9)
> Comment on attachment 240929 [details]
> Patch
> 
> Clearing flags on attachment: 240929
> 
> Committed r175565: <http://trac.webkit.org/changeset/175565>

It broke the Apple Windows build, as the EWS noticed:
     1>..\rendering\SimpleLineLayout.cpp(678): error C2512: 'WebCore::SimpleLineLayout::Run' : no appropriate default constructor available
Comment 12 zalan 2014-11-04 12:53:51 PST
(In reply to comment #11)
> (In reply to comment #9)
> > Comment on attachment 240929 [details]
> > Patch
> > 
> > Clearing flags on attachment: 240929
> > 
> > Committed r175565: <http://trac.webkit.org/changeset/175565>
> 
> It broke the Apple Windows build, as the EWS noticed:
>      1>..\rendering\SimpleLineLayout.cpp(678): error C2512:
> 'WebCore::SimpleLineLayout::Run' : no appropriate default constructor
> available
Thanks.
http://trac.webkit.org/changeset/175574