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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 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
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 destroy(); 176 destroy();
177 } 177 }
178 } 178 }
179 } 179 }
180 180
181 LayoutRubyBase* LayoutRubyRun::createRubyBase() const { 181 LayoutRubyBase* LayoutRubyRun::createRubyBase() const {
182 LayoutRubyBase* layoutObject = LayoutRubyBase::createAnonymous(&document()); 182 LayoutRubyBase* layoutObject = LayoutRubyBase::createAnonymous(&document());
183 RefPtr<ComputedStyle> newStyle = 183 RefPtr<ComputedStyle> newStyle =
184 ComputedStyle::createAnonymousStyleWithDisplay(styleRef(), 184 ComputedStyle::createAnonymousStyleWithDisplay(styleRef(),
185 EDisplay::Block); 185 EDisplay::Block);
186 newStyle->setTextAlign(ETextAlign::Center); // FIXME: use WEBKIT_CENTER? 186 newStyle->setTextAlign(ETextAlign::kCenter); // FIXME: use WEBKIT_CENTER?
187 layoutObject->setStyle(newStyle.release()); 187 layoutObject->setStyle(newStyle.release());
188 return layoutObject; 188 return layoutObject;
189 } 189 }
190 190
191 LayoutRubyRun* LayoutRubyRun::staticCreateRubyRun( 191 LayoutRubyRun* LayoutRubyRun::staticCreateRubyRun(
192 const LayoutObject* parentRuby) { 192 const LayoutObject* parentRuby) {
193 ASSERT(parentRuby && parentRuby->isRuby()); 193 ASSERT(parentRuby && parentRuby->isRuby());
194 LayoutRubyRun* rr = new LayoutRubyRun(); 194 LayoutRubyRun* rr = new LayoutRubyRun();
195 rr->setDocumentForAnonymous(&parentRuby->document()); 195 rr->setDocumentForAnonymous(&parentRuby->document());
196 RefPtr<ComputedStyle> newStyle = 196 RefPtr<ComputedStyle> newStyle =
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 case U_LB_GLUE: 343 case U_LB_GLUE:
344 case U_LB_OPEN_PUNCTUATION: 344 case U_LB_OPEN_PUNCTUATION:
345 return false; 345 return false;
346 default: 346 default:
347 break; 347 break;
348 } 348 }
349 return true; 349 return true;
350 } 350 }
351 351
352 } // namespace blink 352 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyBase.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutRubyText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698