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

Side by Side Diff: WebCore/rendering/RenderRubyBase.h

Issue 554075: Merge 53525 - Bug 33266 WebCore::InlineFlowBox::determineSpacingForFlowBoxes... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/249s/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « WebCore/rendering/RenderBlock.cpp ('k') | WebCore/rendering/RenderRubyBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 RenderRubyBase(Node*); 40 RenderRubyBase(Node*);
41 virtual ~RenderRubyBase(); 41 virtual ~RenderRubyBase();
42 42
43 virtual const char* renderName() const { return "RenderRubyBase (anonymous)" ; } 43 virtual const char* renderName() const { return "RenderRubyBase (anonymous)" ; }
44 44
45 virtual bool isRubyBase() const { return true; } 45 virtual bool isRubyBase() const { return true; }
46 46
47 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; 47 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const;
48 48
49 void splitToLeft(RenderBlock* leftBase, RenderObject* beforeChild); 49 private:
50 void mergeWithRight(RenderBlock* rightBase); 50 bool hasOnlyWrappedInlineChildren(RenderObject* beforeChild = 0) const;
51
52 void moveChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChild = 0) ;
53 void moveInlineChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChil d = 0);
54 void moveBlockChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChild = 0);
55 void mergeBlockChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChil d = 0);
56
57 // Allow RenderRubyRun to manipulate the children within ruby bases.
58 friend class RenderRubyRun;
51 }; 59 };
52 60
53 } // namespace WebCore 61 } // namespace WebCore
54 62
55 #endif // RenderRubyBase_h 63 #endif // RenderRubyBase_h
OLDNEW
« no previous file with comments | « WebCore/rendering/RenderBlock.cpp ('k') | WebCore/rendering/RenderRubyBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698