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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1681273003: Add CSS parser support for break-after, break-before and break-inside. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't parse region values. Created 4 years, 10 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 && originalDisplay == other.originalDisplay 230 && originalDisplay == other.originalDisplay
231 && overflowX == other.overflowX 231 && overflowX == other.overflowX
232 && overflowY == other.overflowY 232 && overflowY == other.overflowY
233 && verticalAlign == other.verticalAlign 233 && verticalAlign == other.verticalAlign
234 && clear == other.clear 234 && clear == other.clear
235 && position == other.position 235 && position == other.position
236 && floating == other.floating 236 && floating == other.floating
237 && tableLayout == other.tableLayout 237 && tableLayout == other.tableLayout
238 && unicodeBidi == other.unicodeBidi 238 && unicodeBidi == other.unicodeBidi
239 // hasViewportUnits 239 // hasViewportUnits
240 && pageBreakBefore == other.pageBreakBefore 240 && breakBefore == other.breakBefore
241 && pageBreakAfter == other.pageBreakAfter 241 && breakAfter == other.breakAfter
242 && pageBreakInside == other.pageBreakInside; 242 && breakInside == other.breakInside;
243 // styleType 243 // styleType
244 // pseudoBits 244 // pseudoBits
245 // explicitInheritance 245 // explicitInheritance
246 // unique 246 // unique
247 // emptyState 247 // emptyState
248 // affectedByFocus 248 // affectedByFocus
249 // affectedByHover 249 // affectedByHover
250 // affectedByActive 250 // affectedByActive
251 // affectedByDrag 251 // affectedByDrag
252 // isLink 252 // isLink
(...skipping 11 matching lines...) Expand all
264 unsigned floating : 2; // EFloat 264 unsigned floating : 2; // EFloat
265 unsigned tableLayout : 1; // ETableLayout 265 unsigned tableLayout : 1; // ETableLayout
266 unsigned unicodeBidi : 3; // EUnicodeBidi 266 unsigned unicodeBidi : 3; // EUnicodeBidi
267 267
268 // This is set if we used viewport units when resolving a length. 268 // This is set if we used viewport units when resolving a length.
269 // It is mutable so we can pass around const ComputedStyles to resolve l engths. 269 // It is mutable so we can pass around const ComputedStyles to resolve l engths.
270 mutable unsigned hasViewportUnits : 1; 270 mutable unsigned hasViewportUnits : 1;
271 271
272 // 32 bits 272 // 32 bits
273 273
274 unsigned pageBreakBefore : 2; // EPageBreak 274 unsigned breakBefore : 4; // EBreak
275 unsigned pageBreakAfter : 2; // EPageBreak 275 unsigned breakAfter : 4; // EBreak
276 unsigned pageBreakInside : 2; // EPageBreak 276 unsigned breakInside : 2; // EBreak
277 277
278 unsigned styleType : 6; // PseudoId 278 unsigned styleType : 6; // PseudoId
279 unsigned pseudoBits : 8; 279 unsigned pseudoBits : 8;
280 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited property 280 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited property
281 unsigned variableReference : 1; // A non-inherited property references a variable. 281 unsigned variableReference : 1; // A non-inherited property references a variable.
282 unsigned unique : 1; // Style can not be shared. 282 unsigned unique : 1; // Style can not be shared.
283 283
284 unsigned emptyState : 1; 284 unsigned emptyState : 1;
285 285
286 unsigned affectedByFocus : 1; 286 unsigned affectedByFocus : 1;
287 unsigned affectedByHover : 1; 287 unsigned affectedByHover : 1;
288 unsigned affectedByActive : 1; 288 unsigned affectedByActive : 1;
289 unsigned affectedByDrag : 1; 289 unsigned affectedByDrag : 1;
290 290
291 // 64 bits
292
291 unsigned isLink : 1; 293 unsigned isLink : 1;
292 294
293 mutable unsigned hasRemUnits : 1; 295 mutable unsigned hasRemUnits : 1;
294 // If you add more style bits here, you will also need to update Compute dStyle::copyNonInheritedFromCached() 296 // If you add more style bits here, you will also need to update Compute dStyle::copyNonInheritedFromCached()
295 // 62 bits 297 // 66 bits
296 } noninherited_flags; 298 } noninherited_flags;
297 299
298 // !END SYNC! 300 // !END SYNC!
299 301
300 protected: 302 protected:
301 void setBitDefaults() 303 void setBitDefaults()
302 { 304 {
303 inherited_flags._empty_cells = initialEmptyCells(); 305 inherited_flags._empty_cells = initialEmptyCells();
304 inherited_flags._caption_side = initialCaptionSide(); 306 inherited_flags._caption_side = initialCaptionSide();
305 inherited_flags._list_style_type = initialListStyleType(); 307 inherited_flags._list_style_type = initialListStyleType();
(...skipping 15 matching lines...) Expand all
321 323
322 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay = initialDisplay(); 324 noninherited_flags.effectiveDisplay = noninherited_flags.originalDisplay = initialDisplay();
323 noninherited_flags.overflowX = initialOverflowX(); 325 noninherited_flags.overflowX = initialOverflowX();
324 noninherited_flags.overflowY = initialOverflowY(); 326 noninherited_flags.overflowY = initialOverflowY();
325 noninherited_flags.verticalAlign = initialVerticalAlign(); 327 noninherited_flags.verticalAlign = initialVerticalAlign();
326 noninherited_flags.clear = initialClear(); 328 noninherited_flags.clear = initialClear();
327 noninherited_flags.position = initialPosition(); 329 noninherited_flags.position = initialPosition();
328 noninherited_flags.floating = initialFloating(); 330 noninherited_flags.floating = initialFloating();
329 noninherited_flags.tableLayout = initialTableLayout(); 331 noninherited_flags.tableLayout = initialTableLayout();
330 noninherited_flags.unicodeBidi = initialUnicodeBidi(); 332 noninherited_flags.unicodeBidi = initialUnicodeBidi();
331 noninherited_flags.pageBreakBefore = initialPageBreak(); 333 noninherited_flags.breakBefore = initialBreakBefore();
332 noninherited_flags.pageBreakAfter = initialPageBreak(); 334 noninherited_flags.breakAfter = initialBreakAfter();
333 noninherited_flags.pageBreakInside = initialPageBreak(); 335 noninherited_flags.breakInside = initialBreakInside();
334 noninherited_flags.styleType = NOPSEUDO; 336 noninherited_flags.styleType = NOPSEUDO;
335 noninherited_flags.pseudoBits = 0; 337 noninherited_flags.pseudoBits = 0;
336 noninherited_flags.explicitInheritance = false; 338 noninherited_flags.explicitInheritance = false;
337 noninherited_flags.variableReference = false; 339 noninherited_flags.variableReference = false;
338 noninherited_flags.unique = false; 340 noninherited_flags.unique = false;
339 noninherited_flags.emptyState = false; 341 noninherited_flags.emptyState = false;
340 noninherited_flags.hasViewportUnits = false; 342 noninherited_flags.hasViewportUnits = false;
341 noninherited_flags.affectedByFocus = false; 343 noninherited_flags.affectedByFocus = false;
342 noninherited_flags.affectedByHover = false; 344 noninherited_flags.affectedByHover = false;
343 noninherited_flags.affectedByActive = false; 345 noninherited_flags.affectedByActive = false;
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor _style); } 741 ECursor cursor() const { return static_cast<ECursor>(inherited_flags._cursor _style); }
740 CursorList* cursors() const { return rareInheritedData->cursorData.get(); } 742 CursorList* cursors() const { return rareInheritedData->cursorData.get(); }
741 743
742 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f lags._insideLink); } 744 EInsideLink insideLink() const { return static_cast<EInsideLink>(inherited_f lags._insideLink); }
743 bool isLink() const { return noninherited_flags.isLink; } 745 bool isLink() const { return noninherited_flags.isLink; }
744 746
745 short widows() const { return rareInheritedData->widows; } 747 short widows() const { return rareInheritedData->widows; }
746 short orphans() const { return rareInheritedData->orphans; } 748 short orphans() const { return rareInheritedData->orphans; }
747 bool hasAutoWidows() const { return rareInheritedData->widows == 1; } 749 bool hasAutoWidows() const { return rareInheritedData->widows == 1; }
748 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; } 750 bool hasAutoOrphans() const { return rareInheritedData->m_hasAutoOrphans; }
749 EPageBreak pageBreakInside() const { return static_cast<EPageBreak>(noninher ited_flags.pageBreakInside); } 751 EBreak breakAfter() const { return static_cast<EBreak>(noninherited_flags.br eakAfter); }
750 EPageBreak pageBreakBefore() const { return static_cast<EPageBreak>(noninher ited_flags.pageBreakBefore); } 752 EBreak breakBefore() const { return static_cast<EBreak>(noninherited_flags.b reakBefore); }
751 EPageBreak pageBreakAfter() const { return static_cast<EPageBreak>(noninheri ted_flags.pageBreakAfter); } 753 EBreak breakInside() const { return static_cast<EBreak>(noninherited_flags.b reakInside); }
752 754
753 // CSS3 Getter Methods 755 // CSS3 Getter Methods
754 756
755 int outlineOffset() const 757 int outlineOffset() const
756 { 758 {
757 if (m_background->outline().style() == BNONE) 759 if (m_background->outline().style() == BNONE)
758 return 0; 760 return 0;
759 return m_background->outline().offset(); 761 return m_background->outline().offset();
760 } 762 }
761 763
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m _autoCount; } 873 bool hasAutoColumnCount() const { return rareNonInheritedData->m_multiCol->m _autoCount; }
872 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu mnWidth(); } 874 bool specifiesColumns() const { return !hasAutoColumnCount() || !hasAutoColu mnWidth(); }
873 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri tedData->m_multiCol->m_fill); } 875 ColumnFill columnFill() const { return static_cast<ColumnFill>(rareNonInheri tedData->m_multiCol->m_fill); }
874 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; } 876 float columnGap() const { return rareNonInheritedData->m_multiCol->m_gap; }
875 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m _normalGap; } 877 bool hasNormalColumnGap() const { return rareNonInheritedData->m_multiCol->m _normalGap; }
876 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC ol->m_rule.style(); } 878 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC ol->m_rule.style(); }
877 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult iCol->ruleWidth(); } 879 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult iCol->ruleWidth(); }
878 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC ol->m_rule.isTransparent(); } 880 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC ol->m_rule.isTransparent(); }
879 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const; 881 bool columnRuleEquivalent(const ComputedStyle* otherStyle) const;
880 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri tedData->m_multiCol->m_columnSpan); } 882 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri tedData->m_multiCol->m_columnSpan); }
881 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakBefore); }
882 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakInside); }
883 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon InheritedData->m_multiCol->m_breakAfter); }
884 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr ansform; } 883 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr ansform; }
885 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit orProxy; } 884 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit orProxy; }
886 const TransformOperations& transform() const { return rareNonInheritedData-> m_transform->m_operations; } 885 const TransformOperations& transform() const { return rareNonInheritedData-> m_transform->m_operations; }
887 const TransformOrigin& transformOrigin() const { return rareNonInheritedData ->m_transform->m_origin; } 886 const TransformOrigin& transformOrigin() const { return rareNonInheritedData ->m_transform->m_origin; }
888 const Length& transformOriginX() const { return transformOrigin().x(); } 887 const Length& transformOriginX() const { return transformOrigin().x(); }
889 const Length& transformOriginY() const { return transformOrigin().y(); } 888 const Length& transformOriginY() const { return transformOrigin().y(); }
890 TranslateTransformOperation* translate() const { return rareNonInheritedData ->m_transform->m_translate.get(); } 889 TranslateTransformOperation* translate() const { return rareNonInheritedData ->m_transform->m_translate.get(); }
891 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr ansform->m_rotate.get(); } 890 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr ansform->m_rotate.get(); }
892 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran sform->m_scale.get(); } 891 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran sform->m_scale.get(); }
893 float transformOriginZ() const { return transformOrigin().z(); } 892 float transformOriginZ() const { return transformOrigin().z(); }
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b ox, m_zIndex, 0); } 1290 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b ox, m_zIndex, 0); }
1292 int zIndex() const { return m_box->zIndex(); } 1291 int zIndex() const { return m_box->zIndex(); }
1293 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo x, m_zIndex, v); } 1292 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo x, m_zIndex, v); }
1294 1293
1295 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows() ); } 1294 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows() ); }
1296 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); } 1295 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); }
1297 1296
1298 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true ); SET_VAR(rareInheritedData, orphans, initialOrphans()); } 1297 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true ); SET_VAR(rareInheritedData, orphans, initialOrphans()); }
1299 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals e); SET_VAR(rareInheritedData, orphans, o); } 1298 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals e); SET_VAR(rareInheritedData, orphans, o); }
1300 1299
1301 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page .html#page-break-props 1300 void setBreakAfter(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakAfte rAndBefore); noninherited_flags.breakAfter = b; }
1302 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID); noninherited_flags.pageBreakInside = b; } 1301 void setBreakBefore(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakAft erAndBefore); noninherited_flags.breakBefore = b; }
1303 void setPageBreakBefore(EPageBreak b) { noninherited_flags.pageBreakBefore = b; } 1302 void setBreakInside(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakIns ide); noninherited_flags.breakInside = b; }
1304 void setPageBreakAfter(EPageBreak b) { noninherited_flags.pageBreakAfter = b ; }
1305 1303
1306 // CSS3 Setters 1304 // CSS3 Setters
1307 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v); } 1305 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v); }
1308 void setTextShadow(PassRefPtr<ShadowList>); 1306 void setTextShadow(PassRefPtr<ShadowList>);
1309 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher itedData, textStrokeColor, setTextStrokeColor, c); } 1307 void setTextStrokeColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInher itedData, textStrokeColor, setTextStrokeColor, c); }
1310 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt h, w); } 1308 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt h, w); }
1311 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit edData, textFillColor, setTextFillColor, c); } 1309 void setTextFillColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInherit edData, textFillColor, setTextFillColor, c); }
1312 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo nInheritedData, opacity, v); } 1310 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo nInheritedData, opacity, v); }
1313 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan ce, a); } 1311 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan ce, a); }
1314 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb ox-20090723/#alignment 1312 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb ox-20090723/#alignment
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 void setHasAutoColumnWidth() { SET_NESTED_VAR(rareNonInheritedData, m_multiC ol, m_autoWidth, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_width , 0); } 1388 void setHasAutoColumnWidth() { SET_NESTED_VAR(rareNonInheritedData, m_multiC ol, m_autoWidth, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_width , 0); }
1391 void setColumnCount(unsigned short c) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_autoCount, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCo l, m_count, c); } 1389 void setColumnCount(unsigned short c) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_autoCount, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCo l, m_count, c); }
1392 void setHasAutoColumnCount() { SET_NESTED_VAR(rareNonInheritedData, m_multiC ol, m_autoCount, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_count , initialColumnCount()); } 1390 void setHasAutoColumnCount() { SET_NESTED_VAR(rareNonInheritedData, m_multiC ol, m_autoCount, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_count , initialColumnCount()); }
1393 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(rareNonInheritedD ata, m_multiCol, m_fill, columnFill); } 1391 void setColumnFill(ColumnFill columnFill) { SET_NESTED_VAR(rareNonInheritedD ata, m_multiCol, m_fill, columnFill); }
1394 void setColumnGap(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol , m_normalGap, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, f ); } 1392 void setColumnGap(float f) { SET_NESTED_VAR(rareNonInheritedData, m_multiCol , m_normalGap, false); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, f ); }
1395 void setHasNormalColumnGap() { SET_NESTED_VAR(rareNonInheritedData, m_multiC ol, m_normalGap, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, 0); } 1393 void setHasNormalColumnGap() { SET_NESTED_VAR(rareNonInheritedData, m_multiC ol, m_normalGap, true); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_gap, 0); }
1396 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon InheritedData.access()->m_multiCol, m_rule, c); } 1394 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon InheritedData.access()->m_multiCol, m_rule, c); }
1397 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(rareNonInheritedDat a, m_multiCol, m_rule.m_style, b); } 1395 void setColumnRuleStyle(EBorderStyle b) { SET_NESTED_VAR(rareNonInheritedDat a, m_multiCol, m_rule.m_style, b); }
1398 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedD ata, m_multiCol, m_rule.m_width, w); } 1396 void setColumnRuleWidth(unsigned short w) { SET_NESTED_VAR(rareNonInheritedD ata, m_multiCol, m_rule.m_width, w); }
1399 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedD ata, m_multiCol, m_columnSpan, columnSpan); } 1397 void setColumnSpan(ColumnSpan columnSpan) { SET_NESTED_VAR(rareNonInheritedD ata, m_multiCol, m_columnSpan, columnSpan); }
1400 void setColumnBreakBefore(EPageBreak p) { SET_NESTED_VAR(rareNonInheritedDat a, m_multiCol, m_breakBefore, p); }
1401 // For valid values of column-break-inside see http://www.w3.org/TR/css3-mul ticol/#break-before-break-after-break-inside
1402 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID ); SET_NESTED_VAR(rareNonInheritedData, m_multiCol, m_breakInside, p); }
1403 void setColumnBreakAfter(EPageBreak p) { SET_NESTED_VAR(rareNonInheritedData , m_multiCol, m_breakAfter, p); }
1404 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } 1398 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; }
1405 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli neTransform, b); } 1399 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli neTransform, b); }
1406 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp ositorProxy, b); } 1400 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp ositorProxy, b); }
1407 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(rareNonIn heritedData, m_transform, m_operations, ops); } 1401 void setTransform(const TransformOperations& ops) { SET_NESTED_VAR(rareNonIn heritedData, m_transform, m_operations, ops); }
1408 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig in(v, transformOriginY(), transformOriginZ())); } 1402 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig in(v, transformOriginY(), transformOriginZ())); }
1409 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig in(transformOriginX(), v, transformOriginZ())); } 1403 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig in(transformOriginX(), v, transformOriginZ())); }
1410 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans formOriginX(), transformOriginY(), f)); } 1404 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans formOriginX(), transformOriginY(), f)); }
1411 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(rareNonIn heritedData, m_transform, m_origin, o); } 1405 void setTransformOrigin(const TransformOrigin& o) { SET_NESTED_VAR(rareNonIn heritedData, m_transform, m_origin, o); }
1412 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri tedData.access()->m_transform.access()->m_translate = v; } 1406 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri tedData.access()->m_transform.access()->m_translate = v; }
1413 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat a.access()->m_transform.access()->m_rotate = v; } 1407 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat a.access()->m_transform.access()->m_rotate = v; }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 static TextOrientation initialTextOrientation() { return TextOrientationMixe d; } 1647 static TextOrientation initialTextOrientation() { return TextOrientationMixe d; }
1654 static ObjectFit initialObjectFit() { return ObjectFitFill; } 1648 static ObjectFit initialObjectFit() { return ObjectFitFill; }
1655 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0, Percent), Length(50.0, Percent)); } 1649 static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0, Percent), Length(50.0, Percent)); }
1656 static EDisplay initialDisplay() { return INLINE; } 1650 static EDisplay initialDisplay() { return INLINE; }
1657 static EEmptyCell initialEmptyCells() { return SHOW; } 1651 static EEmptyCell initialEmptyCells() { return SHOW; }
1658 static EFloat initialFloating() { return NoFloat; } 1652 static EFloat initialFloating() { return NoFloat; }
1659 static EListStylePosition initialListStylePosition() { return OUTSIDE; } 1653 static EListStylePosition initialListStylePosition() { return OUTSIDE; }
1660 static EListStyleType initialListStyleType() { return Disc; } 1654 static EListStyleType initialListStyleType() { return Disc; }
1661 static EOverflow initialOverflowX() { return OVISIBLE; } 1655 static EOverflow initialOverflowX() { return OVISIBLE; }
1662 static EOverflow initialOverflowY() { return OVISIBLE; } 1656 static EOverflow initialOverflowY() { return OVISIBLE; }
1663 static EPageBreak initialPageBreak() { return PBAUTO; } 1657 static EBreak initialBreakAfter() { return BreakAuto; }
1658 static EBreak initialBreakBefore() { return BreakAuto; }
1659 static EBreak initialBreakInside() { return BreakAuto; }
1664 static EPosition initialPosition() { return StaticPosition; } 1660 static EPosition initialPosition() { return StaticPosition; }
1665 static ETableLayout initialTableLayout() { return TAUTO; } 1661 static ETableLayout initialTableLayout() { return TAUTO; }
1666 static EUnicodeBidi initialUnicodeBidi() { return UBNormal; } 1662 static EUnicodeBidi initialUnicodeBidi() { return UBNormal; }
1667 static ETextTransform initialTextTransform() { return TTNONE; } 1663 static ETextTransform initialTextTransform() { return TTNONE; }
1668 static EVisibility initialVisibility() { return VISIBLE; } 1664 static EVisibility initialVisibility() { return VISIBLE; }
1669 static EWhiteSpace initialWhiteSpace() { return NORMAL; } 1665 static EWhiteSpace initialWhiteSpace() { return NORMAL; }
1670 static short initialHorizontalBorderSpacing() { return 0; } 1666 static short initialHorizontalBorderSpacing() { return 0; }
1671 static short initialVerticalBorderSpacing() { return 0; } 1667 static short initialVerticalBorderSpacing() { return 0; }
1672 static ECursor initialCursor() { return CURSOR_AUTO; } 1668 static ECursor initialCursor() { return CURSOR_AUTO; }
1673 static Color initialColor() { return Color::black; } 1669 static Color initialColor() { return Color::black; }
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 } 2014 }
2019 2015
2020 inline bool ComputedStyle::hasPseudoElementStyle() const 2016 inline bool ComputedStyle::hasPseudoElementStyle() const
2021 { 2017 {
2022 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2018 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2023 } 2019 }
2024 2020
2025 } // namespace blink 2021 } // namespace blink
2026 2022
2027 #endif // ComputedStyle_h 2023 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698